GNU Octave  9.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
tree_print_code Class Reference

#include "pt-pr-code.h"

Inheritance diagram for tree_print_code:
tree_walker

Public Member Functions

 tree_print_code (std::ostream &os_arg, const std::string &pfx="", bool pr_orig_txt=true)
 
 ~tree_print_code ()=default
 
void print_fcn_handle_body (tree_expression *)
 
void visit_anon_fcn_handle (tree_anon_fcn_handle &)
 
void visit_arg_size_spec (tree_arg_size_spec &)
 
void visit_arg_validation (tree_arg_validation &)
 
void visit_arg_validation_fcns (tree_arg_validation_fcns &)
 
void visit_args_block_attribute_list (tree_args_block_attribute_list &)
 
void visit_args_block_validation_list (tree_args_block_validation_list &)
 
void visit_argument_list (tree_argument_list &)
 
void visit_arguments_block (tree_arguments_block &)
 
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_command (tree_decl_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_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_metaclass_query (tree_metaclass_query &)
 
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_function_header (octave_user_function &)
 
void visit_octave_user_function_trailer (octave_user_function &)
 
void visit_octave_user_script (octave_user_script &)
 
void visit_parameter_list (tree_parameter_list &)
 
void visit_postfix_expression (tree_postfix_expression &)
 
void visit_prefix_expression (tree_prefix_expression &)
 
void visit_return_command (tree_return_command &)
 
void visit_simple_assignment (tree_simple_assignment &)
 
void visit_simple_for_command (tree_simple_for_command &)
 
void visit_spmd_command (tree_spmd_command &)
 
void visit_statement (tree_statement &)
 
void visit_statement_list (tree_statement_list &)
 
void visit_superclass_ref (tree_superclass_ref &)
 
void visit_switch_case (tree_switch_case &)
 
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 &)
 
- Public Member Functions inherited from tree_walker
virtual void visit_boolean_expression (tree_boolean_expression &)
 
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_compound_binary_expression (tree_compound_binary_expression &)
 
virtual void visit_switch_case_list (tree_switch_case_list &)
 

Additional Inherited Members

- Protected Member Functions inherited from tree_walker
 tree_walker ()
 
virtual ~tree_walker ()=default
 

Detailed Description

Definition at line 45 of file pt-pr-code.h.

Constructor & Destructor Documentation

◆ tree_print_code()

tree_print_code::tree_print_code ( std::ostream &  os_arg,
const std::string &  pfx = "",
bool  pr_orig_txt = true 
)
inline

Definition at line 49 of file pt-pr-code.h.

◆ ~tree_print_code()

tree_print_code::~tree_print_code ( )
default

Member Function Documentation

◆ print_fcn_handle_body()

void tree_print_code::print_fcn_handle_body ( tree_expression e)

Definition at line 1191 of file pt-pr-code.cc.

References tree::accept().

Referenced by visit_anon_fcn_handle().

◆ visit_anon_fcn_handle()

void tree_print_code::visit_anon_fcn_handle ( tree_anon_fcn_handle afh)
virtual

◆ visit_arg_size_spec()

void tree_print_code::visit_arg_size_spec ( tree_arg_size_spec )
virtual

Reimplemented from tree_walker.

Definition at line 106 of file pt-pr-code.cc.

References panic_impossible.

◆ visit_arg_validation()

void tree_print_code::visit_arg_validation ( tree_arg_validation )
virtual

Reimplemented from tree_walker.

Definition at line 100 of file pt-pr-code.cc.

References panic_impossible.

◆ visit_arg_validation_fcns()

void tree_print_code::visit_arg_validation_fcns ( tree_arg_validation_fcns )
virtual

Reimplemented from tree_walker.

Definition at line 112 of file pt-pr-code.cc.

References panic_impossible.

◆ visit_args_block_attribute_list()

void tree_print_code::visit_args_block_attribute_list ( tree_args_block_attribute_list )
virtual

Reimplemented from tree_walker.

Definition at line 88 of file pt-pr-code.cc.

References panic_impossible.

◆ visit_args_block_validation_list()

void tree_print_code::visit_args_block_validation_list ( tree_args_block_validation_list )
virtual

Reimplemented from tree_walker.

Definition at line 94 of file pt-pr-code.cc.

References panic_impossible.

◆ visit_argument_list()

void tree_print_code::visit_argument_list ( tree_argument_list lst)
virtual

Reimplemented from tree_walker.

Definition at line 60 of file pt-pr-code.cc.

References tree::accept(), base_list< elt_type >::begin(), and base_list< elt_type >::end().

◆ visit_arguments_block()

void tree_print_code::visit_arguments_block ( tree_arguments_block )
virtual

Reimplemented from tree_walker.

Definition at line 79 of file pt-pr-code.cc.

◆ visit_binary_expression()

void tree_print_code::visit_binary_expression ( tree_binary_expression expr)
virtual

◆ visit_break_command()

void tree_print_code::visit_break_command ( tree_break_command )
virtual

Reimplemented from tree_walker.

Definition at line 140 of file pt-pr-code.cc.

◆ visit_cell()

void tree_print_code::visit_cell ( tree_cell lst)
virtual

◆ visit_colon_expression()

void tree_print_code::visit_colon_expression ( tree_colon_expression expr)
virtual

◆ visit_complex_for_command()

◆ visit_constant()

void tree_print_code::visit_constant ( tree_constant val)
virtual

Reimplemented from tree_walker.

Definition at line 749 of file pt-pr-code.cc.

References tree_constant::print_raw().

◆ visit_continue_command()

void tree_print_code::visit_continue_command ( tree_continue_command )
virtual

Reimplemented from tree_walker.

Definition at line 181 of file pt-pr-code.cc.

◆ visit_decl_command()

void tree_print_code::visit_decl_command ( tree_decl_command cmd)
virtual

◆ visit_decl_elt()

void tree_print_code::visit_decl_elt ( tree_decl_elt cmd)
virtual

◆ visit_decl_init_list()

void tree_print_code::visit_decl_init_list ( tree_decl_init_list lst)
virtual

Reimplemented from tree_walker.

Definition at line 202 of file pt-pr-code.cc.

References tree_decl_elt::accept(), base_list< elt_type >::begin(), and base_list< elt_type >::end().

◆ visit_do_until_command()

◆ visit_fcn_handle()

void tree_print_code::visit_fcn_handle ( tree_fcn_handle fh)
virtual

Reimplemented from tree_walker.

Definition at line 761 of file pt-pr-code.cc.

References tree_fcn_handle::print_raw().

◆ visit_function_def()

void tree_print_code::visit_function_def ( tree_function_def fdef)
virtual

Reimplemented from tree_walker.

Definition at line 439 of file pt-pr-code.cc.

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

◆ visit_identifier()

void tree_print_code::visit_identifier ( tree_identifier id)
virtual

Reimplemented from tree_walker.

Definition at line 452 of file pt-pr-code.cc.

◆ visit_if_clause()

void tree_print_code::visit_if_clause ( tree_if_clause cmd)
virtual

◆ visit_if_command()

void tree_print_code::visit_if_command ( tree_if_command cmd)
virtual

◆ visit_if_command_list()

void tree_print_code::visit_if_command_list ( tree_if_command_list lst)
virtual

◆ visit_index_expression()

◆ visit_matrix()

void tree_print_code::visit_matrix ( tree_matrix lst)
virtual

◆ visit_metaclass_query()

void tree_print_code::visit_metaclass_query ( tree_metaclass_query mcq)
virtual

Reimplemented from tree_walker.

Definition at line 1185 of file pt-pr-code.cc.

References tree_metaclass_query::class_name().

◆ visit_multi_assignment()

◆ visit_no_op_command()

void tree_print_code::visit_no_op_command ( tree_no_op_command cmd)
virtual

◆ visit_octave_user_function()

void tree_print_code::visit_octave_user_function ( octave_user_function fcn)
virtual

◆ visit_octave_user_function_header()

◆ visit_octave_user_function_trailer()

void tree_print_code::visit_octave_user_function_trailer ( octave_user_function fcn)

Definition at line 431 of file pt-pr-code.cc.

References octave_user_function::trailing_comment().

Referenced by visit_octave_user_function().

◆ visit_octave_user_script()

void tree_print_code::visit_octave_user_script ( octave_user_script fcn)
virtual

Reimplemented from tree_walker.

Definition at line 364 of file pt-pr-code.cc.

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

◆ visit_parameter_list()

◆ visit_postfix_expression()

void tree_print_code::visit_postfix_expression ( tree_postfix_expression expr)
virtual

Reimplemented from tree_walker.

Definition at line 833 of file pt-pr-code.cc.

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

◆ visit_prefix_expression()

void tree_print_code::visit_prefix_expression ( tree_prefix_expression expr)
virtual

Reimplemented from tree_walker.

Definition at line 850 of file pt-pr-code.cc.

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

◆ visit_return_command()

void tree_print_code::visit_return_command ( tree_return_command )
virtual

Reimplemented from tree_walker.

Definition at line 867 of file pt-pr-code.cc.

◆ visit_simple_assignment()

void tree_print_code::visit_simple_assignment ( tree_simple_assignment expr)
virtual

◆ visit_simple_for_command()

◆ visit_spmd_command()

void tree_print_code::visit_spmd_command ( tree_spmd_command cmd)
virtual

◆ visit_statement()

void tree_print_code::visit_statement ( tree_statement stmt)
virtual

◆ visit_statement_list()

void tree_print_code::visit_statement_list ( tree_statement_list lst)
virtual

Reimplemented from tree_walker.

Definition at line 929 of file pt-pr-code.cc.

◆ visit_superclass_ref()

void tree_print_code::visit_superclass_ref ( tree_superclass_ref scr)
virtual

Reimplemented from tree_walker.

Definition at line 1179 of file pt-pr-code.cc.

References tree_superclass_ref::class_name(), and tree_superclass_ref::method_name().

◆ visit_switch_case()

◆ visit_switch_command()

void tree_print_code::visit_switch_command ( tree_switch_command cmd)
virtual

◆ visit_try_catch_command()

◆ visit_unwind_protect_command()

◆ visit_while_command()


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