GNU Octave  8.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
parse_tree_validator Class Reference
Inheritance diagram for parse_tree_validator:
Collaboration diagram for parse_tree_validator:

Public Member Functions

 parse_tree_validator (const parse_tree_validator &)=delete
 
 parse_tree_validator (void)
 
 ~parse_tree_validator (void)=default
 
std::list< parse_exceptionerror_list (void) const
 
symbol_scope get_scope (void) const
 
bool ok (void) const
 
parse_tree_validatoroperator= (const parse_tree_validator &)=delete
 
virtual void visit_anon_fcn_handle (tree_anon_fcn_handle &)
 
virtual void visit_arg_size_spec (tree_arg_size_spec &)
 
virtual void visit_arg_validation (tree_arg_validation &)
 
virtual void visit_arg_validation_fcns (tree_arg_validation_fcns &)
 
virtual void visit_args_block_attribute_list (tree_args_block_attribute_list &)
 
virtual void visit_args_block_validation_list (tree_args_block_validation_list &)
 
virtual void visit_argument_list (tree_argument_list &)
 
virtual void visit_arguments_block (tree_arguments_block &)
 
virtual void visit_binary_expression (tree_binary_expression &)
 
virtual void visit_boolean_expression (tree_boolean_expression &)
 
virtual void visit_break_command (tree_break_command &)
 
virtual 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 &)
 
virtual void visit_colon_expression (tree_colon_expression &)
 
virtual void visit_complex_for_command (tree_complex_for_command &)
 
virtual void visit_compound_binary_expression (tree_compound_binary_expression &)
 
virtual void visit_constant (tree_constant &)
 
virtual void visit_continue_command (tree_continue_command &)
 
virtual void visit_decl_command (tree_decl_command &)
 
virtual void visit_decl_elt (tree_decl_elt &)
 
virtual void visit_decl_init_list (tree_decl_init_list &)
 
virtual void visit_do_until_command (tree_do_until_command &)
 
virtual void visit_fcn_handle (tree_fcn_handle &)
 
virtual void visit_function_def (tree_function_def &)
 
virtual void visit_identifier (tree_identifier &)
 
virtual void visit_if_clause (tree_if_clause &)
 
virtual void visit_if_command (tree_if_command &)
 
virtual void visit_if_command_list (tree_if_command_list &)
 
void visit_index_expression (tree_index_expression &idx_expr)
 
virtual void visit_matrix (tree_matrix &)
 
virtual void visit_metaclass_query (tree_metaclass_query &)
 
virtual void visit_multi_assignment (tree_multi_assignment &)
 
virtual void visit_no_op_command (tree_no_op_command &)
 
void visit_octave_user_function (octave_user_function &fcn)
 
void visit_octave_user_script (octave_user_script &script)
 
virtual void visit_parameter_list (tree_parameter_list &)
 
virtual void visit_postfix_expression (tree_postfix_expression &)
 
virtual void visit_prefix_expression (tree_prefix_expression &)
 
virtual void visit_return_command (tree_return_command &)
 
virtual void visit_simple_assignment (tree_simple_assignment &)
 
virtual void visit_simple_for_command (tree_simple_for_command &)
 
virtual void visit_spmd_command (tree_spmd_command &)
 
virtual void visit_statement (tree_statement &)
 
virtual void visit_statement_list (tree_statement_list &)
 
virtual void visit_superclass_ref (tree_superclass_ref &)
 
virtual void visit_switch_case (tree_switch_case &)
 
virtual void visit_switch_case_list (tree_switch_case_list &)
 
virtual void visit_switch_command (tree_switch_command &)
 
virtual void visit_try_catch_command (tree_try_catch_command &)
 
virtual void visit_unwind_protect_command (tree_unwind_protect_command &)
 
virtual void visit_while_command (tree_while_command &)
 

Private Attributes

std::list< parse_exceptionm_error_list
 
symbol_scope m_scope
 

Detailed Description

Definition at line 6538 of file oct-parse.cc.

Constructor & Destructor Documentation

◆ parse_tree_validator() [1/2]

parse_tree_validator::parse_tree_validator ( void  )
inline

Definition at line 6542 of file oct-parse.cc.

◆ parse_tree_validator() [2/2]

parse_tree_validator::parse_tree_validator ( const parse_tree_validator )
delete

◆ ~parse_tree_validator()

parse_tree_validator::~parse_tree_validator ( void  )
default

Member Function Documentation

◆ error_list()

std::list<parse_exception> parse_tree_validator::error_list ( void  ) const
inline

◆ get_scope()

symbol_scope parse_tree_validator::get_scope ( void  ) const
inline

Definition at line 6552 of file oct-parse.cc.

References m_scope.

◆ ok()

bool parse_tree_validator::ok ( void  ) const
inline

◆ operator=()

parse_tree_validator& parse_tree_validator::operator= ( const parse_tree_validator )
delete

◆ visit_anon_fcn_handle()

void tree_walker::visit_anon_fcn_handle ( tree_anon_fcn_handle afh)
virtualinherited

◆ visit_arg_size_spec()

void tree_walker::visit_arg_size_spec ( tree_arg_size_spec spec)
virtualinherited

◆ visit_arg_validation()

◆ visit_arg_validation_fcns()

void tree_walker::visit_arg_validation_fcns ( tree_arg_validation_fcns spec)
virtualinherited

◆ visit_args_block_attribute_list()

void tree_walker::visit_args_block_attribute_list ( tree_args_block_attribute_list lst)
virtualinherited

◆ visit_args_block_validation_list()

void tree_walker::visit_args_block_validation_list ( tree_args_block_validation_list lst)
virtualinherited

Reimplemented in tree_print_code, tree_evaluator, and tree_breakpoint.

Definition at line 81 of file pt-walk.cc.

Referenced by tree_args_block_validation_list::accept().

◆ visit_argument_list()

void tree_walker::visit_argument_list ( tree_argument_list lst)
virtualinherited

◆ visit_arguments_block()

◆ visit_binary_expression()

◆ visit_boolean_expression()

void tree_walker::visit_boolean_expression ( tree_boolean_expression expr)
virtualinherited

Reimplemented in tree_evaluator.

Definition at line 147 of file pt-walk.cc.

References tree_walker::visit_binary_expression().

Referenced by tree_boolean_expression::accept().

◆ visit_break_command()

void tree_walker::visit_break_command ( tree_break_command )
virtualinherited

Reimplemented in tree_print_code, tree_evaluator, tree_breakpoint, and ctor_analyzer.

Definition at line 157 of file pt-walk.cc.

Referenced by tree_break_command::accept().

◆ visit_cell()

void tree_walker::visit_cell ( tree_cell lst)
virtualinherited

◆ visit_classdef()

◆ visit_classdef_attribute()

void tree_walker::visit_classdef_attribute ( tree_classdef_attribute attr)
virtualinherited

◆ visit_classdef_attribute_list()

void tree_walker::visit_classdef_attribute_list ( tree_classdef_attribute_list lst)
virtualinherited

Definition at line 629 of file pt-walk.cc.

Referenced by tree_classdef_attribute_list::accept().

◆ visit_classdef_body()

void tree_walker::visit_classdef_body ( tree_classdef_body body)
virtualinherited

◆ visit_classdef_enum()

void tree_walker::visit_classdef_enum ( tree_classdef_enum )
virtualinherited

Definition at line 716 of file pt-walk.cc.

Referenced by tree_classdef_enum::accept().

◆ visit_classdef_enum_block()

void tree_walker::visit_classdef_enum_block ( tree_classdef_enum_block blk)
virtualinherited

◆ visit_classdef_enum_list()

void tree_walker::visit_classdef_enum_list ( tree_classdef_enum_list lst)
virtualinherited

Definition at line 721 of file pt-walk.cc.

Referenced by tree_classdef_enum_list::accept().

◆ visit_classdef_event()

void tree_walker::visit_classdef_event ( tree_classdef_event )
virtualinherited

Definition at line 694 of file pt-walk.cc.

Referenced by tree_classdef_event::accept().

◆ visit_classdef_events_block()

void tree_walker::visit_classdef_events_block ( tree_classdef_events_block blk)
virtualinherited

◆ visit_classdef_events_list()

void tree_walker::visit_classdef_events_list ( tree_classdef_events_list lst)
virtualinherited

Definition at line 699 of file pt-walk.cc.

Referenced by tree_classdef_events_list::accept().

◆ visit_classdef_methods_block()

void tree_walker::visit_classdef_methods_block ( tree_classdef_methods_block blk)
virtualinherited

◆ visit_classdef_methods_list()

void tree_walker::visit_classdef_methods_list ( tree_classdef_methods_list lst)
virtualinherited

◆ visit_classdef_properties_block()

void tree_walker::visit_classdef_properties_block ( tree_classdef_properties_block blk)
virtualinherited

◆ visit_classdef_property()

void tree_walker::visit_classdef_property ( tree_classdef_property )
virtualinherited

Definition at line 652 of file pt-walk.cc.

Referenced by tree_classdef_property::accept().

◆ visit_classdef_property_list()

void tree_walker::visit_classdef_property_list ( tree_classdef_property_list lst)
virtualinherited

Definition at line 658 of file pt-walk.cc.

Referenced by tree_classdef_property_list::accept().

◆ visit_classdef_superclass()

void tree_walker::visit_classdef_superclass ( tree_classdef_superclass )
virtualinherited

Definition at line 638 of file pt-walk.cc.

Referenced by tree_classdef_superclass::accept().

◆ visit_classdef_superclass_list()

void tree_walker::visit_classdef_superclass_list ( tree_classdef_superclass_list lst)
virtualinherited

Definition at line 643 of file pt-walk.cc.

Referenced by tree_classdef_superclass_list::accept().

◆ visit_colon_expression()

void tree_walker::visit_colon_expression ( tree_colon_expression expr)
virtualinherited

◆ visit_complex_for_command()

◆ visit_compound_binary_expression()

void tree_walker::visit_compound_binary_expression ( tree_compound_binary_expression expr)
virtualinherited

Reimplemented in tree_evaluator.

Definition at line 152 of file pt-walk.cc.

References tree_walker::visit_binary_expression().

Referenced by tree_compound_binary_expression::accept().

◆ visit_constant()

void tree_walker::visit_constant ( tree_constant )
virtualinherited

Reimplemented in tree_print_code, tree_evaluator, tree_breakpoint, and ctor_analyzer.

Definition at line 468 of file pt-walk.cc.

Referenced by tree_constant::accept().

◆ visit_continue_command()

void tree_walker::visit_continue_command ( tree_continue_command )
virtualinherited

Reimplemented in tree_print_code, tree_evaluator, tree_breakpoint, and ctor_analyzer.

Definition at line 180 of file pt-walk.cc.

Referenced by tree_continue_command::accept().

◆ visit_decl_command()

void tree_walker::visit_decl_command ( tree_decl_command cmd)
virtualinherited

◆ visit_decl_elt()

void tree_walker::visit_decl_elt ( tree_decl_elt cmd)
virtualinherited

◆ visit_decl_init_list()

void tree_walker::visit_decl_init_list ( tree_decl_init_list lst)
virtualinherited

Reimplemented in tree_print_code, tree_breakpoint, and ctor_analyzer.

Definition at line 206 of file pt-walk.cc.

Referenced by tree_decl_init_list::accept().

◆ visit_do_until_command()

void tree_walker::visit_do_until_command ( tree_do_until_command cmd)
virtualinherited

◆ visit_fcn_handle()

void tree_walker::visit_fcn_handle ( tree_fcn_handle )
virtualinherited

Reimplemented in tree_print_code, tree_evaluator, tree_breakpoint, and ctor_analyzer.

Definition at line 473 of file pt-walk.cc.

Referenced by tree_fcn_handle::accept().

◆ visit_function_def()

void tree_walker::visit_function_def ( tree_function_def fdef)
virtualinherited

Reimplemented in tree_print_code, tree_evaluator, and ctor_analyzer.

Definition at line 283 of file pt-walk.cc.

References f, tree_function_def::function(), and octave_value::function_value().

Referenced by tree_function_def::accept().

◆ visit_identifier()

void tree_walker::visit_identifier ( tree_identifier )
virtualinherited

Reimplemented in tree_print_code, tree_evaluator, tree_breakpoint, tree_anon_scopes, and ctor_analyzer.

Definition at line 293 of file pt-walk.cc.

Referenced by tree_identifier::accept().

◆ visit_if_clause()

void tree_walker::visit_if_clause ( tree_if_clause cmd)
virtualinherited

◆ visit_if_command()

void tree_walker::visit_if_command ( tree_if_command cmd)
virtualinherited

Reimplemented in tree_print_code, tree_evaluator, and ctor_analyzer.

Definition at line 311 of file pt-walk.cc.

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

Referenced by tree_if_command::accept().

◆ visit_if_command_list()

void tree_walker::visit_if_command_list ( tree_if_command_list lst)
virtualinherited

◆ visit_index_expression()

void parse_tree_validator::visit_index_expression ( tree_index_expression idx_expr)
inlinevirtual

◆ visit_matrix()

void tree_walker::visit_matrix ( tree_matrix lst)
virtualinherited

◆ visit_metaclass_query()

void tree_walker::visit_metaclass_query ( tree_metaclass_query )
virtualinherited

Reimplemented in tree_print_code, and tree_evaluator.

Definition at line 611 of file pt-walk.cc.

Referenced by tree_metaclass_query::accept().

◆ visit_multi_assignment()

◆ visit_no_op_command()

void tree_walker::visit_no_op_command ( tree_no_op_command )
virtualinherited

Reimplemented in tree_print_code, tree_evaluator, tree_breakpoint, and ctor_analyzer.

Definition at line 463 of file pt-walk.cc.

Referenced by tree_no_op_command::accept().

◆ visit_octave_user_function()

void parse_tree_validator::visit_octave_user_function ( octave_user_function fcn)
inlinevirtual

◆ visit_octave_user_script()

void parse_tree_validator::visit_octave_user_script ( octave_user_script script)
inlinevirtual

Reimplemented from tree_walker.

Definition at line 6561 of file oct-parse.cc.

References tree_statement_list::accept(), octave_user_code::body(), m_scope, and octave_user_code::scope().

◆ visit_parameter_list()

void tree_walker::visit_parameter_list ( tree_parameter_list lst)
virtualinherited

◆ visit_postfix_expression()

void tree_walker::visit_postfix_expression ( tree_postfix_expression expr)
virtualinherited

◆ visit_prefix_expression()

void tree_walker::visit_prefix_expression ( tree_prefix_expression expr)
virtualinherited

◆ visit_return_command()

void tree_walker::visit_return_command ( tree_return_command )
virtualinherited

Reimplemented in tree_print_code, tree_evaluator, tree_breakpoint, and ctor_analyzer.

Definition at line 507 of file pt-walk.cc.

Referenced by tree_return_command::accept().

◆ visit_simple_assignment()

void tree_walker::visit_simple_assignment ( tree_simple_assignment expr)
virtualinherited

◆ visit_simple_for_command()

◆ visit_spmd_command()

void tree_walker::visit_spmd_command ( tree_spmd_command cmd)
virtualinherited

Reimplemented in tree_print_code, and tree_evaluator.

Definition at line 259 of file pt-walk.cc.

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

Referenced by tree_spmd_command::accept().

◆ visit_statement()

void tree_walker::visit_statement ( tree_statement stmt)
virtualinherited

◆ visit_statement_list()

void tree_walker::visit_statement_list ( tree_statement_list lst)
virtualinherited

Reimplemented in tree_print_code, tree_evaluator, tree_breakpoint, and tree_anon_scopes.

Definition at line 540 of file pt-walk.cc.

Referenced by tree_statement_list::accept().

◆ visit_superclass_ref()

void tree_walker::visit_superclass_ref ( tree_superclass_ref )
virtualinherited

Reimplemented in ctor_analyzer, tree_print_code, and tree_evaluator.

Definition at line 606 of file pt-walk.cc.

Referenced by tree_superclass_ref::accept().

◆ visit_switch_case()

void tree_walker::visit_switch_case ( tree_switch_case cs)
virtualinherited

◆ visit_switch_case_list()

void tree_walker::visit_switch_case_list ( tree_switch_case_list lst)
virtualinherited

◆ visit_switch_command()

void tree_walker::visit_switch_command ( tree_switch_command cmd)
virtualinherited

◆ visit_try_catch_command()

◆ visit_unwind_protect_command()

void tree_walker::visit_unwind_protect_command ( tree_unwind_protect_command cmd)
virtualinherited

◆ visit_while_command()

void tree_walker::visit_while_command ( tree_while_command cmd)
virtualinherited

Member Data Documentation

◆ m_error_list

std::list<parse_exception> parse_tree_validator::m_error_list
private

Definition at line 6618 of file oct-parse.cc.

Referenced by error_list(), ok(), and visit_index_expression().

◆ m_scope

symbol_scope parse_tree_validator::m_scope
private

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