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

#include "pt-eval.h"

Inheritance diagram for tree_evaluator:
tree_walker

Classes

class  value_stack
 

Public Types

typedef void(* decl_elt_init_fcn) (tree_decl_elt &)
 
enum  echo_state { ECHO_OFF = 0 , ECHO_SCRIPTS = 1 , ECHO_FUNCTIONS = 2 , ECHO_ALL = 4 }
 
enum  stmt_list_type { SC_FUNCTION , SC_SCRIPT , SC_OTHER }
 

Public Member Functions

 tree_evaluator (interpreter &interp)
 
 ~tree_evaluator ()=default
 
void add_autoload (const std::string &fcn, const std::string &nm)
 
void add_debug_watch_expression (const std::string &expr)
 
void append_index_list (char type, const octave_value_list &idx)
 
void assign (const std::string &name, const octave_value &val=octave_value())
 
void assignin (const std::string &context, const std::string &name, const octave_value &val=octave_value())
 
bool at_top_level () const
 
std::list< std::string > autoloaded_functions () const
 
octave_map backtrace () const
 
octave_map backtrace (octave_idx_type &curr_user_frame, bool print_subfn=true) const
 
std::list< std::shared_ptr< stack_frame > > backtrace_frames () const
 
std::list< std::shared_ptr< stack_frame > > backtrace_frames (octave_idx_type &curr_user_frame) const
 
std::list< frame_info > backtrace_info () const
 
std::list< frame_info > backtrace_info (octave_idx_type &curr_user_frame, bool print_subfn=true) const
 
std::string backtrace_message () const
 
void bind_ans (const octave_value &val, bool print)
 
bool break_on_next_statement () const
 
bool break_on_next_statement (bool val)
 
int breaking () const
 
int breaking (int n)
 
octave_functioncaller_function () const
 
void clear_all (bool force=false)
 
void clear_debug_watch_expressions ()
 
void clear_global_variable (const std::string &name)
 
void clear_global_variable_pattern (const std::string &pattern)
 
void clear_global_variable_regexp (const std::string &pattern)
 
void clear_global_variables ()
 
void clear_index_list ()
 
void clear_objects ()
 
void clear_symbol (const std::string &name)
 
void clear_symbol_pattern (const std::string &pattern)
 
void clear_symbol_regexp (const std::string &pattern)
 
void clear_variable (const std::string &name)
 
void clear_variable_pattern (const std::string &pattern)
 
void clear_variable_regexp (const std::string &pattern)
 
void clear_variables ()
 
int continuing () const
 
int continuing (int n)
 
octave_value_list convert_return_list_to_const_vector (tree_parameter_list *ret_list, int nargout, const Cell &varargout)
 
octave_value_list convert_to_const_vector (tree_argument_list *arg_list)
 
unwind_protectcurr_fcn_unwind_protect_frame ()
 
std::size_t current_call_stack_frame_number () const
 
int current_column () const
 
octave_functioncurrent_function (bool skip_first=false) const
 
std::string current_function_name (bool skip_first=false) const
 
int current_line () const
 
octave_user_codecurrent_user_code () const
 
std::shared_ptr< stack_framecurrent_user_frame () const
 
void dbcont ()
 
void dbquit (bool all=false)
 
int dbstep_flag () const
 
int dbstep_flag (int val)
 
void dbupdown (int n, bool verbose=false)
 
std::size_t debug_frame () const
 
std::size_t debug_frame (std::size_t n)
 
bool debug_mode () const
 
octave_user_codedebug_user_code () const
 
int debug_user_code_column () const
 
int debug_user_code_line () const
 
std::set< std::string > debug_watch_expressions () const
 
void debug_where (std::ostream &os) const
 
void define_parameter_list_from_arg_vector (tree_parameter_list *param_list, const octave_value_list &args)
 
void display_call_stack () const
 
void do_unwind_protect_cleanup_code (tree_statement_list *list)
 
octave_value do_who (int argc, const string_vector &argv, bool return_list, bool verbose=false)
 
int echo () const
 
octave_value echo (const octave_value_list &args, int nargout)
 
int echo (int val)
 
int echo_state ()
 
octave_map empty_backtrace () const
 
void enter_debugger (const std::string &prompt="debug> ")
 
octave_value_list eval (const std::string &try_code, const std::string &catch_code, int nargout)
 
octave_value_list eval (const std::string &try_code, int nargout)
 
void eval (std::shared_ptr< tree_statement_list > &stmt_list, bool interactive)
 
bool eval_decl_elt (tree_decl_elt *elt)
 
octave_value_list eval_string (const octave_value &arg, bool silent, int &parse_status, int nargout)
 
octave_value eval_string (const std::string &eval_str, bool silent, int &parse_status)
 
octave_value_list eval_string (const std::string &eval_str, bool silent, int &parse_status, int nargout)
 
octave_value_list evalin (const std::string &context, const std::string &try_code, const std::string &catch_code, int nargout)
 
octave_value_list evalin (const std::string &context, const std::string &try_code, int nargout)
 
octave_value evaluate (tree_decl_elt *)
 
octave_value evaluate_anon_fcn_handle (tree_anon_fcn_handle &afh)
 
octave_value_list evaluate_end_expression (const octave_value_list &args)
 
octave_value_list execute_builtin_function (octave_builtin &builtin_function, int nargout, const octave_value_list &args)
 
octave_value_list execute_mex_function (octave_mex_function &mex_function, int nargout, const octave_value_list &args)
 
octave_value_list execute_user_function (octave_user_function &user_function, int nargout, const octave_value_list &args)
 
octave_value_list execute_user_script (octave_user_script &user_script, int nargout, const octave_value_list &args)
 
void final_index_error (index_exception &ie, const tree_expression *expr)
 
octave_value find (const std::string &name)
 
octave_value get_auto_fcn_var (stack_frame::auto_var_type avt) const
 
octave_map get_autoload_map () const
 
bp_tableget_bp_table ()
 
symbol_scope get_current_scope () const
 
std::shared_ptr< stack_frameget_current_stack_frame () const
 
std::string get_dispatch_class () const
 
interpreterget_interpreter ()
 
void get_line_and_eval ()
 
std::shared_ptr< push_parserget_parser ()
 
profilerget_profiler ()
 
symbol_info_list get_symbol_info ()
 
symbol_scope get_top_scope () const
 
octave_user_codeget_user_code (const std::string &fname="")
 
symbol_info_list glob_symbol_info (const std::string &pattern) const
 
void global_assign (const std::string &name, const octave_value &val=octave_value())
 
std::list< std::string > global_variable_names () const
 
octave_valueglobal_varref (const std::string &name)
 
octave_value global_varval (const std::string &name) const
 
void goto_base_frame ()
 
void goto_caller_frame ()
 
bool goto_frame (std::size_t n=0, bool verbose=false)
 
Matrix ignored_fcn_outputs () const
 
bool in_debug_repl () const
 
bool in_top_level_repl () const
 
bool in_user_code () const
 
const std::list< octave_value_list > & index_list () const
 
int index_position () const
 
const std::string & index_type () const
 
octave_value indexed_object () const
 
void install_variable (const std::string &name, const octave_value &value, bool global)
 
bool is_class_constructor_executing (std::string &dispatch_class) const
 
bool is_class_method_executing (std::string &dispatch_class) const
 
bool is_defined (const symbol_record &sym) const
 
bool is_defined (const tree_expression *expr) const
 
bool is_global (const std::string &name) const
 
bool is_local_variable (const std::string &name) const
 
bool is_variable (const std::string &name) const
 
bool is_variable (const symbol_record &sym) const
 
bool is_variable (const tree_expression *expr) const
 
void keyboard (const std::string &prompt="keyboard> ")
 
std::string lookup_autoload (const std::string &nm) const
 
const std::list< octave_lvalue > * lvalue_list () const
 
octave_value make_fcn_handle (const std::string &nm)
 
std::list< octave_lvaluemake_lvalue_list (tree_argument_list *)
 
octave_value_list make_value_list (tree_argument_list *args, const string_vector &arg_nm)
 
int max_recursion_depth () const
 
octave_value max_recursion_depth (const octave_value_list &args, int nargout)
 
int max_recursion_depth (int n)
 
octave_value max_stack_depth (const octave_value_list &args, int nargout)
 
std::string mfilename (const std::string &opt="") const
 
bool mislocked (bool skip_first=false) const
 
void mlock (bool skip_first=false) const
 
void munlock (bool skip_first=false) const
 
int num_indices () const
 
void parse_and_execute (const std::string &input, bool &incomplete_parse)
 
std::shared_ptr< stack_framepop_return_stack_frame ()
 
void pop_scope ()
 
void pop_stack_frame ()
 
std::string PS4 () const
 
octave_value PS4 (const octave_value_list &args, int nargout)
 
std::string PS4 (const std::string &s)
 
void push_dummy_scope (const std::string &name)
 
void push_echo_state (int type, const std::string &file_name, int pos=1)
 
void push_stack_frame (const symbol_scope &scope)
 
void push_stack_frame (octave_function *fcn)
 
void push_stack_frame (octave_user_function *fcn, const stack_frame::local_vars_map &local_vars, const std::shared_ptr< stack_frame > &closure_frames=std::shared_ptr< stack_frame >())
 
void push_stack_frame (octave_user_function *fcn, const std::shared_ptr< stack_frame > &closure_frames=std::shared_ptr< stack_frame >())
 
void push_stack_frame (octave_user_script *script)
 
bool quiet_breakpoint_flag () const
 
bool quiet_breakpoint_flag (bool flag)
 
symbol_info_list regexp_symbol_info (const std::string &pattern) const
 
void remove_autoload (const std::string &fcn, const std::string &nm)
 
void remove_debug_watch_expression (const std::string &expr)
 
int repl ()
 
void reset_debug_state ()
 
void reset_debug_state (bool mode)
 
void restore_frame (std::size_t n)
 
int returning () const
 
int returning (int n)
 
std::list< std::string > reverse_lookup_autoload (const std::string &nm) const
 
int server_loop ()
 
bool server_mode () const
 
void server_mode (bool arg)
 
void set_auto_fcn_var (stack_frame::auto_var_type avt, const octave_value &val=octave_value())
 
void set_break_on_next_statement (bool val)
 
void set_dbstep_flag (int step)
 
void set_dispatch_class (const std::string &class_name)
 
void set_echo_file_pos (int pos)
 
void set_index_list (const std::string &index_type, const std::list< octave_value_list > &index_list)
 
void set_indexed_object (const octave_value &obj=octave_value())
 
void set_lvalue_list (const std::list< octave_lvalue > *lst)
 
void set_nargin (int nargin)
 
void set_nargout (int nargout)
 
void set_parser (const std::shared_ptr< push_parser > &parser)
 
void set_PS4 (const std::string &s)
 
bool silent_functions () const
 
bool silent_functions (bool b)
 
octave_value silent_functions (const octave_value_list &args, int nargout)
 
void source_file (const std::string &file_name, const std::string &context="", bool verbose=false, bool require_file=true)
 
bool statement_printing_enabled ()
 
char string_fill_char () const
 
char string_fill_char (char c)
 
octave_value string_fill_char (const octave_value_list &args, int nargout)
 
bool switch_case_label_matches (tree_switch_case *expr, const octave_value &val)
 
void top_level_assign (const std::string &name, const octave_value &val=octave_value())
 
std::list< std::string > top_level_variable_names () const
 
octave_value top_level_varval (const std::string &name) const
 
symbol_info_list top_scope_symbol_info () const
 
void undefine_parameter_list (tree_parameter_list *param_list)
 
std::list< std::string > variable_names () const
 
octave_value varval (const std::string &name) const
 
octave_value varval (const symbol_record &sym) const
 
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_boolean_expression (tree_boolean_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_compound_binary_expression (tree_compound_binary_expression &)
 
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_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_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 &)
 
std::string whos_line_format () const
 
octave_value whos_line_format (const octave_value_list &args, int nargout)
 
std::string whos_line_format (const std::string &s)
 
- Public Member Functions inherited from tree_walker
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_decl_init_list (tree_decl_init_list &)
 

Additional Inherited Members

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

Detailed Description

Definition at line 67 of file pt-eval.h.

Member Typedef Documentation

◆ decl_elt_init_fcn

typedef void(* tree_evaluator::decl_elt_init_fcn) (tree_decl_elt &)

Definition at line 126 of file pt-eval.h.

Member Enumeration Documentation

◆ echo_state

Enumerator
ECHO_OFF 
ECHO_SCRIPTS 
ECHO_FUNCTIONS 
ECHO_ALL 

Definition at line 71 of file pt-eval.h.

◆ stmt_list_type

Enumerator
SC_FUNCTION 
SC_SCRIPT 
SC_OTHER 

Definition at line 340 of file pt-eval.h.

Constructor & Destructor Documentation

◆ tree_evaluator()

tree_evaluator::tree_evaluator ( interpreter interp)
inline

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

◆ ~tree_evaluator()

tree_evaluator::~tree_evaluator ( )
default

Member Function Documentation

◆ add_autoload()

void tree_evaluator::add_autoload ( const std::string &  fcn,
const std::string &  nm 
)

Definition at line 4693 of file pt-eval.cc.

Referenced by octave::Fautoload().

◆ add_debug_watch_expression()

void tree_evaluator::add_debug_watch_expression ( const std::string &  expr)
inline

Definition at line 672 of file pt-eval.h.

Referenced by interpreter::add_debug_watch_expression().

◆ append_index_list()

void tree_evaluator::append_index_list ( char  type,
const octave_value_list idx 
)
inline

Definition at line 739 of file pt-eval.h.

Referenced by tree_index_expression::evaluate_n(), and tree_index_expression::lvalue().

◆ assign()

void tree_evaluator::assign ( const std::string &  name,
const octave_value val = octave_value () 
)

◆ assignin()

void tree_evaluator::assignin ( const std::string &  context,
const std::string &  name,
const octave_value val = octave_value () 
)

◆ at_top_level()

bool tree_evaluator::at_top_level ( ) const

Definition at line 538 of file pt-eval.cc.

References call_stack::at_top_level().

Referenced by interpreter::at_top_level(), repl(), and event_manager::set_workspace().

◆ autoloaded_functions()

std::list< std::string > tree_evaluator::autoloaded_functions ( ) const

Definition at line 4670 of file pt-eval.cc.

Referenced by interpreter::autoloaded_functions().

◆ backtrace() [1/2]

octave_map tree_evaluator::backtrace ( ) const

Definition at line 2653 of file pt-eval.cc.

References call_stack::backtrace().

◆ backtrace() [2/2]

octave_map tree_evaluator::backtrace ( octave_idx_type curr_user_frame,
bool  print_subfn = true 
) const

Definition at line 2646 of file pt-eval.cc.

References call_stack::backtrace().

◆ backtrace_frames() [1/2]

std::list< std::shared_ptr< stack_frame > > tree_evaluator::backtrace_frames ( ) const

Definition at line 2627 of file pt-eval.cc.

References call_stack::backtrace_frames().

◆ backtrace_frames() [2/2]

std::list< std::shared_ptr< stack_frame > > tree_evaluator::backtrace_frames ( octave_idx_type curr_user_frame) const

Definition at line 2621 of file pt-eval.cc.

References call_stack::backtrace_frames().

◆ backtrace_info() [1/2]

std::list< frame_info > tree_evaluator::backtrace_info ( ) const

Definition at line 2640 of file pt-eval.cc.

References call_stack::backtrace_info().

Referenced by backtrace_message().

◆ backtrace_info() [2/2]

std::list< frame_info > tree_evaluator::backtrace_info ( octave_idx_type curr_user_frame,
bool  print_subfn = true 
) const

Definition at line 2633 of file pt-eval.cc.

References call_stack::backtrace_info().

Referenced by error_system::throw_error().

◆ backtrace_message()

std::string tree_evaluator::backtrace_message ( ) const

Definition at line 2665 of file pt-eval.cc.

References line::line(), and backtrace_info().

◆ bind_ans()

◆ break_on_next_statement() [1/2]

bool tree_evaluator::break_on_next_statement ( ) const
inline

Definition at line 804 of file pt-eval.h.

Referenced by interpreter::pause().

◆ break_on_next_statement() [2/2]

bool tree_evaluator::break_on_next_statement ( bool  val)
inline

Definition at line 809 of file pt-eval.h.

◆ breaking() [1/2]

int tree_evaluator::breaking ( ) const
inline

Definition at line 766 of file pt-eval.h.

Referenced by eval_string().

◆ breaking() [2/2]

int tree_evaluator::breaking ( int  n)
inline

Definition at line 768 of file pt-eval.h.

References n.

◆ caller_function()

octave_function * tree_evaluator::caller_function ( ) const

Definition at line 2567 of file pt-eval.cc.

References call_stack::current_function().

Referenced by Fclass(), Finferiorto(), and Fsuperiorto().

◆ clear_all()

void tree_evaluator::clear_all ( bool  force = false)

◆ clear_debug_watch_expressions()

void tree_evaluator::clear_debug_watch_expressions ( )
inline

Definition at line 686 of file pt-eval.h.

Referenced by interpreter::clear_debug_watch_expressions().

◆ clear_global_variable()

void tree_evaluator::clear_global_variable ( const std::string &  name)

Definition at line 2847 of file pt-eval.cc.

References call_stack::clear_global_variable().

Referenced by interpreter::clear_global_variable().

◆ clear_global_variable_pattern()

void tree_evaluator::clear_global_variable_pattern ( const std::string &  pattern)

◆ clear_global_variable_regexp()

void tree_evaluator::clear_global_variable_regexp ( const std::string &  pattern)

◆ clear_global_variables()

void tree_evaluator::clear_global_variables ( )

Definition at line 2865 of file pt-eval.cc.

References call_stack::clear_global_variables().

Referenced by clear_all(), and interpreter::clear_global_variables().

◆ clear_index_list()

void tree_evaluator::clear_index_list ( )
inline

Definition at line 733 of file pt-eval.h.

Referenced by tree_index_expression::evaluate_n(), and tree_index_expression::lvalue().

◆ clear_objects()

void tree_evaluator::clear_objects ( )

Definition at line 2802 of file pt-eval.cc.

References call_stack::get_current_stack_frame().

Referenced by interpreter::clear_objects().

◆ clear_symbol()

void tree_evaluator::clear_symbol ( const std::string &  name)

◆ clear_symbol_pattern()

void tree_evaluator::clear_symbol_pattern ( const std::string &  pattern)

◆ clear_symbol_regexp()

void tree_evaluator::clear_symbol_regexp ( const std::string &  pattern)

◆ clear_variable()

void tree_evaluator::clear_variable ( const std::string &  name)

Definition at line 2811 of file pt-eval.cc.

References call_stack::get_current_stack_frame().

Referenced by clear_symbol(), and interpreter::clear_variable().

◆ clear_variable_pattern()

void tree_evaluator::clear_variable_pattern ( const std::string &  pattern)

◆ clear_variable_regexp()

void tree_evaluator::clear_variable_regexp ( const std::string &  pattern)

◆ clear_variables()

void tree_evaluator::clear_variables ( )

Definition at line 2838 of file pt-eval.cc.

References call_stack::get_current_stack_frame().

Referenced by clear_all(), and interpreter::clear_variables().

◆ continuing() [1/2]

int tree_evaluator::continuing ( ) const
inline

Definition at line 775 of file pt-eval.h.

Referenced by eval_string().

◆ continuing() [2/2]

int tree_evaluator::continuing ( int  n)
inline

Definition at line 777 of file pt-eval.h.

References n.

◆ convert_return_list_to_const_vector()

octave_value_list tree_evaluator::convert_return_list_to_const_vector ( tree_parameter_list ret_list,
int  nargout,
const Cell varargout 
)

◆ convert_to_const_vector()

◆ curr_fcn_unwind_protect_frame()

unwind_protect * tree_evaluator::curr_fcn_unwind_protect_frame ( )

Definition at line 2549 of file pt-eval.cc.

References call_stack::curr_fcn_unwind_protect_frame().

◆ current_call_stack_frame_number()

std::size_t tree_evaluator::current_call_stack_frame_number ( ) const
inline

Definition at line 634 of file pt-eval.h.

◆ current_column()

int tree_evaluator::current_column ( ) const

Definition at line 2517 of file pt-eval.cc.

References call_stack::current_column().

◆ current_function()

octave_function * tree_evaluator::current_function ( bool  skip_first = false) const

Definition at line 2561 of file pt-eval.cc.

References call_stack::current_function().

Referenced by get_class_context(), get_current_shlib(), and print_usage().

◆ current_function_name()

std::string tree_evaluator::current_function_name ( bool  skip_first = false) const

Definition at line 3031 of file pt-eval.cc.

References call_stack::current_function(), and octave_function::name().

◆ current_line()

int tree_evaluator::current_line ( ) const

Definition at line 2511 of file pt-eval.cc.

References call_stack::current_line().

◆ current_user_code()

octave_user_code * tree_evaluator::current_user_code ( ) const

Definition at line 2543 of file pt-eval.cc.

References call_stack::current_user_code().

◆ current_user_frame()

std::shared_ptr<stack_frame> tree_evaluator::current_user_frame ( ) const
inline

Definition at line 448 of file pt-eval.h.

◆ dbcont()

void tree_evaluator::dbcont ( )

Definition at line 5065 of file pt-eval.cc.

Referenced by interpreter::resume(), and visit_return_command().

◆ dbquit()

void tree_evaluator::dbquit ( bool  all = false)

Definition at line 5072 of file pt-eval.cc.

Referenced by interpreter::stop().

◆ dbstep_flag() [1/2]

int tree_evaluator::dbstep_flag ( ) const
inline

Definition at line 793 of file pt-eval.h.

Referenced by repl().

◆ dbstep_flag() [2/2]

int tree_evaluator::dbstep_flag ( int  val)
inline

Definition at line 795 of file pt-eval.h.

◆ dbupdown()

void tree_evaluator::dbupdown ( int  n,
bool  verbose = false 
)

Definition at line 1449 of file pt-eval.cc.

References call_stack::dbupdown(), and n.

◆ debug_frame() [1/2]

std::size_t tree_evaluator::debug_frame ( ) const
inline

Definition at line 625 of file pt-eval.h.

◆ debug_frame() [2/2]

std::size_t tree_evaluator::debug_frame ( std::size_t  n)
inline

Definition at line 627 of file pt-eval.h.

References n.

◆ debug_mode()

bool tree_evaluator::debug_mode ( ) const
inline

Definition at line 848 of file pt-eval.h.

◆ debug_user_code()

octave_user_code * tree_evaluator::debug_user_code ( ) const

Definition at line 2555 of file pt-eval.cc.

References call_stack::debug_user_code().

◆ debug_user_code_column()

int tree_evaluator::debug_user_code_column ( ) const

Definition at line 2529 of file pt-eval.cc.

References call_stack::debug_user_code_column().

◆ debug_user_code_line()

int tree_evaluator::debug_user_code_line ( ) const

Definition at line 2523 of file pt-eval.cc.

References call_stack::debug_user_code_line().

◆ debug_watch_expressions()

std::set<std::string> tree_evaluator::debug_watch_expressions ( ) const
inline

Definition at line 693 of file pt-eval.h.

Referenced by interpreter::debug_watch_expressions().

◆ debug_where()

void tree_evaluator::debug_where ( std::ostream &  os) const

Definition at line 2535 of file pt-eval.cc.

References call_stack::current_user_frame().

◆ define_parameter_list_from_arg_vector()

void tree_evaluator::define_parameter_list_from_arg_vector ( tree_parameter_list param_list,
const octave_value_list args 
)

◆ display_call_stack()

void tree_evaluator::display_call_stack ( ) const

Definition at line 2771 of file pt-eval.cc.

References call_stack::display().

◆ do_unwind_protect_cleanup_code()

◆ do_who()

octave_value tree_evaluator::do_who ( int  argc,
const string_vector argv,
bool  return_list,
bool  verbose = false 
)

Definition at line 4770 of file pt-eval.cc.

References call_stack::do_who().

Referenced by Fwho(), and Fwhos().

◆ echo() [1/3]

int tree_evaluator::echo ( ) const
inline

Definition at line 823 of file pt-eval.h.

Referenced by execute_user_script().

◆ echo() [2/3]

octave_value tree_evaluator::echo ( const octave_value_list args,
int  nargout 
)

◆ echo() [3/3]

int tree_evaluator::echo ( int  val)
inline

Definition at line 825 of file pt-eval.h.

◆ echo_state()

Definition at line 850 of file pt-eval.h.

◆ empty_backtrace()

octave_map tree_evaluator::empty_backtrace ( ) const

Definition at line 2659 of file pt-eval.cc.

References call_stack::empty_backtrace().

◆ enter_debugger()

◆ eval() [1/3]

octave_value_list tree_evaluator::eval ( const std::string &  try_code,
const std::string &  catch_code,
int  nargout 
)

◆ eval() [2/3]

octave_value_list tree_evaluator::eval ( const std::string &  try_code,
int  nargout 
)

Definition at line 1119 of file pt-eval.cc.

References eval_string().

◆ eval() [3/3]

void tree_evaluator::eval ( std::shared_ptr< tree_statement_list > &  stmt_list,
bool  interactive 
)

Definition at line 989 of file pt-eval.cc.

References octave_completion_matches_called, and interpreter::recover_from_exception().

Referenced by interpreter::eval(), and repl().

◆ eval_decl_elt()

◆ eval_string() [1/3]

octave_value_list tree_evaluator::eval_string ( const octave_value arg,
bool  silent,
int &  parse_status,
int  nargout 
)

Definition at line 1109 of file pt-eval.cc.

References eval_string(), and octave_value::xstring_value().

◆ eval_string() [2/3]

octave_value tree_evaluator::eval_string ( const std::string &  eval_str,
bool  silent,
int &  parse_status 
)

Definition at line 1095 of file pt-eval.cc.

References octave_value_list::empty(), and eval_string().

◆ eval_string() [3/3]

◆ evalin() [1/2]

octave_value_list tree_evaluator::evalin ( const std::string &  context,
const std::string &  try_code,
const std::string &  catch_code,
int  nargout 
)

◆ evalin() [2/2]

octave_value_list tree_evaluator::evalin ( const std::string &  context,
const std::string &  try_code,
int  nargout 
)

◆ evaluate()

◆ evaluate_anon_fcn_handle()

◆ evaluate_end_expression()

◆ execute_builtin_function()

◆ execute_mex_function()

octave_value_list tree_evaluator::execute_mex_function ( octave_mex_function mex_function,
int  nargout,
const octave_value_list args 
)

Definition at line 3495 of file pt-eval.cc.

References call_mex(), error(), and octave_value_list::has_magic_colon().

◆ execute_user_function()

octave_value_list tree_evaluator::execute_user_function ( octave_user_function user_function,
int  nargout,
const octave_value_list args 
)

Definition at line 3567 of file pt-eval.cc.

◆ execute_user_script()

◆ final_index_error()

◆ find()

octave_value tree_evaluator::find ( const std::string &  name)

◆ get_auto_fcn_var()

octave_value tree_evaluator::get_auto_fcn_var ( stack_frame::auto_var_type  avt) const

Definition at line 2213 of file pt-eval.cc.

References call_stack::get_auto_fcn_var().

Referenced by octave::F__varval__(), Fisargout(), Fnargin(), and Fnargout().

◆ get_autoload_map()

octave_map tree_evaluator::get_autoload_map ( ) const

Definition at line 4630 of file pt-eval.cc.

References m.

Referenced by octave::Fautoload().

◆ get_bp_table()

bp_table& tree_evaluator::get_bp_table ( )
inline

Definition at line 422 of file pt-eval.h.

Referenced by __get_bp_table__().

◆ get_current_scope()

symbol_scope tree_evaluator::get_current_scope ( ) const

◆ get_current_stack_frame()

std::shared_ptr<stack_frame> tree_evaluator::get_current_stack_frame ( ) const
inline

Definition at line 443 of file pt-eval.h.

Referenced by tree_identifier::lvalue(), and tree_black_hole::lvalue().

◆ get_dispatch_class()

std::string tree_evaluator::get_dispatch_class ( ) const

Definition at line 2597 of file pt-eval.cc.

References call_stack::get_dispatch_class().

Referenced by get_class_context().

◆ get_interpreter()

◆ get_line_and_eval()

void tree_evaluator::get_line_and_eval ( )

◆ get_parser()

std::shared_ptr<push_parser> tree_evaluator::get_parser ( )
inline

Definition at line 150 of file pt-eval.h.

◆ get_profiler()

◆ get_symbol_info()

symbol_info_list tree_evaluator::get_symbol_info ( )

Definition at line 4618 of file pt-eval.cc.

References call_stack::get_symbol_info().

Referenced by event_manager::set_workspace().

◆ get_top_scope()

symbol_scope tree_evaluator::get_top_scope ( ) const

Definition at line 2708 of file pt-eval.cc.

References call_stack::top_scope().

Referenced by interpreter::get_top_scope().

◆ get_user_code()

◆ glob_symbol_info()

symbol_info_list tree_evaluator::glob_symbol_info ( const std::string &  pattern) const

Definition at line 4606 of file pt-eval.cc.

References call_stack::glob_symbol_info().

◆ global_assign()

void tree_evaluator::global_assign ( const std::string &  name,
const octave_value val = octave_value () 
)

Definition at line 1977 of file pt-eval.cc.

References call_stack::global_varref().

Referenced by interpreter::global_assign().

◆ global_variable_names()

std::list< std::string > tree_evaluator::global_variable_names ( ) const

Definition at line 2920 of file pt-eval.cc.

References call_stack::global_variable_names().

Referenced by interpreter::global_variable_names().

◆ global_varref()

octave_value & tree_evaluator::global_varref ( const std::string &  name)

Definition at line 1971 of file pt-eval.cc.

References call_stack::global_varref().

Referenced by stack_frame::install_variable().

◆ global_varval()

octave_value tree_evaluator::global_varval ( const std::string &  name) const

◆ goto_base_frame()

void tree_evaluator::goto_base_frame ( )

Definition at line 2585 of file pt-eval.cc.

References call_stack::goto_base_frame().

◆ goto_caller_frame()

void tree_evaluator::goto_caller_frame ( )

Definition at line 2579 of file pt-eval.cc.

References call_stack::goto_caller_frame().

◆ goto_frame()

bool tree_evaluator::goto_frame ( std::size_t  n = 0,
bool  verbose = false 
)

Definition at line 2573 of file pt-eval.cc.

References call_stack::goto_frame(), and n.

◆ ignored_fcn_outputs()

Matrix tree_evaluator::ignored_fcn_outputs ( ) const

Definition at line 1455 of file pt-eval.cc.

References Matrix::resize().

◆ in_debug_repl()

◆ in_top_level_repl()

bool tree_evaluator::in_top_level_repl ( ) const
inline

Definition at line 174 of file pt-eval.h.

◆ in_user_code()

bool tree_evaluator::in_user_code ( ) const

Definition at line 3042 of file pt-eval.cc.

References call_stack::current_user_code().

Referenced by visit_statement().

◆ index_list()

const std::list<octave_value_list>& tree_evaluator::index_list ( ) const
inline

Definition at line 721 of file pt-eval.h.

Referenced by tree_index_expression::evaluate_n(), and tree_index_expression::lvalue().

◆ index_position()

int tree_evaluator::index_position ( ) const
inline

Definition at line 750 of file pt-eval.h.

Referenced by evaluate_end_expression().

◆ index_type()

const std::string& tree_evaluator::index_type ( ) const
inline

Definition at line 745 of file pt-eval.h.

Referenced by tree_index_expression::evaluate_n(), and tree_index_expression::lvalue().

◆ indexed_object()

octave_value tree_evaluator::indexed_object ( ) const
inline

Definition at line 711 of file pt-eval.h.

Referenced by tree_index_expression::evaluate_n(), and tree_index_expression::lvalue().

◆ install_variable()

void tree_evaluator::install_variable ( const std::string &  name,
const octave_value value,
bool  global 
)

Definition at line 1954 of file pt-eval.cc.

References call_stack::get_current_stack_frame().

Referenced by interpreter::install_variable().

◆ is_class_constructor_executing()

bool tree_evaluator::is_class_constructor_executing ( std::string &  dispatch_class) const

Definition at line 2615 of file pt-eval.cc.

References call_stack::is_class_constructor_executing().

◆ is_class_method_executing()

bool tree_evaluator::is_class_method_executing ( std::string &  dispatch_class) const

Definition at line 2609 of file pt-eval.cc.

References call_stack::is_class_method_executing().

◆ is_defined() [1/2]

bool tree_evaluator::is_defined ( const symbol_record sym) const

Definition at line 1918 of file pt-eval.cc.

References call_stack::get_current_stack_frame().

◆ is_defined() [2/2]

bool tree_evaluator::is_defined ( const tree_expression expr) const

◆ is_global()

bool tree_evaluator::is_global ( const std::string &  name) const

Definition at line 1927 of file pt-eval.cc.

References call_stack::get_current_stack_frame().

Referenced by interpreter::isglobal().

◆ is_local_variable()

bool tree_evaluator::is_local_variable ( const std::string &  name) const

Definition at line 1869 of file pt-eval.cc.

References call_stack::get_current_stack_frame().

Referenced by interpreter::is_local_variable().

◆ is_variable() [1/3]

bool tree_evaluator::is_variable ( const std::string &  name) const

◆ is_variable() [2/3]

bool tree_evaluator::is_variable ( const symbol_record sym) const

Definition at line 1909 of file pt-eval.cc.

References call_stack::get_current_stack_frame().

◆ is_variable() [3/3]

bool tree_evaluator::is_variable ( const tree_expression expr) const

◆ keyboard()

void tree_evaluator::keyboard ( const std::string &  prompt = "keyboard> ")

Definition at line 1443 of file pt-eval.cc.

References enter_debugger().

◆ lookup_autoload()

std::string tree_evaluator::lookup_autoload ( const std::string &  nm) const

Definition at line 4653 of file pt-eval.cc.

References load_path::find_file(), and interpreter::get_load_path().

◆ lvalue_list()

const std::list<octave_lvalue>* tree_evaluator::lvalue_list ( ) const
inline

◆ make_fcn_handle()

octave_value tree_evaluator::make_fcn_handle ( const std::string &  nm)

◆ make_lvalue_list()

std::list< octave_lvalue > tree_evaluator::make_lvalue_list ( tree_argument_list lhs)

Definition at line 4832 of file pt-eval.cc.

Referenced by tree_multi_assignment::evaluate_n().

◆ make_value_list()

◆ max_recursion_depth() [1/3]

int tree_evaluator::max_recursion_depth ( ) const
inline

Definition at line 590 of file pt-eval.h.

Referenced by octave::Fmax_recursion_depth().

◆ max_recursion_depth() [2/3]

octave_value tree_evaluator::max_recursion_depth ( const octave_value_list args,
int  nargout 
)

Definition at line 4598 of file pt-eval.cc.

References octave::set_internal_variable().

◆ max_recursion_depth() [3/3]

int tree_evaluator::max_recursion_depth ( int  n)
inline

Definition at line 592 of file pt-eval.h.

References n.

◆ max_stack_depth()

octave_value tree_evaluator::max_stack_depth ( const octave_value_list args,
int  nargout 
)

Definition at line 2765 of file pt-eval.cc.

References call_stack::max_stack_depth().

Referenced by Fmax_stack_depth().

◆ mfilename()

std::string tree_evaluator::mfilename ( const std::string &  opt = "") const

◆ mislocked()

bool tree_evaluator::mislocked ( bool  skip_first = false) const

Definition at line 2754 of file pt-eval.cc.

References call_stack::current_function(), error(), and octave_function::islocked().

Referenced by interpreter::mislocked().

◆ mlock()

void tree_evaluator::mlock ( bool  skip_first = false) const

◆ munlock()

void tree_evaluator::munlock ( bool  skip_first = false) const

◆ num_indices()

int tree_evaluator::num_indices ( ) const
inline

Definition at line 752 of file pt-eval.h.

Referenced by evaluate_end_expression().

◆ parse_and_execute()

void tree_evaluator::parse_and_execute ( const std::string &  input,
bool &  incomplete_parse 
)

Definition at line 580 of file pt-eval.cc.

◆ pop_return_stack_frame()

std::shared_ptr< stack_frame > tree_evaluator::pop_return_stack_frame ( )

Definition at line 2505 of file pt-eval.cc.

References call_stack::pop_return().

◆ pop_scope()

void tree_evaluator::pop_scope ( )

Definition at line 2702 of file pt-eval.cc.

References call_stack::pop().

Referenced by cdef_class::make_meta_class().

◆ pop_stack_frame()

void tree_evaluator::pop_stack_frame ( )

Definition at line 2499 of file pt-eval.cc.

References call_stack::pop().

◆ PS4() [1/3]

std::string tree_evaluator::PS4 ( ) const
inline

Definition at line 700 of file pt-eval.h.

◆ PS4() [2/3]

octave_value tree_evaluator::PS4 ( const octave_value_list args,
int  nargout 
)

Definition at line 5176 of file pt-eval.cc.

References octave::set_internal_variable().

Referenced by interpreter::PS4().

◆ PS4() [3/3]

std::string tree_evaluator::PS4 ( const std::string &  s)
inline

Definition at line 702 of file pt-eval.h.

◆ push_dummy_scope()

void tree_evaluator::push_dummy_scope ( const std::string &  name)

Definition at line 2694 of file pt-eval.cc.

References call_stack::push().

Referenced by cdef_class::make_meta_class().

◆ push_echo_state()

void tree_evaluator::push_echo_state ( int  type,
const std::string &  file_name,
int  pos = 1 
)

Definition at line 4843 of file pt-eval.cc.

References call_stack::curr_fcn_unwind_protect_frame().

Referenced by execute_user_script().

◆ push_stack_frame() [1/5]

void tree_evaluator::push_stack_frame ( const symbol_scope scope)

Definition at line 2466 of file pt-eval.cc.

References call_stack::push().

◆ push_stack_frame() [2/5]

void tree_evaluator::push_stack_frame ( octave_function fcn)

Definition at line 2493 of file pt-eval.cc.

References call_stack::push().

◆ push_stack_frame() [3/5]

void tree_evaluator::push_stack_frame ( octave_user_function fcn,
const stack_frame::local_vars_map local_vars,
const std::shared_ptr< stack_frame > &  closure_frames = std::shared_ptr<stack_frame> () 
)

Definition at line 2479 of file pt-eval.cc.

References call_stack::push().

◆ push_stack_frame() [4/5]

void tree_evaluator::push_stack_frame ( octave_user_function fcn,
const std::shared_ptr< stack_frame > &  closure_frames = std::shared_ptr<stack_frame> () 
)

Definition at line 2472 of file pt-eval.cc.

References call_stack::push().

◆ push_stack_frame() [5/5]

void tree_evaluator::push_stack_frame ( octave_user_script script)

Definition at line 2487 of file pt-eval.cc.

References call_stack::push().

◆ quiet_breakpoint_flag() [1/2]

bool tree_evaluator::quiet_breakpoint_flag ( ) const
inline

Definition at line 639 of file pt-eval.h.

◆ quiet_breakpoint_flag() [2/2]

bool tree_evaluator::quiet_breakpoint_flag ( bool  flag)
inline

Definition at line 641 of file pt-eval.h.

◆ regexp_symbol_info()

symbol_info_list tree_evaluator::regexp_symbol_info ( const std::string &  pattern) const

Definition at line 4612 of file pt-eval.cc.

References call_stack::regexp_symbol_info().

◆ remove_autoload()

void tree_evaluator::remove_autoload ( const std::string &  fcn,
const std::string &  nm 
)

Definition at line 4700 of file pt-eval.cc.

References symbol_table::clear_dld_function(), and interpreter::get_symbol_table().

Referenced by octave::Fautoload().

◆ remove_debug_watch_expression()

void tree_evaluator::remove_debug_watch_expression ( const std::string &  expr)
inline

Definition at line 679 of file pt-eval.h.

Referenced by interpreter::remove_debug_watch_expression().

◆ repl()

◆ reset_debug_state() [1/2]

◆ reset_debug_state() [2/2]

void tree_evaluator::reset_debug_state ( bool  mode)

Definition at line 1387 of file pt-eval.cc.

◆ restore_frame()

void tree_evaluator::restore_frame ( std::size_t  n)

Definition at line 2591 of file pt-eval.cc.

References n, and call_stack::restore_frame().

◆ returning() [1/2]

int tree_evaluator::returning ( ) const
inline

Definition at line 784 of file pt-eval.h.

Referenced by eval_string().

◆ returning() [2/2]

int tree_evaluator::returning ( int  n)
inline

Definition at line 786 of file pt-eval.h.

References n.

◆ reverse_lookup_autoload()

std::list< std::string > tree_evaluator::reverse_lookup_autoload ( const std::string &  nm) const

Definition at line 4681 of file pt-eval.cc.

◆ server_loop()

◆ server_mode() [1/2]

bool tree_evaluator::server_mode ( ) const
inline

Definition at line 178 of file pt-eval.h.

◆ server_mode() [2/2]

void tree_evaluator::server_mode ( bool  arg)
inline

Definition at line 180 of file pt-eval.h.

◆ set_auto_fcn_var()

void tree_evaluator::set_auto_fcn_var ( stack_frame::auto_var_type  avt,
const octave_value val = octave_value () 
)

Definition at line 2194 of file pt-eval.cc.

References call_stack::set_auto_fcn_var().

Referenced by interpreter::intern_nargin().

◆ set_break_on_next_statement()

void tree_evaluator::set_break_on_next_statement ( bool  val)
inline

Definition at line 816 of file pt-eval.h.

◆ set_dbstep_flag()

void tree_evaluator::set_dbstep_flag ( int  step)
inline

Definition at line 802 of file pt-eval.h.

◆ set_dispatch_class()

void tree_evaluator::set_dispatch_class ( const std::string &  class_name)

Definition at line 2603 of file pt-eval.cc.

References call_stack::set_dispatch_class().

◆ set_echo_file_pos()

void tree_evaluator::set_echo_file_pos ( int  pos)
inline

Definition at line 852 of file pt-eval.h.

◆ set_index_list()

void tree_evaluator::set_index_list ( const std::string &  index_type,
const std::list< octave_value_list > &  index_list 
)
inline

Definition at line 726 of file pt-eval.h.

Referenced by tree_index_expression::evaluate_n(), and tree_index_expression::lvalue().

◆ set_indexed_object()

void tree_evaluator::set_indexed_object ( const octave_value obj = octave_value ())
inline

Definition at line 716 of file pt-eval.h.

Referenced by tree_index_expression::evaluate_n(), and tree_index_expression::lvalue().

◆ set_lvalue_list()

void tree_evaluator::set_lvalue_list ( const std::list< octave_lvalue > *  lst)
inline

◆ set_nargin()

void tree_evaluator::set_nargin ( int  nargin)

Definition at line 2201 of file pt-eval.cc.

References call_stack::set_nargin().

◆ set_nargout()

void tree_evaluator::set_nargout ( int  nargout)

Definition at line 2207 of file pt-eval.cc.

References call_stack::set_nargout().

◆ set_parser()

void tree_evaluator::set_parser ( const std::shared_ptr< push_parser > &  parser)
inline

Definition at line 155 of file pt-eval.h.

◆ set_PS4()

void tree_evaluator::set_PS4 ( const std::string &  s)
inline

Definition at line 709 of file pt-eval.h.

Referenced by interpreter::set_PS4().

◆ silent_functions() [1/3]

bool tree_evaluator::silent_functions ( ) const
inline

Definition at line 602 of file pt-eval.h.

Referenced by octave::Fsilent_functions().

◆ silent_functions() [2/3]

bool tree_evaluator::silent_functions ( bool  b)
inline

Definition at line 604 of file pt-eval.h.

◆ silent_functions() [3/3]

octave_value tree_evaluator::silent_functions ( const octave_value_list args,
int  nargout 
)

Definition at line 4721 of file pt-eval.cc.

References octave::set_internal_variable().

◆ source_file()

void tree_evaluator::source_file ( const std::string &  file_name,
const std::string &  context = "",
bool  verbose = false,
bool  require_file = true 
)

Definition at line 2042 of file pt-eval.cc.

References dir_sep_str(), and octave::sys::file_ops::tilde_expand().

Referenced by interpreter::source_file().

◆ statement_printing_enabled()

bool tree_evaluator::statement_printing_enabled ( )

◆ string_fill_char() [1/3]

char tree_evaluator::string_fill_char ( ) const
inline

Definition at line 648 of file pt-eval.h.

Referenced by tree_matrix::evaluate(), and octave::Fstring_fill_char().

◆ string_fill_char() [2/3]

char tree_evaluator::string_fill_char ( char  c)
inline

Definition at line 650 of file pt-eval.h.

◆ string_fill_char() [3/3]

octave_value tree_evaluator::string_fill_char ( const octave_value_list args,
int  nargout 
)

Definition at line 4728 of file pt-eval.cc.

References octave::set_internal_variable().

◆ switch_case_label_matches()

◆ top_level_assign()

void tree_evaluator::top_level_assign ( const std::string &  name,
const octave_value val = octave_value () 
)

Definition at line 1990 of file pt-eval.cc.

References call_stack::set_top_level_value().

Referenced by interpreter::top_level_assign().

◆ top_level_variable_names()

std::list< std::string > tree_evaluator::top_level_variable_names ( ) const

◆ top_level_varval()

octave_value tree_evaluator::top_level_varval ( const std::string &  name) const

Definition at line 1984 of file pt-eval.cc.

References call_stack::get_top_level_value().

Referenced by interpreter::top_level_varval().

◆ top_scope_symbol_info()

symbol_info_list tree_evaluator::top_scope_symbol_info ( ) const

Definition at line 4624 of file pt-eval.cc.

References call_stack::top_scope_symbol_info().

◆ undefine_parameter_list()

void tree_evaluator::undefine_parameter_list ( tree_parameter_list param_list)

Definition at line 2249 of file pt-eval.cc.

References octave_lvalue::assign(), and octave_value::op_asn_eq.

◆ variable_names()

std::list< std::string > tree_evaluator::variable_names ( ) const

Definition at line 2932 of file pt-eval.cc.

References call_stack::variable_names().

Referenced by interpreter::variable_names().

◆ varval() [1/2]

octave_value tree_evaluator::varval ( const std::string &  name) const

Definition at line 1945 of file pt-eval.cc.

References call_stack::get_current_stack_frame().

◆ varval() [2/2]

octave_value tree_evaluator::varval ( const symbol_record sym) const

◆ visit_anon_fcn_handle()

void tree_evaluator::visit_anon_fcn_handle ( tree_anon_fcn_handle )
virtual

Reimplemented from tree_walker.

Definition at line 1259 of file pt-eval.cc.

References panic_impossible.

◆ visit_arg_size_spec()

void tree_evaluator::visit_arg_size_spec ( tree_arg_size_spec )
virtual

Reimplemented from tree_walker.

Definition at line 1295 of file pt-eval.cc.

References panic_impossible.

◆ visit_arg_validation()

void tree_evaluator::visit_arg_validation ( tree_arg_validation )
virtual

Reimplemented from tree_walker.

Definition at line 1289 of file pt-eval.cc.

References panic_impossible.

◆ visit_arg_validation_fcns()

void tree_evaluator::visit_arg_validation_fcns ( tree_arg_validation_fcns )
virtual

Reimplemented from tree_walker.

Definition at line 1301 of file pt-eval.cc.

References panic_impossible.

◆ visit_args_block_attribute_list()

void tree_evaluator::visit_args_block_attribute_list ( tree_args_block_attribute_list )
virtual

Reimplemented from tree_walker.

Definition at line 1277 of file pt-eval.cc.

References panic_impossible.

◆ visit_args_block_validation_list()

void tree_evaluator::visit_args_block_validation_list ( tree_args_block_validation_list )
virtual

Reimplemented from tree_walker.

Definition at line 1283 of file pt-eval.cc.

References panic_impossible.

◆ visit_argument_list()

void tree_evaluator::visit_argument_list ( tree_argument_list )
virtual

Reimplemented from tree_walker.

Definition at line 1265 of file pt-eval.cc.

References panic_impossible.

◆ visit_arguments_block()

void tree_evaluator::visit_arguments_block ( tree_arguments_block )
virtual

Reimplemented from tree_walker.

Definition at line 1271 of file pt-eval.cc.

References warning().

◆ visit_binary_expression()

void tree_evaluator::visit_binary_expression ( tree_binary_expression )
virtual

Reimplemented from tree_walker.

Definition at line 1307 of file pt-eval.cc.

References panic_impossible.

◆ visit_boolean_expression()

void tree_evaluator::visit_boolean_expression ( tree_boolean_expression )
virtual

Reimplemented from tree_walker.

Definition at line 1313 of file pt-eval.cc.

References panic_impossible.

◆ visit_break_command()

void tree_evaluator::visit_break_command ( tree_break_command cmd)
virtual

Reimplemented from tree_walker.

Definition at line 1325 of file pt-eval.cc.

References error(), tree::is_active_breakpoint(), and tree::line().

◆ visit_cell()

void tree_evaluator::visit_cell ( tree_cell )
virtual

Reimplemented from tree_walker.

Definition at line 3855 of file pt-eval.cc.

References panic_impossible.

◆ visit_colon_expression()

void tree_evaluator::visit_colon_expression ( tree_colon_expression )
virtual

Reimplemented from tree_walker.

Definition at line 1346 of file pt-eval.cc.

References panic_impossible.

◆ visit_complex_for_command()

◆ visit_compound_binary_expression()

void tree_evaluator::visit_compound_binary_expression ( tree_compound_binary_expression )
virtual

Reimplemented from tree_walker.

Definition at line 1319 of file pt-eval.cc.

References panic_impossible.

◆ visit_constant()

void tree_evaluator::visit_constant ( tree_constant )
virtual

Reimplemented from tree_walker.

Definition at line 3883 of file pt-eval.cc.

References panic_impossible.

◆ visit_continue_command()

void tree_evaluator::visit_continue_command ( tree_continue_command cmd)
virtual

Reimplemented from tree_walker.

Definition at line 1352 of file pt-eval.cc.

References tree::is_active_breakpoint(), and tree::line().

◆ visit_decl_command()

void tree_evaluator::visit_decl_command ( tree_decl_command cmd)
virtual

◆ visit_decl_elt()

◆ visit_do_until_command()

void tree_evaluator::visit_do_until_command ( tree_do_until_command cmd)
virtual

◆ visit_fcn_handle()

void tree_evaluator::visit_fcn_handle ( tree_fcn_handle )
virtual

Reimplemented from tree_walker.

Definition at line 3889 of file pt-eval.cc.

References panic_impossible.

◆ visit_function_def()

void tree_evaluator::visit_function_def ( tree_function_def cmd)
virtual

◆ visit_identifier()

void tree_evaluator::visit_identifier ( tree_identifier )
virtual

Reimplemented from tree_walker.

Definition at line 3784 of file pt-eval.cc.

References panic_impossible.

◆ visit_if_clause()

void tree_evaluator::visit_if_clause ( tree_if_clause )
virtual

Reimplemented from tree_walker.

Definition at line 3790 of file pt-eval.cc.

References panic_impossible.

◆ visit_if_command()

void tree_evaluator::visit_if_command ( tree_if_command cmd)
virtual

Reimplemented from tree_walker.

Definition at line 3796 of file pt-eval.cc.

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

◆ visit_if_command_list()

void tree_evaluator::visit_if_command_list ( tree_if_command_list lst)
virtual

◆ visit_index_expression()

void tree_evaluator::visit_index_expression ( tree_index_expression )
virtual

Reimplemented from tree_walker.

Definition at line 3843 of file pt-eval.cc.

References panic_impossible.

◆ visit_matrix()

void tree_evaluator::visit_matrix ( tree_matrix )
virtual

Reimplemented from tree_walker.

Definition at line 3849 of file pt-eval.cc.

References panic_impossible.

◆ visit_metaclass_query()

void tree_evaluator::visit_metaclass_query ( tree_metaclass_query )
virtual

Reimplemented from tree_walker.

Definition at line 4458 of file pt-eval.cc.

References panic_impossible.

◆ visit_multi_assignment()

void tree_evaluator::visit_multi_assignment ( tree_multi_assignment )
virtual

Reimplemented from tree_walker.

Definition at line 3861 of file pt-eval.cc.

References panic_impossible.

◆ visit_no_op_command()

void tree_evaluator::visit_no_op_command ( tree_no_op_command cmd)
virtual

◆ visit_octave_user_function()

void tree_evaluator::visit_octave_user_function ( octave_user_function )
virtual

Reimplemented from tree_walker.

Definition at line 3743 of file pt-eval.cc.

References panic_impossible.

◆ visit_octave_user_function_header()

void tree_evaluator::visit_octave_user_function_header ( octave_user_function )

Definition at line 3750 of file pt-eval.cc.

References panic_impossible.

◆ visit_octave_user_function_trailer()

void tree_evaluator::visit_octave_user_function_trailer ( octave_user_function )

Definition at line 3756 of file pt-eval.cc.

References panic_impossible.

◆ visit_octave_user_script()

void tree_evaluator::visit_octave_user_script ( octave_user_script )
virtual

Reimplemented from tree_walker.

Definition at line 3560 of file pt-eval.cc.

References panic_impossible.

◆ visit_parameter_list()

void tree_evaluator::visit_parameter_list ( tree_parameter_list )
virtual

Reimplemented from tree_walker.

Definition at line 3895 of file pt-eval.cc.

References panic_impossible.

◆ visit_postfix_expression()

void tree_evaluator::visit_postfix_expression ( tree_postfix_expression )
virtual

Reimplemented from tree_walker.

Definition at line 3901 of file pt-eval.cc.

References panic_impossible.

◆ visit_prefix_expression()

void tree_evaluator::visit_prefix_expression ( tree_prefix_expression )
virtual

Reimplemented from tree_walker.

Definition at line 3907 of file pt-eval.cc.

References panic_impossible.

◆ visit_return_command()

void tree_evaluator::visit_return_command ( tree_return_command cmd)
virtual

◆ visit_simple_assignment()

void tree_evaluator::visit_simple_assignment ( tree_simple_assignment )
virtual

Reimplemented from tree_walker.

Definition at line 3938 of file pt-eval.cc.

References panic_impossible.

◆ visit_simple_for_command()

◆ visit_spmd_command()

void tree_evaluator::visit_spmd_command ( tree_spmd_command cmd)
virtual

Reimplemented from tree_walker.

Definition at line 3340 of file pt-eval.cc.

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

◆ visit_statement()

◆ visit_statement_list()

void tree_evaluator::visit_statement_list ( tree_statement_list lst)
virtual

◆ visit_superclass_ref()

void tree_evaluator::visit_superclass_ref ( tree_superclass_ref )
virtual

Reimplemented from tree_walker.

Definition at line 4452 of file pt-eval.cc.

References panic_impossible.

◆ visit_switch_case()

void tree_evaluator::visit_switch_case ( tree_switch_case )
virtual

Reimplemented from tree_walker.

Definition at line 4104 of file pt-eval.cc.

References panic_impossible.

◆ visit_switch_case_list()

void tree_evaluator::visit_switch_case_list ( tree_switch_case_list )
virtual

Reimplemented from tree_walker.

Definition at line 4110 of file pt-eval.cc.

References panic_impossible.

◆ visit_switch_command()

◆ visit_try_catch_command()

◆ visit_unwind_protect_command()

◆ visit_while_command()

void tree_evaluator::visit_while_command ( tree_while_command cmd)
virtual

◆ whos_line_format() [1/3]

std::string tree_evaluator::whos_line_format ( ) const
inline

Definition at line 613 of file pt-eval.h.

◆ whos_line_format() [2/3]

octave_value tree_evaluator::whos_line_format ( const octave_value_list args,
int  nargout 
)

◆ whos_line_format() [3/3]

std::string tree_evaluator::whos_line_format ( const std::string &  s)
inline

Definition at line 615 of file pt-eval.h.


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