GNU Octave  4.0.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 &)
 
virtual void visit_classdef (tree_classdef &)
 
virtual void visit_classdef_attribute (tree_classdef_attribute &)
 
virtual void visit_classdef_attribute_list (tree_classdef_attribute_list &)
 
virtual void visit_classdef_body (tree_classdef_body &)
 
virtual void visit_classdef_enum (tree_classdef_enum &)
 
virtual void visit_classdef_enum_block (tree_classdef_enum_block &)
 
virtual void visit_classdef_enum_list (tree_classdef_enum_list &)
 
virtual void visit_classdef_event (tree_classdef_event &)
 
virtual void visit_classdef_events_block (tree_classdef_events_block &)
 
virtual void visit_classdef_events_list (tree_classdef_events_list &)
 
virtual void visit_classdef_methods_block (tree_classdef_methods_block &)
 
virtual void visit_classdef_methods_list (tree_classdef_methods_list &)
 
virtual void visit_classdef_properties_block (tree_classdef_properties_block &)
 
virtual void visit_classdef_property (tree_classdef_property &)
 
virtual void visit_classdef_property_list (tree_classdef_property_list &)
 
virtual void visit_classdef_superclass (tree_classdef_superclass &)
 
virtual void visit_classdef_superclass_list (tree_classdef_superclass_list &)
 
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_funcall (tree_funcall &)
 
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
virtual void tree_walker::visit_classdef ( tree_classdef )
inlinevirtualinherited

Definition at line 267 of file pt-walk.h.

Referenced by tree_classdef::accept().

virtual void tree_walker::visit_classdef_attribute ( tree_classdef_attribute )
inlinevirtualinherited

Definition at line 219 of file pt-walk.h.

Referenced by tree_classdef_attribute::accept().

virtual void tree_walker::visit_classdef_attribute_list ( tree_classdef_attribute_list )
inlinevirtualinherited

Definition at line 222 of file pt-walk.h.

Referenced by tree_classdef_attribute_list::accept().

virtual void tree_walker::visit_classdef_body ( tree_classdef_body )
inlinevirtualinherited

Definition at line 264 of file pt-walk.h.

virtual void tree_walker::visit_classdef_enum ( tree_classdef_enum )
inlinevirtualinherited

Definition at line 255 of file pt-walk.h.

Referenced by tree_classdef_enum::accept().

virtual void tree_walker::visit_classdef_enum_block ( tree_classdef_enum_block )
inlinevirtualinherited

Definition at line 261 of file pt-walk.h.

Referenced by tree_classdef_enum_block::accept().

virtual void tree_walker::visit_classdef_enum_list ( tree_classdef_enum_list )
inlinevirtualinherited

Definition at line 258 of file pt-walk.h.

Referenced by tree_classdef_enum_list::accept().

virtual void tree_walker::visit_classdef_event ( tree_classdef_event )
inlinevirtualinherited

Definition at line 246 of file pt-walk.h.

Referenced by tree_classdef_event::accept().

virtual void tree_walker::visit_classdef_events_block ( tree_classdef_events_block )
inlinevirtualinherited

Definition at line 252 of file pt-walk.h.

Referenced by tree_classdef_events_block::accept().

virtual void tree_walker::visit_classdef_events_list ( tree_classdef_events_list )
inlinevirtualinherited

Definition at line 249 of file pt-walk.h.

Referenced by tree_classdef_events_list::accept().

virtual void tree_walker::visit_classdef_methods_block ( tree_classdef_methods_block )
inlinevirtualinherited

Definition at line 243 of file pt-walk.h.

Referenced by tree_classdef_methods_block::accept().

virtual void tree_walker::visit_classdef_methods_list ( tree_classdef_methods_list )
inlinevirtualinherited

Definition at line 240 of file pt-walk.h.

Referenced by tree_classdef_methods_list::accept().

virtual void tree_walker::visit_classdef_properties_block ( tree_classdef_properties_block )
inlinevirtualinherited

Definition at line 237 of file pt-walk.h.

Referenced by tree_classdef_properties_block::accept().

virtual void tree_walker::visit_classdef_property ( tree_classdef_property )
inlinevirtualinherited

Definition at line 231 of file pt-walk.h.

Referenced by tree_classdef_property::accept().

virtual void tree_walker::visit_classdef_property_list ( tree_classdef_property_list )
inlinevirtualinherited

Definition at line 234 of file pt-walk.h.

Referenced by tree_classdef_property_list::accept().

virtual void tree_walker::visit_classdef_superclass ( tree_classdef_superclass )
inlinevirtualinherited

Definition at line 225 of file pt-walk.h.

Referenced by tree_classdef_superclass::accept().

virtual void tree_walker::visit_classdef_superclass_list ( tree_classdef_superclass_list )
inlinevirtualinherited

Definition at line 228 of file pt-walk.h.

Referenced by tree_classdef_superclass_list::accept().

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_funcall ( tree_funcall )
virtual

Implements tree_walker.

Definition at line 360 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 379 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 388 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 397 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 433 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 130 of file pt-check.h.

Referenced by gripe().


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