GNU Octave  3.8.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Public Member Functions | Private Member Functions | Private Attributes | List of all members
tree_checker Class Reference

#include "pt-check.h"

Inheritance diagram for tree_checker:
Inheritance graph
[legend]
Collaboration diagram for tree_checker:
Collaboration graph
[legend]

Public Member Functions

 tree_checker (void)
 ~tree_checker (void)
void visit_anon_fcn_handle (tree_anon_fcn_handle &)
void visit_argument_list (tree_argument_list &)
void visit_binary_expression (tree_binary_expression &)
void visit_break_command (tree_break_command &)
void visit_cell (tree_cell &)
void visit_colon_expression (tree_colon_expression &)
void visit_complex_for_command (tree_complex_for_command &)
void visit_constant (tree_constant &)
void visit_continue_command (tree_continue_command &)
void visit_decl_elt (tree_decl_elt &)
void visit_decl_init_list (tree_decl_init_list &)
void visit_do_until_command (tree_do_until_command &)
void visit_fcn_handle (tree_fcn_handle &)
void visit_function_def (tree_function_def &)
void visit_global_command (tree_global_command &)
void visit_identifier (tree_identifier &)
void visit_if_clause (tree_if_clause &)
void visit_if_command (tree_if_command &)
void visit_if_command_list (tree_if_command_list &)
void visit_index_expression (tree_index_expression &)
void visit_matrix (tree_matrix &)
void visit_multi_assignment (tree_multi_assignment &)
void visit_no_op_command (tree_no_op_command &)
void visit_octave_user_function (octave_user_function &)
void visit_octave_user_script (octave_user_script &)
void visit_parameter_list (tree_parameter_list &)
void visit_persistent_command (tree_persistent_command &)
void visit_postfix_expression (tree_postfix_expression &)
void visit_prefix_expression (tree_prefix_expression &)
void visit_return_command (tree_return_command &)
void visit_return_list (tree_return_list &)
void visit_simple_assignment (tree_simple_assignment &)
void visit_simple_for_command (tree_simple_for_command &)
void visit_statement (tree_statement &)
void visit_statement_list (tree_statement_list &)
void visit_switch_case (tree_switch_case &)
void visit_switch_case_list (tree_switch_case_list &)
void visit_switch_command (tree_switch_command &)
void visit_try_catch_command (tree_try_catch_command &)
void visit_unwind_protect_command (tree_unwind_protect_command &)
void visit_while_command (tree_while_command &)

Private Member Functions

 tree_checker (const tree_checker &)
void do_decl_command (tree_decl_command &)
void gripe (const std::string &msg, int line)
tree_checkeroperator= (const tree_checker &)

Private Attributes

bool do_lvalue_check
std::string file_name

Detailed Description

Definition at line 32 of file pt-check.h.

Constructor & Destructor Documentation

tree_checker::tree_checker ( void  )
inline

Definition at line 37 of file pt-check.h.

tree_checker::~tree_checker ( void  )
inline

Definition at line 40 of file pt-check.h.

tree_checker::tree_checker ( const tree_checker )
private

Member Function Documentation

void tree_checker::do_decl_command ( tree_decl_command cmd)
private
void tree_checker::gripe ( const std::string &  msg,
int  line 
)
private
tree_checker& tree_checker::operator= ( const tree_checker )
private
void tree_checker::visit_anon_fcn_handle ( tree_anon_fcn_handle )
virtual

Implements tree_walker.

Definition at line 345 of file pt-check.cc.

void tree_checker::visit_argument_list ( tree_argument_list lst)
virtual
void tree_checker::visit_binary_expression ( tree_binary_expression expr)
virtual

Implements tree_walker.

Definition at line 50 of file pt-check.cc.

References tree::accept(), tree_binary_expression::lhs(), and tree_binary_expression::rhs().

void tree_checker::visit_break_command ( tree_break_command )
virtual

Implements tree_walker.

Definition at line 64 of file pt-check.cc.

void tree_checker::visit_cell ( tree_cell lst)
virtual
void tree_checker::visit_colon_expression ( tree_colon_expression expr)
virtual
void tree_checker::visit_complex_for_command ( tree_complex_for_command cmd)
virtual
void tree_checker::visit_constant ( tree_constant )
virtual

Implements tree_walker.

Definition at line 350 of file pt-check.cc.

void tree_checker::visit_continue_command ( tree_continue_command )
virtual

Implements tree_walker.

Definition at line 88 of file pt-check.cc.

void tree_checker::visit_decl_elt ( tree_decl_elt cmd)
virtual
void tree_checker::visit_decl_init_list ( tree_decl_init_list lst)
virtual
void tree_checker::visit_do_until_command ( tree_do_until_command cmd)
virtual
void tree_checker::visit_fcn_handle ( tree_fcn_handle )
virtual

Implements tree_walker.

Definition at line 355 of file pt-check.cc.

void tree_checker::visit_function_def ( tree_function_def fdef)
virtual
void tree_checker::visit_global_command ( tree_global_command cmd)
virtual

Implements tree_walker.

Definition at line 102 of file pt-check.cc.

References do_decl_command().

void tree_checker::visit_identifier ( tree_identifier )
virtual

Implements tree_walker.

Definition at line 229 of file pt-check.cc.

void tree_checker::visit_if_clause ( tree_if_clause cmd)
virtual
void tree_checker::visit_if_command ( tree_if_command cmd)
virtual

Implements tree_walker.

Definition at line 248 of file pt-check.cc.

References tree_if_command_list::accept(), and tree_if_command::cmd_list().

void tree_checker::visit_if_command_list ( tree_if_command_list lst)
virtual
void tree_checker::visit_index_expression ( tree_index_expression expr)
virtual
void tree_checker::visit_matrix ( tree_matrix lst)
virtual
void tree_checker::visit_multi_assignment ( tree_multi_assignment expr)
virtual
void tree_checker::visit_no_op_command ( tree_no_op_command )
virtual

Implements tree_walker.

Definition at line 340 of file pt-check.cc.

void tree_checker::visit_octave_user_function ( octave_user_function fcn)
virtual

Implements tree_walker.

Definition at line 209 of file pt-check.cc.

References tree_statement_list::accept(), and octave_user_function::body().

void tree_checker::visit_octave_user_script ( octave_user_script fcn)
virtual

Implements tree_walker.

Definition at line 200 of file pt-check.cc.

References tree_statement_list::accept(), and octave_user_script::body().

void tree_checker::visit_parameter_list ( tree_parameter_list lst)
virtual
void tree_checker::visit_persistent_command ( tree_persistent_command cmd)
virtual

Implements tree_walker.

Definition at line 108 of file pt-check.cc.

References do_decl_command().

void tree_checker::visit_postfix_expression ( tree_postfix_expression expr)
virtual

Implements tree_walker.

Definition at line 374 of file pt-check.cc.

References tree::accept(), and tree_unary_expression::operand().

void tree_checker::visit_prefix_expression ( tree_prefix_expression expr)
virtual

Implements tree_walker.

Definition at line 383 of file pt-check.cc.

References tree::accept(), and tree_unary_expression::operand().

void tree_checker::visit_return_command ( tree_return_command )
virtual

Implements tree_walker.

Definition at line 392 of file pt-check.cc.

void tree_checker::visit_return_list ( tree_return_list lst)
virtual
void tree_checker::visit_simple_assignment ( tree_simple_assignment expr)
virtual
void tree_checker::visit_simple_for_command ( tree_simple_for_command cmd)
virtual
void tree_checker::visit_statement ( tree_statement stmt)
virtual

Implements tree_walker.

Definition at line 428 of file pt-check.cc.

References tree::accept(), tree_statement::command(), and tree_statement::expression().

void tree_checker::visit_statement_list ( tree_statement_list lst)
virtual
void tree_checker::visit_switch_case ( tree_switch_case cs)
virtual
void tree_checker::visit_switch_case_list ( tree_switch_case_list lst)
virtual
void tree_checker::visit_switch_command ( tree_switch_command cmd)
virtual
void tree_checker::visit_try_catch_command ( tree_try_catch_command cmd)
virtual
void tree_checker::visit_unwind_protect_command ( tree_unwind_protect_command cmd)
virtual
void tree_checker::visit_while_command ( tree_while_command cmd)
virtual

Member Data Documentation

bool tree_checker::do_lvalue_check
private
std::string tree_checker::file_name
private

Definition at line 128 of file pt-check.h.

Referenced by gripe().


The documentation for this class was generated from the following files: