#include "pt-eval.h"
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 (const tree_evaluator &)=delete | |
tree_evaluator (interpreter &interp) | |
~tree_evaluator (void)=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 (void) const |
std::list< std::string > | autoloaded_functions (void) const |
octave_map | backtrace (octave_idx_type &curr_user_frame, bool print_subfn=true) const |
octave_map | backtrace (void) 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 (octave_idx_type &curr_user_frame, bool print_subfn=true) const |
std::list< frame_info > | backtrace_info (void) const |
std::string | backtrace_message (void) const |
void | bind_ans (const octave_value &val, bool print) |
bool | break_on_next_statement (bool val) |
bool | break_on_next_statement (void) const |
int | breaking (int n) |
int | breaking (void) const |
octave_function * | caller_function (void) const |
void | clear_all (bool force=false) |
void | clear_debug_watch_expressions (void) |
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) |
void | clear_index_list (void) |
void | clear_objects (void) |
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 (void) |
int | continuing (int n) |
int | continuing (void) const |
octave_value_list | convert_return_list_to_const_vector (tree_parameter_list *ret_list, int nargout, const Matrix &ignored_outputs, const Cell &varargout) |
octave_value_list | convert_to_const_vector (tree_argument_list *arg_list) |
unwind_protect * | curr_fcn_unwind_protect_frame (void) |
std::size_t | current_call_stack_frame_number (void) const |
int | current_column (void) const |
octave_function * | current_function (bool skip_first=false) const |
std::string | current_function_name (bool skip_first=false) const |
int | current_line (void) const |
octave_user_code * | current_user_code (void) const |
std::shared_ptr< stack_frame > | current_user_frame (void) const |
void | dbcont (void) |
void | dbquit (bool all=false) |
int | dbstep_flag (int val) |
int | dbstep_flag (void) const |
void | dbupdown (int n, bool verbose=false) |
std::size_t | debug_frame (std::size_t n) |
std::size_t | debug_frame (void) const |
octave_user_code * | debug_user_code (void) const |
int | debug_user_code_column (void) const |
int | debug_user_code_line (void) const |
std::set< std::string > | debug_watch_expressions (void) 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 (void) 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) |
octave_value | echo (const octave_value_list &args, int nargout) |
int | echo (int val) |
int | echo (void) const |
octave_map | empty_backtrace (void) 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_list | evaluate_end_expression (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 (void) const |
bp_table & | get_bp_table (void) |
call_stack & | get_call_stack (void) |
symbol_scope | get_current_scope (void) const |
std::shared_ptr< stack_frame > | get_current_stack_frame (void) const |
std::string | get_dispatch_class (void) const |
interpreter & | get_interpreter (void) |
void | get_line_and_eval (void) |
std::shared_ptr< push_parser > | get_parser (void) |
profiler & | get_profiler (void) |
symbol_info_list | get_symbol_info (void) |
symbol_scope | get_top_scope (void) const |
octave_user_code * | get_user_code (const std::string &fname="", const std::string &class_name="") |
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 (void) const |
octave_value & | global_varref (const std::string &name) |
octave_value | global_varval (const std::string &name) const |
void | goto_base_frame (void) |
void | goto_caller_frame (void) |
bool | goto_frame (std::size_t n=0, bool verbose=false) |
Matrix | ignored_fcn_outputs (void) const |
bool | in_debug_repl (void) const |
bool | in_top_level_repl (void) const |
bool | in_user_code (void) const |
const std::list< octave_value_list > & | index_list (void) const |
int | index_position (void) const |
const std::string & | index_type (void) const |
octave_value | indexed_object (void) 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 (void) const |
octave_value | make_fcn_handle (const std::string &nm) |
std::list< octave_lvalue > | make_lvalue_list (tree_argument_list *) |
octave_value_list | make_value_list (tree_argument_list *args, const string_vector &arg_nm) |
octave_value | max_recursion_depth (const octave_value_list &args, int nargout) |
int | max_recursion_depth (int n) |
int | max_recursion_depth (void) const |
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 (void) const |
tree_evaluator & | operator= (const tree_evaluator &)=delete |
void | parse_and_execute (const std::string &input, bool &incomplete_parse) |
void | pop_scope (void) |
void | pop_stack_frame (void) |
octave_value | PS4 (const octave_value_list &args, int nargout) |
std::string | PS4 (const std::string &s) |
std::string | PS4 (void) const |
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 (bool flag) |
bool | quiet_breakpoint_flag (void) const |
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) |
void | reset_debug_state (bool mode) |
void | reset_debug_state (void) |
void | restore_frame (std::size_t n) |
int | returning (int n) |
int | returning (void) const |
std::list< std::string > | reverse_lookup_autoload (const std::string &nm) const |
int | server_loop (void) |
void | server_mode (bool arg) |
bool | server_mode (void) const |
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_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_parser (const std::shared_ptr< push_parser > &parser) |
bool | silent_functions (bool b) |
octave_value | silent_functions (const octave_value_list &args, int nargout) |
bool | silent_functions (void) const |
void | source_file (const std::string &file_name, const std::string &context="", bool verbose=false, bool require_file=true) |
bool | statement_printing_enabled (void) |
char | string_fill_char (char c) |
octave_value | string_fill_char (const octave_value_list &args, int nargout) |
char | string_fill_char (void) const |
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 (void) const |
octave_value | top_level_varval (const std::string &name) const |
symbol_info_list | top_scope_symbol_info (void) const |
void | undefine_parameter_list (tree_parameter_list *param_list) |
std::list< std::string > | variable_names (void) 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 &) |
octave_value | whos_line_format (const octave_value_list &args, int nargout) |
std::string | whos_line_format (const std::string &s) |
std::string | whos_line_format (void) const |
Private Member Functions | |
void | bind_auto_fcn_vars (const string_vector &arg_names, const Matrix &ignored_outputs, int nargin, int nargout, bool takes_varargs, const octave_value_list &va_args) |
std::string | check_autoload_file (const std::string &nm) const |
void | do_breakpoint (bool is_breakpoint, bool is_end_of_fcn_or_script=false) |
void | do_breakpoint (tree_statement &stmt) |
void | echo_code (int line) |
bool | echo_this_file (const std::string &file, int type) const |
template<typename T > | |
void | execute_range_loop (const range< T > &rng, int line, octave_lvalue &ult, tree_statement_list *loop_body) |
bool | is_logically_true (tree_expression *expr, const char *warn_for) |
bool | maybe_push_echo_state_cleanup (void) |
void | maybe_set_echo_state (void) |
void | push_echo_state_cleanup (unwind_protect &frame) |
bool | quit_loop_now (void) |
void | set_echo_state (int type, const std::string &file_name, int pos) |
void | uwp_set_echo_state (bool state, const std::string &file_name, int pos) |
typedef void(* tree_evaluator::decl_elt_init_fcn) (tree_decl_elt &) |
|
inline |
|
delete |
|
default |
void tree_evaluator::add_autoload | ( | const std::string & | fcn, |
const std::string & | nm | ||
) |
Definition at line 4482 of file pt-eval.cc.
References check_autoload_file(), and m_autoload_map.
Referenced by Fautoload().
|
inline |
Definition at line 667 of file pt-eval.h.
Referenced by interpreter::add_debug_watch_expression().
|
inline |
Definition at line 732 of file pt-eval.h.
Referenced by octave::tree_index_expression::evaluate_n(), and octave::tree_index_expression::lvalue().
void tree_evaluator::assign | ( | const std::string & | name, |
const octave_value & | val = octave_value () |
||
) |
Definition at line 2000 of file pt-eval.cc.
References call_stack::get_current_stack_frame(), m_call_stack, and name.
Referenced by interpreter::assign(), assignin(), bind_ans(), bind_auto_fcn_vars(), and visit_function_def().
void tree_evaluator::assignin | ( | const std::string & | context, |
const std::string & | name, | ||
const octave_value & | val = octave_value () |
||
) |
Definition at line 2009 of file pt-eval.cc.
References assign(), call_stack::current_frame(), error(), call_stack::goto_base_frame(), call_stack::goto_caller_frame(), iskeyword(), m_call_stack, name, call_stack::restore_frame(), and valid_identifier().
Referenced by interpreter::assignin().
bool tree_evaluator::at_top_level | ( | void | ) | const |
Definition at line 533 of file pt-eval.cc.
References call_stack::at_top_level(), and m_call_stack.
Referenced by interpreter::at_top_level(), parse_and_execute(), repl(), and event_manager::set_workspace().
std::list< std::string > tree_evaluator::autoloaded_functions | ( | void | ) | const |
Definition at line 4460 of file pt-eval.cc.
References m_autoload_map.
Referenced by interpreter::autoloaded_functions().
octave_map tree_evaluator::backtrace | ( | octave_idx_type & | curr_user_frame, |
bool | print_subfn = true |
||
) | const |
Definition at line 2595 of file pt-eval.cc.
References call_stack::backtrace(), and m_call_stack.
Referenced by Flasterror(), and octave::file_editor_tab::save_file().
octave_map tree_evaluator::backtrace | ( | void | ) | const |
Definition at line 2601 of file pt-eval.cc.
References call_stack::backtrace(), and m_call_stack.
std::list< std::shared_ptr< stack_frame > > tree_evaluator::backtrace_frames | ( | void | ) | const |
Definition at line 2577 of file pt-eval.cc.
References call_stack::backtrace_frames(), and m_call_stack.
std::list< std::shared_ptr< stack_frame > > tree_evaluator::backtrace_frames | ( | octave_idx_type & | curr_user_frame | ) | const |
Definition at line 2571 of file pt-eval.cc.
References call_stack::backtrace_frames(), and m_call_stack.
std::list< frame_info > tree_evaluator::backtrace_info | ( | octave_idx_type & | curr_user_frame, |
bool | print_subfn = true |
||
) | const |
Definition at line 2583 of file pt-eval.cc.
References call_stack::backtrace_info(), and m_call_stack.
Referenced by error_system::throw_error().
std::list< frame_info > tree_evaluator::backtrace_info | ( | void | ) | const |
Definition at line 2589 of file pt-eval.cc.
References call_stack::backtrace_info(), and m_call_stack.
Referenced by backtrace_message().
std::string tree_evaluator::backtrace_message | ( | void | ) | const |
Definition at line 2611 of file pt-eval.cc.
References backtrace_info().
Referenced by error_system::vwarning().
void tree_evaluator::bind_ans | ( | const octave_value & | val, |
bool | |||
) |
Definition at line 4257 of file pt-eval.cc.
References assign(), bind_ans(), feval(), octave_value::is_cs_list(), octave_value::is_defined(), octave_value_list::length(), octave_value::list_value(), ovl(), octave_value_list::stash_name_tags(), and varval().
Referenced by bind_ans(), eval_string(), and visit_statement().
|
private |
Definition at line 5064 of file pt-eval.cc.
References assign(), octave_value_list::cell_value(), and set_auto_fcn_var().
Referenced by execute_user_function().
|
inline |
Definition at line 797 of file pt-eval.h.
Referenced by interpreter::pause().
|
inline |
Definition at line 759 of file pt-eval.h.
Referenced by eval_string().
octave_function * tree_evaluator::caller_function | ( | void | ) | const |
Definition at line 2523 of file pt-eval.cc.
References call_stack::current_function(), and m_call_stack.
Referenced by Fclass(), Finferiorto(), Fsuperiorto(), and maybe_set_echo_state().
|
private |
Definition at line 5081 of file pt-eval.cc.
References absolute_pathname(), call_stack::current_user_code(), octave::sys::file_ops::dir_sep_str(), octave_user_code::fcn_file_name(), m_call_stack, make_absolute(), and warning_with_id().
Referenced by add_autoload(), and remove_autoload().
void tree_evaluator::clear_all | ( | bool | force = false | ) |
Definition at line 2799 of file pt-eval.cc.
References symbol_table::clear_functions(), clear_global_variables(), clear_variables(), interpreter::get_symbol_table(), and m_interpreter.
Referenced by interpreter::clear_all().
|
inline |
Definition at line 681 of file pt-eval.h.
Referenced by interpreter::clear_debug_watch_expressions().
void tree_evaluator::clear_global_variable | ( | const std::string & | name | ) |
Definition at line 2778 of file pt-eval.cc.
References call_stack::clear_global_variable(), m_call_stack, and name.
Referenced by interpreter::clear_global_variable().
void tree_evaluator::clear_global_variable_pattern | ( | const std::string & | pattern | ) |
Definition at line 2784 of file pt-eval.cc.
References call_stack::clear_global_variable_pattern(), and m_call_stack.
Referenced by interpreter::clear_global_variable_pattern().
void tree_evaluator::clear_global_variable_regexp | ( | const std::string & | pattern | ) |
Definition at line 2789 of file pt-eval.cc.
References call_stack::clear_global_variable_regexp(), and m_call_stack.
Referenced by interpreter::clear_global_variable_regexp().
void tree_evaluator::clear_global_variables | ( | void | ) |
Definition at line 2794 of file pt-eval.cc.
References call_stack::clear_global_variables(), and m_call_stack.
Referenced by clear_all(), and interpreter::clear_global_variables().
|
inline |
Definition at line 726 of file pt-eval.h.
Referenced by octave::tree_index_expression::evaluate_n(), and octave::tree_index_expression::lvalue().
void tree_evaluator::clear_objects | ( | void | ) |
Definition at line 2738 of file pt-eval.cc.
References call_stack::get_current_stack_frame(), and m_call_stack.
Referenced by interpreter::clear_objects().
void tree_evaluator::clear_symbol | ( | const std::string & | name | ) |
Definition at line 2811 of file pt-eval.cc.
References symbol_table::clear_function(), clear_variable(), interpreter::get_symbol_table(), m_interpreter, and name.
Referenced by interpreter::clear_symbol().
void tree_evaluator::clear_symbol_pattern | ( | const std::string & | pattern | ) |
Definition at line 2822 of file pt-eval.cc.
References symbol_table::clear_function_pattern(), clear_variable_pattern(), interpreter::get_symbol_table(), and m_interpreter.
Referenced by interpreter::clear_symbol_pattern().
void tree_evaluator::clear_symbol_regexp | ( | const std::string & | pattern | ) |
Definition at line 2833 of file pt-eval.cc.
References symbol_table::clear_function_regexp(), clear_variable_regexp(), interpreter::get_symbol_table(), and m_interpreter.
Referenced by interpreter::clear_symbol_regexp().
void tree_evaluator::clear_variable | ( | const std::string & | name | ) |
Definition at line 2746 of file pt-eval.cc.
References call_stack::get_current_stack_frame(), m_call_stack, and name.
Referenced by clear_symbol(), and interpreter::clear_variable().
void tree_evaluator::clear_variable_pattern | ( | const std::string & | pattern | ) |
Definition at line 2754 of file pt-eval.cc.
References call_stack::get_current_stack_frame(), and m_call_stack.
Referenced by clear_symbol_pattern(), and interpreter::clear_variable_pattern().
void tree_evaluator::clear_variable_regexp | ( | const std::string & | pattern | ) |
Definition at line 2762 of file pt-eval.cc.
References call_stack::get_current_stack_frame(), and m_call_stack.
Referenced by clear_symbol_regexp(), and interpreter::clear_variable_regexp().
void tree_evaluator::clear_variables | ( | void | ) |
Definition at line 2770 of file pt-eval.cc.
References call_stack::get_current_stack_frame(), and m_call_stack.
Referenced by clear_all(), and interpreter::clear_variables().
|
inline |
Definition at line 768 of file pt-eval.h.
Referenced by eval_string().
octave_value_list tree_evaluator::convert_return_list_to_const_vector | ( | tree_parameter_list * | ret_list, |
int | nargout, | ||
const Matrix & | ignored_outputs, | ||
const Cell & | varargout | ||
) |
Definition at line 2323 of file pt-eval.cc.
References evaluate(), is_defined(), len, and Array< T, Alloc >::numel().
Referenced by execute_user_function().
octave_value_list tree_evaluator::convert_to_const_vector | ( | tree_argument_list * | arg_list | ) |
Definition at line 2295 of file pt-eval.cc.
References octave_value::is_cs_list(), octave_value::is_defined(), octave_value_list::length(), and octave_value::list_value().
Referenced by octave::tree_cell::evaluate(), and octave::tree_index_expression::evaluate_n().
unwind_protect * tree_evaluator::curr_fcn_unwind_protect_frame | ( | void | ) |
Definition at line 2508 of file pt-eval.cc.
References call_stack::curr_fcn_unwind_protect_frame(), and m_call_stack.
|
inline |
Definition at line 629 of file pt-eval.h.
Referenced by debugger::repl().
int tree_evaluator::current_column | ( | void | ) | const |
Definition at line 2481 of file pt-eval.cc.
References call_stack::current_column(), and m_call_stack.
octave_function * tree_evaluator::current_function | ( | bool | skip_first = false | ) | const |
Definition at line 2518 of file pt-eval.cc.
References call_stack::current_function(), and m_call_stack.
Referenced by octave::get_class_context(), get_current_shlib(), octave::is_method_executing(), make_fcn_handle(), and print_usage().
std::string tree_evaluator::current_function_name | ( | bool | skip_first = false | ) | const |
Definition at line 2953 of file pt-eval.cc.
References call_stack::current_function(), m_call_stack, and octave_function::name().
int tree_evaluator::current_line | ( | void | ) | const |
Definition at line 2476 of file pt-eval.cc.
References call_stack::current_line(), and m_call_stack.
Referenced by debugger::repl().
octave_user_code * tree_evaluator::current_user_code | ( | void | ) | const |
Definition at line 2503 of file pt-eval.cc.
References call_stack::current_user_code(), and m_call_stack.
Referenced by debugger::repl().
|
inline |
Definition at line 442 of file pt-eval.h.
Referenced by debugger::repl().
void tree_evaluator::dbcont | ( | void | ) |
Definition at line 4849 of file pt-eval.cc.
References m_debugger_stack.
Referenced by interpreter::resume(), and visit_return_command().
void tree_evaluator::dbquit | ( | bool | all = false | ) |
Definition at line 4855 of file pt-eval.cc.
References m_debugger_stack.
Referenced by octave::file_editor_tab::confirm_dbquit_and_save(), and interpreter::stop().
|
inline |
Definition at line 786 of file pt-eval.h.
Referenced by parse_and_execute(), debugger::repl(), repl(), and debugger::server_loop().
Definition at line 1433 of file pt-eval.cc.
References call_stack::dbupdown(), m_call_stack, and m_debug_frame.
|
inline |
|
inline |
Definition at line 620 of file pt-eval.h.
Referenced by debugger::repl().
octave_user_code * tree_evaluator::debug_user_code | ( | void | ) | const |
Definition at line 2513 of file pt-eval.cc.
References call_stack::debug_user_code(), and m_call_stack.
int tree_evaluator::debug_user_code_column | ( | void | ) | const |
Definition at line 2491 of file pt-eval.cc.
References call_stack::debug_user_code_column(), and m_call_stack.
int tree_evaluator::debug_user_code_line | ( | void | ) | const |
Definition at line 2486 of file pt-eval.cc.
References call_stack::debug_user_code_line(), and m_call_stack.
|
inline |
Definition at line 688 of file pt-eval.h.
Referenced by interpreter::debug_watch_expressions().
void tree_evaluator::debug_where | ( | std::ostream & | os | ) | const |
Definition at line 2496 of file pt-eval.cc.
References call_stack::current_user_frame(), and m_call_stack.
void tree_evaluator::define_parameter_list_from_arg_vector | ( | tree_parameter_list * | param_list, |
const octave_value_list & | args | ||
) |
Definition at line 2210 of file pt-eval.cc.
References error(), eval_decl_elt(), is_defined(), and octave_value_list::length().
Referenced by execute_user_function().
void tree_evaluator::display_call_stack | ( | void | ) | const |
Definition at line 2709 of file pt-eval.cc.
References call_stack::display(), and m_call_stack.
|
private |
Definition at line 4299 of file pt-eval.cc.
References call_stack::current_frame(), enter_debugger(), m_break_on_next_stmt, m_call_stack, m_dbstep_flag, and m_debug_frame.
|
private |
Definition at line 4292 of file pt-eval.cc.
References do_breakpoint().
Referenced by do_breakpoint(), visit_break_command(), visit_complex_for_command(), visit_continue_command(), visit_decl_command(), visit_do_until_command(), visit_if_command_list(), visit_no_op_command(), visit_return_command(), visit_simple_for_command(), visit_statement(), visit_switch_command(), and visit_while_command().
void tree_evaluator::do_unwind_protect_cleanup_code | ( | tree_statement_list * | list | ) |
Definition at line 4024 of file pt-eval.cc.
References call_stack::current_column(), call_stack::current_line(), interpreter::get_error_system(), m_breaking, m_call_stack, m_interpreter, m_returning, octave_interrupt_state, interpreter::recover_from_exception(), error_system::save_exception(), call_stack::set_column(), and call_stack::set_line().
Referenced by visit_unwind_protect_command().
octave_value tree_evaluator::do_who | ( | int | argc, |
const string_vector & | argv, | ||
bool | return_list, | ||
bool | verbose = false |
||
) |
Definition at line 4559 of file pt-eval.cc.
References call_stack::do_who(), and m_call_stack.
octave_value tree_evaluator::echo | ( | const octave_value_list & | args, |
int | nargout | ||
) |
Definition at line 4716 of file pt-eval.cc.
References ECHO_ALL, ECHO_FUNCTIONS, ECHO_OFF, ECHO_SCRIPTS, error(), fcn_file_in_path(), octave_value_list::length(), m_echo, m_echo_files, make_absolute(), octave_value_list::make_argv(), maybe_push_echo_state_cleanup(), maybe_set_echo_state(), octave_value(), and print_usage().
Referenced by interpreter::interpreter(), and Fecho().
|
inline |
Definition at line 816 of file pt-eval.h.
Referenced by execute_user_function(), and execute_user_script().
|
private |
Definition at line 5026 of file pt-eval.cc.
References call_stack::current_function(), octave_user_code::get_code_lines(), octave_base_value::is_user_code(), m_call_stack, m_echo_file_pos, m_PS4, and octave_stdout.
Referenced by visit_break_command(), visit_complex_for_command(), visit_continue_command(), visit_decl_command(), visit_do_until_command(), visit_if_command(), visit_no_op_command(), visit_return_command(), visit_simple_for_command(), visit_statement(), visit_switch_command(), visit_try_catch_command(), visit_unwind_protect_command(), and visit_while_command().
Definition at line 4993 of file pt-eval.cc.
References ECHO_ALL, ECHO_FUNCTIONS, ECHO_SCRIPTS, m_echo, and m_echo_files.
Referenced by set_echo_state().
octave_map tree_evaluator::empty_backtrace | ( | void | ) | const |
Definition at line 2606 of file pt-eval.cc.
References call_stack::empty_backtrace(), and m_call_stack.
Referenced by Flasterror(), and init_error_stack().
void tree_evaluator::enter_debugger | ( | const std::string & | prompt = "debug> " | ) |
Definition at line 1377 of file pt-eval.cc.
References call_stack::current_frame(), call_stack::dbupdown(), error_system::debug_on_error(), error_system::debug_on_warning(), interpreter::get_error_system(), m_call_stack, m_debug_frame, m_debugger_stack, m_interpreter, debugger::repl(), reset_debug_state(), call_stack::restore_frame(), error_system::set_debug_on_error(), and error_system::set_debug_on_warning().
Referenced by do_breakpoint(), keyboard(), visit_statement(), and error_system::vwarning().
octave_value_list tree_evaluator::eval | ( | const std::string & | try_code, |
const std::string & | catch_code, | ||
int | nargout | ||
) |
Definition at line 1114 of file pt-eval.cc.
References eval_string(), interpreter::get_error_system(), m_interpreter, interpreter::recover_from_exception(), and error_system::save_exception().
octave_value_list tree_evaluator::eval | ( | const std::string & | try_code, |
int | nargout | ||
) |
Definition at line 1106 of file pt-eval.cc.
References eval_string().
void tree_evaluator::eval | ( | std::shared_ptr< tree_statement_list > & | stmt_list, |
bool | interactive | ||
) |
Definition at line 979 of file pt-eval.cc.
References m_breaking, m_interpreter, m_returning, octave_completion_matches_called, and interpreter::recover_from_exception().
Referenced by interpreter::eval(), parse_and_execute(), and repl().
bool tree_evaluator::eval_decl_elt | ( | tree_decl_elt * | elt | ) |
Definition at line 2390 of file pt-eval.cc.
References octave_value::assign(), and octave_value::op_asn_eq.
Referenced by define_parameter_list_from_arg_vector().
octave_value_list tree_evaluator::eval_string | ( | const octave_value & | arg, |
bool | silent, | ||
int & | parse_status, | ||
int | nargout | ||
) |
Definition at line 1097 of file pt-eval.cc.
References eval_string(), and octave_value::xstring_value().
octave_value tree_evaluator::eval_string | ( | const std::string & | eval_str, |
bool | silent, | ||
int & | parse_status | ||
) |
Definition at line 1084 of file pt-eval.cc.
References octave_value_list::empty(), and eval_string().
octave_value_list tree_evaluator::eval_string | ( | const std::string & | eval_str, |
bool | silent, | ||
int & | parse_status, | ||
int | nargout | ||
) |
Definition at line 1012 of file pt-eval.cc.
References bind_ans(), breaking(), continuing(), octave_value_list::empty(), error(), is_variable(), m_interpreter, and returning().
Referenced by eval(), eval_string(), interpreter::eval_string(), evalin(), and octave::tree::meets_bp_condition().
octave_value_list tree_evaluator::evalin | ( | const std::string & | context, |
const std::string & | try_code, | ||
const std::string & | catch_code, | ||
int | nargout | ||
) |
Definition at line 1182 of file pt-eval.cc.
References call_stack::current_frame(), error(), eval_string(), interpreter::get_error_system(), call_stack::goto_base_frame(), call_stack::goto_caller_frame(), m_call_stack, m_interpreter, interpreter::recover_from_exception(), call_stack::restore_frame(), and error_system::save_exception().
octave_value_list tree_evaluator::evalin | ( | const std::string & | context, |
const std::string & | try_code, | ||
int | nargout | ||
) |
Definition at line 1161 of file pt-eval.cc.
References call_stack::current_frame(), error(), eval_string(), call_stack::goto_base_frame(), call_stack::goto_caller_frame(), m_call_stack, and call_stack::restore_frame().
Referenced by interpreter::evalin().
octave_value tree_evaluator::evaluate | ( | tree_decl_elt * | elt | ) |
Definition at line 1855 of file pt-eval.cc.
References octave_value(), and octave_value::storable_value().
Referenced by convert_return_list_to_const_vector(), and octave::is_method_executing().
octave_value_list tree_evaluator::evaluate_end_expression | ( | const octave_value_list & | args | ) |
Definition at line 4891 of file pt-eval.cc.
References octave_value::class_name(), call_stack::current_frame(), end_value(), err_indexed_cs_list(), error(), interpreter::feval(), call_stack::find_current_user_frame(), symbol_table::find_method(), interpreter::get_symbol_table(), call_stack::goto_frame(), index_position(), octave_value::is_cs_list(), octave_value::is_defined(), octave_value::is_undefined(), octave_value::isobject(), octave_value_list::length(), m_call_stack, m_index_list, m_index_position, m_index_type, m_indexed_object, m_interpreter, m_num_indices, num_indices(), octave_value(), ovl(), print_usage(), call_stack::restore_frame(), and octave_value::subsref().
Referenced by Fend().
|
private |
Definition at line 3027 of file pt-eval.cc.
References octave::math::isinf(), m_echo_file_pos, m_echo_state, octave_value::op_asn_eq, quit_loop_now(), and warning_with_id().
Referenced by visit_simple_for_command().
octave_value_list tree_evaluator::execute_user_function | ( | octave_user_function & | user_function, |
int | nargout, | ||
const octave_value_list & | args | ||
) |
Definition at line 3385 of file pt-eval.cc.
References bind_auto_fcn_vars(), convert_return_list_to_const_vector(), define_parameter_list_from_arg_vector(), echo(), ECHO_FUNCTIONS, error(), error_with_id(), ignored_fcn_outputs(), octave_value::is_defined(), octave_value_list::length(), m_breaking, m_call_stack, m_max_recursion_depth, m_profiler, m_returning, m_statement_context, name, octave_value_list::name_tags(), panic_impossible, push_echo_state(), SC_FUNCTION, call_stack::set_location(), call_stack::size(), octave_value_list::slice(), user_function(), varval(), and octave_value::xcell_value().
octave_value_list tree_evaluator::execute_user_script | ( | octave_user_script & | user_script, |
int | nargout, | ||
const octave_value_list & | args | ||
) |
Definition at line 3335 of file pt-eval.cc.
References octave_user_code::body(), echo(), ECHO_SCRIPTS, error(), octave_user_code::fcn_file_name(), octave_value_list::length(), m_breaking, m_call_stack, m_max_recursion_depth, m_profiler, m_returning, m_statement_context, push_echo_state(), SC_SCRIPT, and call_stack::size().
void tree_evaluator::final_index_error | ( | index_exception & | ie, |
const tree_expression * | expr | ||
) |
Definition at line 4528 of file pt-eval.cc.
References error_with_id(), symbol_table::find_function(), octave_value::function_value(), interpreter::get_symbol_table(), octave_value::is_function(), is_variable(), m_interpreter, and octave_function::name().
Referenced by octave::tree_index_expression::evaluate_n().
octave_value tree_evaluator::find | ( | const std::string & | name | ) |
Definition at line 2714 of file pt-eval.cc.
References symbol_table::fcn_table_find(), call_stack::get_current_stack_frame(), interpreter::get_symbol_table(), octave_value::is_defined(), m_call_stack, m_interpreter, name, and ovl().
Referenced by interpreter::find().
octave_value tree_evaluator::get_auto_fcn_var | ( | stack_frame::auto_var_type | avt | ) | const |
Definition at line 2204 of file pt-eval.cc.
References call_stack::get_auto_fcn_var(), and m_call_stack.
Referenced by F__varval__(), Fisargout(), Fnargin(), Fnargout(), and Fwarning().
octave_map tree_evaluator::get_autoload_map | ( | void | ) | const |
Definition at line 4422 of file pt-eval.cc.
References octave_map::assign(), and m_autoload_map.
Referenced by Fautoload().
|
inline |
Definition at line 416 of file pt-eval.h.
Referenced by octave::__get_bp_table__(), octave::file_editor_tab::add_breakpoint_event(), octave::file_editor_tab::handle_dbstop_if(), octave::file_editor_tab::handle_request_remove_breakpoint(), octave::file_editor_tab::remove_all_breakpoints(), and error_system::vwarning().
|
inline |
Definition at line 420 of file pt-eval.h.
Referenced by octave::tree_anon_fcn_handle::evaluate().
symbol_scope tree_evaluator::get_current_scope | ( | void | ) | const |
Definition at line 2656 of file pt-eval.cc.
References call_stack::current_scope(), and m_call_stack.
Referenced by symbol_table::current_scope(), octave::tree_anon_fcn_handle::evaluate(), interpreter::get_current_scope(), and make_fcn_handle().
|
inline |
Definition at line 437 of file pt-eval.h.
Referenced by octave::tree_identifier::lvalue(), and octave::tree_black_hole::lvalue().
std::string tree_evaluator::get_dispatch_class | ( | void | ) | const |
Definition at line 2548 of file pt-eval.cc.
References call_stack::get_dispatch_class(), and m_call_stack.
Referenced by octave::get_class_context().
|
inline |
Definition at line 414 of file pt-eval.h.
Referenced by octave::bp_file_info::bp_file_info(), octave::bp_table::add_breakpoint_1(), octave::bp_table::condition_valid(), octave::bp_table::dbclear_all_signals(), octave::bp_table::dbstop_process_map_args(), octave::tree_binary_expression::evaluate(), octave::tree_compound_binary_expression::evaluate(), octave::tree_prefix_expression::evaluate(), octave::tree_postfix_expression::evaluate(), octave::tree_identifier::evaluate_n(), octave::tree_index_expression::evaluate_n(), octave_inline_fcn::execute(), octave::tm_const::generic_concat(), octave::tree::meets_bp_condition(), octave::bp_table::remove_all_breakpoints_from_function(), octave::bp_table::remove_breakpoint_1(), octave::bp_table::set_stop_flag(), and octave::bp_table::stop_on_err_warn_status().
void tree_evaluator::get_line_and_eval | ( | void | ) |
Definition at line 638 of file pt-eval.cc.
References error_system::display_exception(), interpreter::get_error_system(), interpreter::get_event_manager(), interpreter::get_input_system(), input(), interpreter::interactive(), m_interpreter, m_parser, interpreter::parse_and_execute(), event_manager::post_event(), input_system::PS1(), input_system::PS2(), interpreter::recover_from_exception(), and error_system::save_exception().
Referenced by interpreter::get_line_and_eval().
|
inline |
Definition at line 155 of file pt-eval.h.
Referenced by debugger::repl().
|
inline |
Definition at line 418 of file pt-eval.h.
Referenced by octave::tree_binary_expression::evaluate(), octave::tree_prefix_expression::evaluate(), octave::tree_postfix_expression::evaluate(), and interpreter::get_profiler().
symbol_info_list tree_evaluator::get_symbol_info | ( | void | ) |
Definition at line 4411 of file pt-eval.cc.
References call_stack::get_symbol_info(), and m_call_stack.
Referenced by octave::main_window::handle_load_workspace_request(), octave::main_window::handle_open_any_request(), octave::base_qobject::handle_variable_editor_update(), and event_manager::set_workspace().
symbol_scope tree_evaluator::get_top_scope | ( | void | ) | const |
Definition at line 2651 of file pt-eval.cc.
References m_call_stack, and call_stack::top_scope().
Referenced by interpreter::get_top_scope().
octave_user_code * tree_evaluator::get_user_code | ( | const std::string & | fname = "" , |
const std::string & | class_name = "" |
||
) |
Definition at line 2864 of file pt-eval.cc.
References call_stack::debug_user_code(), dir_sep_char, symbol_table::find_function(), symbol_table::find_method(), octave_user_code::find_subfunction(), interpreter::get_cdef_manager(), interpreter::get_symbol_table(), octave_value::is_defined(), octave_value::is_undefined(), octave_value::is_user_code(), m_call_stack, m_interpreter, name, and octave_value::user_code_value().
Referenced by octave::bp_table::add_breakpoints_in_function(), octave::bp_table::get_breakpoint_list(), octave::bp_table::parse_dbfunction_params(), octave::bp_table::remove_all_breakpoints_from_function(), and octave::bp_table::remove_breakpoints_from_function().
symbol_info_list tree_evaluator::glob_symbol_info | ( | const std::string & | pattern | ) | const |
Definition at line 4399 of file pt-eval.cc.
References call_stack::glob_symbol_info(), and m_call_stack.
Referenced by load_save_system::save_vars().
void tree_evaluator::global_assign | ( | const std::string & | name, |
const octave_value & | val = octave_value () |
||
) |
Definition at line 1980 of file pt-eval.cc.
References call_stack::global_varref(), m_call_stack, and name.
Referenced by interpreter::global_assign().
std::list< std::string > tree_evaluator::global_variable_names | ( | void | ) | const |
Definition at line 2844 of file pt-eval.cc.
References call_stack::global_variable_names(), and m_call_stack.
Referenced by interpreter::global_variable_names().
octave_value & tree_evaluator::global_varref | ( | const std::string & | name | ) |
Definition at line 1974 of file pt-eval.cc.
References call_stack::global_varref(), m_call_stack, and name.
Referenced by octave::stack_frame::install_variable(), octave::script_stack_frame::varref(), octave::user_fcn_stack_frame::varref(), and octave::scope_stack_frame::varref().
octave_value tree_evaluator::global_varval | ( | const std::string & | name | ) | const |
Definition at line 1968 of file pt-eval.cc.
References call_stack::global_varval(), m_call_stack, and name.
Referenced by interpreter::global_varval(), octave::stack_frame::install_variable(), octave::script_stack_frame::varval(), octave::user_fcn_stack_frame::varval(), and octave::scope_stack_frame::varval().
void tree_evaluator::goto_base_frame | ( | void | ) |
Definition at line 2538 of file pt-eval.cc.
References call_stack::goto_base_frame(), and m_call_stack.
void tree_evaluator::goto_caller_frame | ( | void | ) |
Definition at line 2533 of file pt-eval.cc.
References call_stack::goto_caller_frame(), and m_call_stack.
Definition at line 2528 of file pt-eval.cc.
References call_stack::goto_frame(), and m_call_stack.
Referenced by debugger::repl().
Matrix tree_evaluator::ignored_fcn_outputs | ( | void | ) | const |
Definition at line 1439 of file pt-eval.cc.
References m_lvalue_list, and Matrix::resize().
Referenced by execute_user_function().
bool tree_evaluator::in_debug_repl | ( | void | ) | const |
Definition at line 4843 of file pt-eval.cc.
References m_debugger_stack.
Referenced by octave::bp_table::parse_dbfunction_params(), octave::file_editor::request_run_file(), reset_debug_state(), interpreter::resume(), octave::file_editor_tab::save_file(), interpreter::stop(), visit_if_command_list(), visit_return_command(), and visit_statement().
|
inline |
bool tree_evaluator::in_user_code | ( | void | ) | const |
Definition at line 2964 of file pt-eval.cc.
References call_stack::current_user_code(), and m_call_stack.
Referenced by visit_statement(), and error_system::vwarning().
|
inline |
Definition at line 714 of file pt-eval.h.
Referenced by octave::tree_index_expression::evaluate_n(), and octave::tree_index_expression::lvalue().
|
inline |
Definition at line 743 of file pt-eval.h.
Referenced by evaluate_end_expression().
|
inline |
Definition at line 738 of file pt-eval.h.
Referenced by octave::tree_index_expression::evaluate_n(), and octave::tree_index_expression::lvalue().
|
inline |
Definition at line 704 of file pt-eval.h.
Referenced by octave::tree_index_expression::evaluate_n(), and octave::tree_index_expression::lvalue().
void tree_evaluator::install_variable | ( | const std::string & | name, |
const octave_value & | value, | ||
bool | global | ||
) |
Definition at line 1957 of file pt-eval.cc.
References call_stack::get_current_stack_frame(), m_call_stack, and name.
Referenced by interpreter::install_variable().
bool tree_evaluator::is_class_constructor_executing | ( | std::string & | dispatch_class | ) | const |
Definition at line 2565 of file pt-eval.cc.
References call_stack::is_class_constructor_executing(), and m_call_stack.
bool tree_evaluator::is_class_method_executing | ( | std::string & | dispatch_class | ) | const |
Definition at line 2559 of file pt-eval.cc.
References call_stack::is_class_method_executing(), and m_call_stack.
bool tree_evaluator::is_defined | ( | const symbol_record & | sym | ) | const |
Definition at line 1923 of file pt-eval.cc.
References call_stack::get_current_stack_frame(), and m_call_stack.
bool tree_evaluator::is_defined | ( | const tree_expression * | expr | ) | const |
Definition at line 1900 of file pt-eval.cc.
References is_defined().
Referenced by convert_return_list_to_const_vector(), define_parameter_list_from_arg_vector(), is_defined(), and make_fcn_handle().
bool tree_evaluator::is_global | ( | const std::string & | name | ) | const |
Definition at line 1931 of file pt-eval.cc.
References call_stack::get_current_stack_frame(), m_call_stack, and name.
Referenced by interpreter::isglobal().
bool tree_evaluator::is_local_variable | ( | const std::string & | name | ) | const |
Definition at line 1874 of file pt-eval.cc.
References call_stack::get_current_stack_frame(), m_call_stack, and name.
Referenced by interpreter::is_local_variable().
|
private |
Definition at line 4373 of file pt-eval.cc.
References error(), octave_value::is_defined(), octave_value::is_true(), m_call_stack, and call_stack::set_location().
Referenced by visit_do_until_command(), visit_if_command_list(), and visit_while_command().
bool tree_evaluator::is_variable | ( | const std::string & | name | ) | const |
Definition at line 1865 of file pt-eval.cc.
References call_stack::get_current_stack_frame(), m_call_stack, and name.
Referenced by eval_string(), octave::tree_index_expression::evaluate_n(), final_index_error(), interpreter::is_variable(), is_variable(), and visit_statement().
bool tree_evaluator::is_variable | ( | const symbol_record & | sym | ) | const |
Definition at line 1914 of file pt-eval.cc.
References call_stack::get_current_stack_frame(), and m_call_stack.
bool tree_evaluator::is_variable | ( | const tree_expression * | expr | ) | const |
Definition at line 1883 of file pt-eval.cc.
References is_variable().
void tree_evaluator::keyboard | ( | const std::string & | prompt = "keyboard> " | ) |
Definition at line 1427 of file pt-eval.cc.
References enter_debugger().
std::string tree_evaluator::lookup_autoload | ( | const std::string & | nm | ) | const |
Definition at line 4444 of file pt-eval.cc.
References load_path::find_file(), interpreter::get_load_path(), m_autoload_map, and m_interpreter.
Referenced by fcn_info::fcn_info_rep::find_autoload(), out_of_date_check(), and symbol_exist().
|
inline |
Definition at line 749 of file pt-eval.h.
Referenced by octave::tree_cell::evaluate(), octave::tree_simple_assignment::evaluate(), octave::tree_multi_assignment::evaluate_n(), and octave::tree_index_expression::evaluate_n().
octave_value tree_evaluator::make_fcn_handle | ( | const std::string & | nm | ) |
Definition at line 1604 of file pt-eval.cc.
References octave::cdef_class, octave::cdef_object, octave_classdef::class_name(), octave_classdef::classdef_object_value(), current_function(), octave_function::dispatch_class(), symbol_table::find_method(), symbol_table::find_scoped_function(), symbol_table::find_user_function(), octave_value::function_value(), get_current_scope(), call_stack::get_current_stack_frame(), octave_classdef::get_object(), get_operator_function_name(), interpreter::get_symbol_table(), octave_function::is_class_constructor(), octave_function::is_class_method(), is_defined(), octave_value::is_defined(), octave_function::is_nested_function(), octave_function::is_private_function(), octave_function::is_subfunction(), m_call_stack, m_interpreter, name, octave_function::name(), octave_value(), octave_function::parent_fcn_name(), octave_function::parent_fcn_names(), and varval().
Referenced by octave::tree_fcn_handle::evaluate(), Fstr2func(), make_fcn_handle(), and interpreter::make_function_handle().
std::list< octave_lvalue > tree_evaluator::make_lvalue_list | ( | tree_argument_list * | lhs | ) |
Definition at line 4621 of file pt-eval.cc.
Referenced by octave::tree_multi_assignment::evaluate_n().
octave_value_list tree_evaluator::make_value_list | ( | tree_argument_list * | args, |
const string_vector & | arg_nm | ||
) |
Definition at line 4566 of file pt-eval.cc.
References octave_value::is_cs_list(), octave_value::is_defined(), len, octave_value_list::length(), octave_value::list_value(), m_index_position, m_lvalue_list, m_num_indices, and octave_value_list::stash_name_tags().
Referenced by octave::tree_index_expression::evaluate_n(), and octave::tree_index_expression::lvalue().
octave_value tree_evaluator::max_recursion_depth | ( | const octave_value_list & | args, |
int | nargout | ||
) |
Definition at line 4391 of file pt-eval.cc.
References m_max_recursion_depth, and set_internal_variable().
|
inline |
Definition at line 585 of file pt-eval.h.
Referenced by Fmax_recursion_depth(), and source_file().
octave_value tree_evaluator::max_stack_depth | ( | const octave_value_list & | args, |
int | nargout | ||
) |
Definition at line 2704 of file pt-eval.cc.
References m_call_stack, and call_stack::max_stack_depth().
Referenced by Fmax_stack_depth().
|
private |
Definition at line 4696 of file pt-eval.cc.
References call_stack::curr_fcn_unwind_protect_frame(), m_call_stack, and push_echo_state_cleanup().
Referenced by echo().
|
private |
Definition at line 4664 of file pt-eval.cc.
References caller_function(), call_stack::current_user_code_line(), ECHO_FUNCTIONS, ECHO_SCRIPTS, octave_user_code::fcn_file_name(), octave_base_value::is_user_code(), octave_base_value::is_user_function(), m_call_stack, and set_echo_state().
Referenced by echo().
std::string tree_evaluator::mfilename | ( | const std::string & | opt = "" | ) | const |
Definition at line 539 of file pt-eval.cc.
References call_stack::current_user_code(), dir_sep_char, octave_user_code::fcn_file_name(), m_call_stack, and octave_function::name().
Referenced by interpreter::mfilename().
Definition at line 2693 of file pt-eval.cc.
References call_stack::current_function(), error(), octave_function::islocked(), and m_call_stack.
Referenced by interpreter::mislocked().
void tree_evaluator::mlock | ( | bool | skip_first = false | ) | const |
Definition at line 2661 of file pt-eval.cc.
References call_stack::current_function(), error(), octave_base_value::is_builtin_function(), octave_function::lock(), m_call_stack, and warning().
Referenced by interpreter::mlock().
void tree_evaluator::munlock | ( | bool | skip_first = false | ) | const |
Definition at line 2677 of file pt-eval.cc.
References call_stack::current_function(), error(), octave_base_value::is_builtin_function(), m_call_stack, octave_function::unlock(), and warning().
Referenced by interpreter::munlock().
|
inline |
Definition at line 745 of file pt-eval.h.
Referenced by evaluate_end_expression().
|
delete |
void tree_evaluator::parse_and_execute | ( | const std::string & | input, |
bool & | incomplete_parse | ||
) |
Definition at line 574 of file pt-eval.cc.
References event_manager::append_history(), at_top_level(), dbstep_flag(), eval(), interpreter::get_event_manager(), input(), interpreter::interactive(), m_exit_status, m_in_top_level_repl, m_interpreter, m_parser, event_manager::pre_input_event(), reset_debug_state(), event_manager::set_workspace(), octave::sys::time::stamp(), and Vlast_prompt_time.
Referenced by interpreter::parse_and_execute().
void tree_evaluator::pop_scope | ( | void | ) |
Definition at line 2646 of file pt-eval.cc.
References m_call_stack, and call_stack::pop().
Referenced by base_anonymous_fcn_handle::load_ascii(), base_anonymous_fcn_handle::load_binary(), base_anonymous_fcn_handle::load_hdf5(), octave::cdef_class::make_meta_class(), and base_anonymous_fcn_handle::parse().
void tree_evaluator::pop_stack_frame | ( | void | ) |
Definition at line 2471 of file pt-eval.cc.
References m_call_stack, and call_stack::pop().
Referenced by nested_fcn_handle::call(), weak_nested_fcn_handle::call(), anonymous_fcn_handle::call(), and weak_anonymous_fcn_handle::call().
octave_value tree_evaluator::PS4 | ( | const octave_value_list & | args, |
int | nargout | ||
) |
Definition at line 4988 of file pt-eval.cc.
References m_PS4, and set_internal_variable().
Referenced by FPS4(), and interpreter::maximum_braindamage().
|
inline |
void tree_evaluator::push_dummy_scope | ( | const std::string & | name | ) |
Definition at line 2639 of file pt-eval.cc.
References m_call_stack, name, and call_stack::push().
Referenced by base_anonymous_fcn_handle::load_ascii(), base_anonymous_fcn_handle::load_binary(), base_anonymous_fcn_handle::load_hdf5(), octave::cdef_class::make_meta_class(), and base_anonymous_fcn_handle::parse().
Definition at line 4632 of file pt-eval.cc.
References call_stack::curr_fcn_unwind_protect_frame(), m_call_stack, push_echo_state_cleanup(), and set_echo_state().
Referenced by execute_user_function(), and execute_user_script().
|
private |
Definition at line 4690 of file pt-eval.cc.
References m_echo_file_name, m_echo_file_pos, m_echo_state, and uwp_set_echo_state().
Referenced by maybe_push_echo_state_cleanup(), and push_echo_state().
void tree_evaluator::push_stack_frame | ( | const symbol_scope & | scope | ) |
Definition at line 2443 of file pt-eval.cc.
References m_call_stack, and call_stack::push().
Referenced by nested_fcn_handle::call(), weak_nested_fcn_handle::call(), anonymous_fcn_handle::call(), and weak_anonymous_fcn_handle::call().
void tree_evaluator::push_stack_frame | ( | octave_function * | fcn | ) |
Definition at line 2466 of file pt-eval.cc.
References m_call_stack, and call_stack::push().
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 2454 of file pt-eval.cc.
References m_call_stack, and call_stack::push().
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 2448 of file pt-eval.cc.
References m_call_stack, and call_stack::push().
void tree_evaluator::push_stack_frame | ( | octave_user_script * | script | ) |
Definition at line 2461 of file pt-eval.cc.
References m_call_stack, and call_stack::push().
|
inline |
Definition at line 634 of file pt-eval.h.
Referenced by debugger::repl().
|
private |
Definition at line 5047 of file pt-eval.cc.
References m_breaking, m_continuing, and m_returning.
Referenced by execute_range_loop(), visit_complex_for_command(), visit_do_until_command(), visit_simple_for_command(), and visit_while_command().
symbol_info_list tree_evaluator::regexp_symbol_info | ( | const std::string & | pattern | ) | const |
Definition at line 4405 of file pt-eval.cc.
References m_call_stack, and call_stack::regexp_symbol_info().
void tree_evaluator::remove_autoload | ( | const std::string & | fcn, |
const std::string & | nm | ||
) |
Definition at line 4490 of file pt-eval.cc.
References check_autoload_file(), symbol_table::clear_dld_function(), interpreter::get_symbol_table(), m_autoload_map, and m_interpreter.
Referenced by Fautoload().
|
inline |
Definition at line 674 of file pt-eval.h.
Referenced by interpreter::remove_debug_watch_expression().
int tree_evaluator::repl | ( | void | ) |
Definition at line 730 of file pt-eval.cc.
References at_top_level(), dbstep_flag(), error_system::display_exception(), eval(), interpreter::get_error_system(), interpreter::interactive(), lexer, m_in_top_level_repl, m_interpreter, octave_stdout, interpreter::recover_from_exception(), reset_debug_state(), and error_system::save_exception().
Referenced by interpreter::main_loop().
void tree_evaluator::reset_debug_state | ( | bool | mode | ) |
Definition at line 1371 of file pt-eval.cc.
References m_debug_mode.
void tree_evaluator::reset_debug_state | ( | void | ) |
Definition at line 1362 of file pt-eval.cc.
References in_debug_repl(), m_bp_table, m_break_on_next_stmt, m_dbstep_flag, and m_debug_mode.
Referenced by octave::bp_table::add_breakpoints_in_function(), enter_debugger(), parse_and_execute(), interpreter::pause(), octave::bp_table::remove_all_breakpoints(), octave::bp_table::remove_all_breakpoints_from_function(), octave::bp_table::remove_breakpoints_from_function(), and repl().
void tree_evaluator::restore_frame | ( | std::size_t | n | ) |
Definition at line 2543 of file pt-eval.cc.
References m_call_stack, and call_stack::restore_frame().
Referenced by debugger::repl().
|
inline |
Definition at line 777 of file pt-eval.h.
Referenced by eval_string().
std::list< std::string > tree_evaluator::reverse_lookup_autoload | ( | const std::string & | nm | ) | const |
Definition at line 4471 of file pt-eval.cc.
References m_autoload_map.
int tree_evaluator::server_loop | ( | void | ) |
Definition at line 871 of file pt-eval.cc.
References error_system::display_exception(), interpreter::get_error_system(), interpreter::interactive(), m_exit_status, m_interpreter, m_parser, m_server_mode, octave_interrupt_state, octave_stdout, interpreter::recover_from_exception(), octave::release_unreferenced_dynamic_libraries(), error_system::save_exception(), and sleep().
Referenced by interpreter::server_loop().
|
inline |
Definition at line 183 of file pt-eval.h.
Referenced by debugger::server_loop().
void tree_evaluator::set_auto_fcn_var | ( | stack_frame::auto_var_type | avt, |
const octave_value & | val = octave_value () |
||
) |
Definition at line 2197 of file pt-eval.cc.
References m_call_stack, and call_stack::set_auto_fcn_var().
Referenced by bind_auto_fcn_vars(), Fwarning(), and interpreter::intern_nargin().
|
inline |
void tree_evaluator::set_dispatch_class | ( | const std::string & | class_name | ) |
Definition at line 2553 of file pt-eval.cc.
References m_call_stack, and call_stack::set_dispatch_class().
Referenced by class_simple_fcn_handle::call().
Definition at line 4646 of file pt-eval.cc.
References echo_this_file(), m_echo_file_name, m_echo_file_pos, and m_echo_state.
Referenced by maybe_set_echo_state(), and push_echo_state().
|
inline |
Definition at line 719 of file pt-eval.h.
Referenced by octave::tree_index_expression::evaluate_n(), and octave::tree_index_expression::lvalue().
|
inline |
Definition at line 709 of file pt-eval.h.
Referenced by octave::tree_index_expression::evaluate_n(), and octave::tree_index_expression::lvalue().
|
inline |
Definition at line 754 of file pt-eval.h.
Referenced by octave::tree_cell::evaluate(), octave::tree_simple_assignment::evaluate(), octave::tree_multi_assignment::evaluate_n(), and octave::tree_index_expression::evaluate_n().
|
inline |
Definition at line 160 of file pt-eval.h.
Referenced by debugger::repl().
octave_value tree_evaluator::silent_functions | ( | const octave_value_list & | args, |
int | nargout | ||
) |
Definition at line 4511 of file pt-eval.cc.
References m_silent_functions, and set_internal_variable().
|
inline |
Definition at line 597 of file pt-eval.h.
Referenced by Fsilent_functions().
void tree_evaluator::source_file | ( | const std::string & | file_name, |
const std::string & | context = "" , |
||
bool | verbose = false , |
||
bool | require_file = true |
||
) |
Definition at line 2045 of file pt-eval.cc.
References octave_function::call(), octave::sys::canonicalize_file_name(), call_stack::current_frame(), dir_sep_chars, octave::sys::file_ops::dir_sep_str(), error(), octave_user_code::fcn_file_name(), symbol_table::fcn_table_find(), interpreter::get_symbol_table(), call_stack::goto_base_frame(), call_stack::goto_caller_frame(), octave_value::is_undefined(), octave_value::is_user_code(), m_call_stack, m_interpreter, make_absolute(), max_recursion_depth(), octave_stdout, octave_value(), parse_fcn_file(), call_stack::restore_frame(), octave::sys::file_ops::tilde_expand(), and octave_value::user_code_value().
Referenced by interpreter::source_file().
bool tree_evaluator::statement_printing_enabled | ( | void | ) |
Definition at line 1355 of file pt-eval.cc.
References m_silent_functions, m_statement_context, SC_FUNCTION, and SC_SCRIPT.
Referenced by octave::tree_simple_assignment::evaluate(), octave::tree_multi_assignment::evaluate_n(), octave::tree_identifier::evaluate_n(), and visit_statement().
octave_value tree_evaluator::string_fill_char | ( | const octave_value_list & | args, |
int | nargout | ||
) |
Definition at line 4518 of file pt-eval.cc.
References m_string_fill_char, and set_internal_variable().
|
inline |
Definition at line 643 of file pt-eval.h.
Referenced by octave::tree_matrix::evaluate(), and Fstring_fill_char().
bool tree_evaluator::switch_case_label_matches | ( | tree_switch_case * | expr, |
const octave_value & | val | ||
) |
Definition at line 2412 of file pt-eval.cc.
References octave_value::cell_value(), Array< T, Alloc >::columns(), octave_value::is_defined(), octave_value::is_equal(), octave_value::iscell(), and Array< T, Alloc >::rows().
Referenced by visit_switch_command().
void tree_evaluator::top_level_assign | ( | const std::string & | name, |
const octave_value & | val = octave_value () |
||
) |
Definition at line 1993 of file pt-eval.cc.
References m_call_stack, name, and call_stack::set_top_level_value().
Referenced by interpreter::top_level_assign().
std::list< std::string > tree_evaluator::top_level_variable_names | ( | void | ) | const |
Definition at line 2849 of file pt-eval.cc.
References m_call_stack, and call_stack::top_level_variable_names().
Referenced by interpreter::top_level_variable_names().
octave_value tree_evaluator::top_level_varval | ( | const std::string & | name | ) | const |
Definition at line 1987 of file pt-eval.cc.
References call_stack::get_top_level_value(), m_call_stack, and name.
Referenced by interpreter::top_level_varval().
symbol_info_list tree_evaluator::top_scope_symbol_info | ( | void | ) | const |
Definition at line 4417 of file pt-eval.cc.
References m_call_stack, and call_stack::top_scope_symbol_info().
Referenced by load_save_system::dump_octave_core().
void tree_evaluator::undefine_parameter_list | ( | tree_parameter_list * | param_list | ) |
Definition at line 2240 of file pt-eval.cc.
References octave_value::op_asn_eq.
|
private |
Definition at line 4655 of file pt-eval.cc.
References m_echo_file_name, m_echo_file_pos, m_echo_state, and octave::state.
Referenced by push_echo_state_cleanup().
std::list< std::string > tree_evaluator::variable_names | ( | void | ) | const |
Definition at line 2854 of file pt-eval.cc.
References m_call_stack, and call_stack::variable_names().
Referenced by interpreter::variable_names().
octave_value tree_evaluator::varval | ( | const std::string & | name | ) | const |
Definition at line 1949 of file pt-eval.cc.
References call_stack::get_current_stack_frame(), m_call_stack, and name.
octave_value tree_evaluator::varval | ( | const symbol_record & | sym | ) | const |
Definition at line 1940 of file pt-eval.cc.
References call_stack::get_current_stack_frame(), and m_call_stack.
Referenced by bind_ans(), octave::tree_identifier::evaluate_n(), execute_user_function(), make_fcn_handle(), and interpreter::varval().
void tree_evaluator::visit_anon_fcn_handle | ( | tree_anon_fcn_handle & | ) |
Definition at line 1243 of file pt-eval.cc.
References panic_impossible.
void tree_evaluator::visit_arg_size_spec | ( | tree_arg_size_spec & | ) |
Definition at line 1279 of file pt-eval.cc.
References panic_impossible.
void tree_evaluator::visit_arg_validation | ( | tree_arg_validation & | ) |
Definition at line 1273 of file pt-eval.cc.
References panic_impossible.
void tree_evaluator::visit_arg_validation_fcns | ( | tree_arg_validation_fcns & | ) |
Definition at line 1285 of file pt-eval.cc.
References panic_impossible.
void tree_evaluator::visit_args_block_attribute_list | ( | tree_args_block_attribute_list & | ) |
Definition at line 1261 of file pt-eval.cc.
References panic_impossible.
void tree_evaluator::visit_args_block_validation_list | ( | tree_args_block_validation_list & | ) |
Definition at line 1267 of file pt-eval.cc.
References panic_impossible.
void tree_evaluator::visit_argument_list | ( | tree_argument_list & | ) |
Definition at line 1249 of file pt-eval.cc.
References panic_impossible.
void tree_evaluator::visit_arguments_block | ( | tree_arguments_block & | ) |
Definition at line 1255 of file pt-eval.cc.
References warning().
void tree_evaluator::visit_binary_expression | ( | tree_binary_expression & | ) |
Definition at line 1291 of file pt-eval.cc.
References panic_impossible.
void tree_evaluator::visit_boolean_expression | ( | tree_boolean_expression & | ) |
Definition at line 1297 of file pt-eval.cc.
References panic_impossible.
void tree_evaluator::visit_break_command | ( | tree_break_command & | cmd | ) |
Definition at line 1309 of file pt-eval.cc.
References do_breakpoint(), echo_code(), error(), m_breaking, m_debug_mode, m_echo_file_pos, m_echo_state, and m_in_loop_command.
void tree_evaluator::visit_cell | ( | tree_cell & | ) |
Definition at line 3649 of file pt-eval.cc.
References panic_impossible.
void tree_evaluator::visit_colon_expression | ( | tree_colon_expression & | ) |
Definition at line 1330 of file pt-eval.cc.
References panic_impossible.
void tree_evaluator::visit_complex_for_command | ( | tree_complex_for_command & | cmd | ) |
Definition at line 3242 of file pt-eval.cc.
References octave_map::contents(), do_breakpoint(), echo_code(), error(), octave_value::is_undefined(), octave_value::isstruct(), octave_map::keys(), m_debug_mode, m_echo_file_pos, m_echo_state, m_in_loop_command, octave_value::map_value(), Array< T, Alloc >::numel(), string_vector::numel(), octave_value(), octave_value::op_asn_eq, and quit_loop_now().
void tree_evaluator::visit_compound_binary_expression | ( | tree_compound_binary_expression & | ) |
Definition at line 1303 of file pt-eval.cc.
References panic_impossible.
void tree_evaluator::visit_constant | ( | tree_constant & | ) |
Definition at line 3677 of file pt-eval.cc.
References panic_impossible.
void tree_evaluator::visit_continue_command | ( | tree_continue_command & | cmd | ) |
Definition at line 1336 of file pt-eval.cc.
References do_breakpoint(), echo_code(), m_continuing, m_debug_mode, m_echo_file_pos, m_echo_state, and m_in_loop_command.
void tree_evaluator::visit_decl_command | ( | tree_decl_command & | cmd | ) |
Definition at line 2970 of file pt-eval.cc.
References do_breakpoint(), echo_code(), m_debug_mode, m_echo_file_pos, and m_echo_state.
void tree_evaluator::visit_decl_elt | ( | tree_decl_elt & | elt | ) |
Definition at line 2994 of file pt-eval.cc.
References error(), m_call_stack, call_stack::make_global(), call_stack::make_persistent(), Matrix, and octave_value::op_asn_eq.
void tree_evaluator::visit_do_until_command | ( | tree_do_until_command & | cmd | ) |
Definition at line 4205 of file pt-eval.cc.
References do_breakpoint(), echo_code(), is_logically_true(), m_debug_mode, m_echo_file_pos, m_echo_state, m_in_loop_command, panic_impossible, and quit_loop_now().
void tree_evaluator::visit_fcn_handle | ( | tree_fcn_handle & | ) |
Definition at line 3683 of file pt-eval.cc.
References panic_impossible.
void tree_evaluator::visit_function_def | ( | tree_function_def & | cmd | ) |
Definition at line 3556 of file pt-eval.cc.
References assign(), f, octave_value::function_value(), interpreter::get_symbol_table(), symbol_table::install_cmdline_function(), and m_interpreter.
void tree_evaluator::visit_identifier | ( | tree_identifier & | ) |
Definition at line 3578 of file pt-eval.cc.
References panic_impossible.
void tree_evaluator::visit_if_clause | ( | tree_if_clause & | ) |
Definition at line 3584 of file pt-eval.cc.
References panic_impossible.
void tree_evaluator::visit_if_command | ( | tree_if_command & | cmd | ) |
Definition at line 3590 of file pt-eval.cc.
References echo_code(), m_echo_file_pos, and m_echo_state.
void tree_evaluator::visit_if_command_list | ( | tree_if_command_list & | lst | ) |
Definition at line 3611 of file pt-eval.cc.
References call_stack::current_frame(), do_breakpoint(), in_debug_repl(), is_logically_true(), m_call_stack, m_debug_frame, m_debug_mode, and call_stack::set_location().
void tree_evaluator::visit_index_expression | ( | tree_index_expression & | ) |
Definition at line 3637 of file pt-eval.cc.
References panic_impossible.
void tree_evaluator::visit_matrix | ( | tree_matrix & | ) |
Definition at line 3643 of file pt-eval.cc.
References panic_impossible.
void tree_evaluator::visit_metaclass_query | ( | tree_metaclass_query & | ) |
Definition at line 4252 of file pt-eval.cc.
References panic_impossible.
void tree_evaluator::visit_multi_assignment | ( | tree_multi_assignment & | ) |
Definition at line 3655 of file pt-eval.cc.
References panic_impossible.
void tree_evaluator::visit_no_op_command | ( | tree_no_op_command & | cmd | ) |
Definition at line 3661 of file pt-eval.cc.
References do_breakpoint(), echo_code(), m_debug_mode, m_echo_file_pos, and m_echo_state.
void tree_evaluator::visit_octave_user_function | ( | octave_user_function & | ) |
Definition at line 3378 of file pt-eval.cc.
References panic_impossible.
void tree_evaluator::visit_octave_user_function_header | ( | octave_user_function & | ) |
Definition at line 3544 of file pt-eval.cc.
References panic_impossible.
void tree_evaluator::visit_octave_user_function_trailer | ( | octave_user_function & | ) |
Definition at line 3550 of file pt-eval.cc.
References panic_impossible.
void tree_evaluator::visit_octave_user_script | ( | octave_user_script & | ) |
Definition at line 3328 of file pt-eval.cc.
References panic_impossible.
void tree_evaluator::visit_parameter_list | ( | tree_parameter_list & | ) |
Definition at line 3689 of file pt-eval.cc.
References panic_impossible.
void tree_evaluator::visit_postfix_expression | ( | tree_postfix_expression & | ) |
Definition at line 3695 of file pt-eval.cc.
References panic_impossible.
void tree_evaluator::visit_prefix_expression | ( | tree_prefix_expression & | ) |
Definition at line 3701 of file pt-eval.cc.
References panic_impossible.
void tree_evaluator::visit_return_command | ( | tree_return_command & | cmd | ) |
Definition at line 3707 of file pt-eval.cc.
References call_stack::current_frame(), dbcont(), do_breakpoint(), echo_code(), in_debug_repl(), m_call_stack, m_debug_frame, m_debug_mode, m_echo_file_pos, m_echo_state, m_in_loop_command, m_returning, m_statement_context, SC_FUNCTION, and SC_SCRIPT.
void tree_evaluator::visit_simple_assignment | ( | tree_simple_assignment & | ) |
Definition at line 3732 of file pt-eval.cc.
References panic_impossible.
void tree_evaluator::visit_simple_for_command | ( | tree_simple_for_command & | cmd | ) |
Definition at line 3056 of file pt-eval.cc.
References octave_value::assign(), octave_value::dims(), do_breakpoint(), echo_code(), error(), execute_range_loop(), octave_value::index_op(), octave_value::is_double_type(), octave_value::is_int16_type(), octave_value::is_int32_type(), octave_value::is_int64_type(), octave_value::is_int8_type(), octave_value::is_matrix_type(), octave_value::is_range(), octave_value::is_scalar_type(), octave_value::is_single_type(), octave_value::is_string(), octave_value::is_uint16_type(), octave_value::is_uint32_type(), octave_value::is_uint64_type(), octave_value::is_uint8_type(), octave_value::is_undefined(), octave_value::iscell(), octave_value::isstruct(), m_debug_mode, m_echo_file_pos, m_echo_state, m_in_loop_command, octave_value::magic_colon_t, octave_value::ndims(), octave_value::op_asn_eq, quit_loop_now(), octave_value::range_value(), dim_vector::redim(), octave_value::reshape(), and octave_value_list::resize().
void tree_evaluator::visit_spmd_command | ( | tree_spmd_command & | cmd | ) |
Definition at line 3317 of file pt-eval.cc.
void tree_evaluator::visit_statement | ( | tree_statement & | stmt | ) |
Definition at line 3738 of file pt-eval.cc.
References bind_ans(), call_stack::current_frame(), error_system::debug_on_caught(), error_system::debug_on_error(), error_system::display_exception(), do_breakpoint(), echo_code(), enter_debugger(), error_with_id(), application::forced_interactive(), interpreter::get_error_system(), in_debug_repl(), in_user_code(), interpreter::interactive(), octave_value::is_defined(), is_variable(), error_system::last_error_id(), m_bp_table, m_call_stack, m_debug_frame, m_debug_mode, m_echo_file_pos, m_echo_state, m_interpreter, m_lvalue_list, interpreter::recover_from_exception(), error_system::save_exception(), call_stack::set_location(), and statement_printing_enabled().
void tree_evaluator::visit_statement_list | ( | tree_statement_list & | lst | ) |
Definition at line 3848 of file pt-eval.cc.
References error(), m_breaking, m_continuing, and m_returning.
void tree_evaluator::visit_superclass_ref | ( | tree_superclass_ref & | ) |
Definition at line 4246 of file pt-eval.cc.
References panic_impossible.
void tree_evaluator::visit_switch_case | ( | tree_switch_case & | ) |
Definition at line 3898 of file pt-eval.cc.
References panic_impossible.
void tree_evaluator::visit_switch_case_list | ( | tree_switch_case_list & | ) |
Definition at line 3904 of file pt-eval.cc.
References panic_impossible.
void tree_evaluator::visit_switch_command | ( | tree_switch_command & | cmd | ) |
Definition at line 3910 of file pt-eval.cc.
References do_breakpoint(), echo_code(), error(), m_debug_mode, m_echo_file_pos, m_echo_state, and switch_case_label_matches().
void tree_evaluator::visit_try_catch_command | ( | tree_try_catch_command & | cmd | ) |
Definition at line 3952 of file pt-eval.cc.
References octave_scalar_map::assign(), echo_code(), interpreter::get_error_system(), interpreter_try(), error_system::last_error_id(), error_system::last_error_message(), error_system::last_error_stack(), m_echo_file_pos, m_echo_state, m_interpreter, octave_value::op_asn_eq, interpreter::recover_from_exception(), and error_system::save_exception().
void tree_evaluator::visit_unwind_protect_command | ( | tree_unwind_protect_command & | cmd | ) |
Definition at line 4107 of file pt-eval.cc.
References do_unwind_protect_cleanup_code(), echo_code(), interpreter::get_error_system(), m_echo_file_pos, m_echo_state, m_interpreter, interpreter::recover_from_exception(), and error_system::save_exception().
void tree_evaluator::visit_while_command | ( | tree_while_command & | cmd | ) |
Definition at line 4162 of file pt-eval.cc.
References do_breakpoint(), echo_code(), is_logically_true(), m_debug_mode, m_echo_file_pos, m_echo_state, m_in_loop_command, panic_impossible, and quit_loop_now().
octave_value tree_evaluator::whos_line_format | ( | const octave_value_list & | args, |
int | nargout | ||
) |
Definition at line 4504 of file pt-eval.cc.
References m_whos_line_format, and set_internal_variable().
Referenced by call_stack::do_global_who_two(), call_stack::do_who_two(), and Fwhos_line_format().
|
inline |
|
inline |
|
private |
Definition at line 888 of file pt-eval.h.
Referenced by add_autoload(), autoloaded_functions(), get_autoload_map(), lookup_autoload(), remove_autoload(), and reverse_lookup_autoload().
|
private |
Definition at line 890 of file pt-eval.h.
Referenced by reset_debug_state(), and visit_statement().
|
private |
Definition at line 939 of file pt-eval.h.
Referenced by do_breakpoint(), and reset_debug_state().
|
private |
Definition at line 977 of file pt-eval.h.
Referenced by do_unwind_protect_cleanup_code(), eval(), execute_user_function(), execute_user_script(), quit_loop_now(), visit_break_command(), and visit_statement_list().
|
private |
Definition at line 892 of file pt-eval.h.
Referenced by assign(), assignin(), at_top_level(), backtrace(), backtrace_frames(), backtrace_info(), caller_function(), check_autoload_file(), clear_global_variable(), clear_global_variable_pattern(), clear_global_variable_regexp(), clear_global_variables(), clear_objects(), clear_variable(), clear_variable_pattern(), clear_variable_regexp(), clear_variables(), curr_fcn_unwind_protect_frame(), current_column(), current_function(), current_function_name(), current_line(), current_user_code(), dbupdown(), debug_user_code(), debug_user_code_column(), debug_user_code_line(), debug_where(), display_call_stack(), do_breakpoint(), do_unwind_protect_cleanup_code(), do_who(), echo_code(), empty_backtrace(), enter_debugger(), evalin(), evaluate_end_expression(), execute_user_function(), execute_user_script(), find(), get_auto_fcn_var(), get_current_scope(), get_dispatch_class(), get_symbol_info(), get_top_scope(), get_user_code(), glob_symbol_info(), global_assign(), global_variable_names(), global_varref(), global_varval(), goto_base_frame(), goto_caller_frame(), goto_frame(), in_user_code(), install_variable(), is_class_constructor_executing(), is_class_method_executing(), is_defined(), is_global(), is_local_variable(), is_logically_true(), is_variable(), make_fcn_handle(), max_stack_depth(), maybe_push_echo_state_cleanup(), maybe_set_echo_state(), mfilename(), mislocked(), mlock(), munlock(), pop_scope(), pop_stack_frame(), push_dummy_scope(), push_echo_state(), push_stack_frame(), regexp_symbol_info(), restore_frame(), set_auto_fcn_var(), set_dispatch_class(), source_file(), top_level_assign(), top_level_variable_names(), top_level_varval(), top_scope_symbol_info(), variable_names(), varval(), visit_decl_elt(), visit_if_command_list(), visit_return_command(), and visit_statement().
|
private |
Definition at line 980 of file pt-eval.h.
Referenced by quit_loop_now(), visit_continue_command(), and visit_statement_list().
|
private |
Definition at line 935 of file pt-eval.h.
Referenced by do_breakpoint(), and reset_debug_state().
|
private |
Definition at line 897 of file pt-eval.h.
Referenced by dbupdown(), do_breakpoint(), enter_debugger(), visit_if_command_list(), visit_return_command(), and visit_statement().
|
private |
Definition at line 899 of file pt-eval.h.
Referenced by reset_debug_state(), visit_break_command(), visit_complex_for_command(), visit_continue_command(), visit_decl_command(), visit_do_until_command(), visit_if_command_list(), visit_no_op_command(), visit_return_command(), visit_simple_for_command(), visit_statement(), visit_switch_command(), and visit_while_command().
|
private |
|
private |
Definition at line 908 of file pt-eval.h.
Referenced by dbcont(), dbquit(), enter_debugger(), and in_debug_repl().
|
private |
Definition at line 947 of file pt-eval.h.
Referenced by echo(), and echo_this_file().
|
private |
Definition at line 953 of file pt-eval.h.
Referenced by push_echo_state_cleanup(), set_echo_state(), and uwp_set_echo_state().
|
private |
Definition at line 963 of file pt-eval.h.
Referenced by echo_code(), execute_range_loop(), push_echo_state_cleanup(), set_echo_state(), uwp_set_echo_state(), visit_break_command(), visit_complex_for_command(), visit_continue_command(), visit_decl_command(), visit_do_until_command(), visit_if_command(), visit_no_op_command(), visit_return_command(), visit_simple_for_command(), visit_statement(), visit_switch_command(), visit_try_catch_command(), visit_unwind_protect_command(), and visit_while_command().
|
private |
Definition at line 965 of file pt-eval.h.
Referenced by echo(), and echo_this_file().
|
private |
Definition at line 951 of file pt-eval.h.
Referenced by execute_range_loop(), push_echo_state_cleanup(), set_echo_state(), uwp_set_echo_state(), visit_break_command(), visit_complex_for_command(), visit_continue_command(), visit_decl_command(), visit_do_until_command(), visit_if_command(), visit_no_op_command(), visit_return_command(), visit_simple_for_command(), visit_statement(), visit_switch_command(), visit_try_catch_command(), visit_unwind_protect_command(), and visit_while_command().
|
private |
Definition at line 912 of file pt-eval.h.
Referenced by parse_and_execute(), and server_loop().
|
private |
Definition at line 974 of file pt-eval.h.
Referenced by visit_break_command(), visit_complex_for_command(), visit_continue_command(), visit_do_until_command(), visit_return_command(), visit_simple_for_command(), and visit_while_command().
|
private |
Definition at line 968 of file pt-eval.h.
Referenced by parse_and_execute(), and repl().
|
private |
Definition at line 988 of file pt-eval.h.
Referenced by evaluate_end_expression().
|
private |
Definition at line 990 of file pt-eval.h.
Referenced by evaluate_end_expression(), and make_value_list().
|
private |
Definition at line 989 of file pt-eval.h.
Referenced by evaluate_end_expression().
|
private |
Definition at line 987 of file pt-eval.h.
Referenced by evaluate_end_expression().
|
private |
Definition at line 878 of file pt-eval.h.
Referenced by clear_all(), clear_symbol(), clear_symbol_pattern(), clear_symbol_regexp(), do_unwind_protect_cleanup_code(), enter_debugger(), eval(), eval_string(), evalin(), evaluate_end_expression(), final_index_error(), find(), get_line_and_eval(), get_user_code(), lookup_autoload(), make_fcn_handle(), parse_and_execute(), remove_autoload(), repl(), server_loop(), source_file(), visit_function_def(), visit_statement(), visit_try_catch_command(), and visit_unwind_protect_command().
|
private |
Definition at line 885 of file pt-eval.h.
Referenced by ignored_fcn_outputs(), make_value_list(), and visit_statement().
|
private |
Definition at line 916 of file pt-eval.h.
Referenced by execute_user_function(), execute_user_script(), and max_recursion_depth().
|
private |
Definition at line 991 of file pt-eval.h.
Referenced by evaluate_end_expression(), and make_value_list().
|
private |
Definition at line 880 of file pt-eval.h.
Referenced by get_line_and_eval(), parse_and_execute(), and server_loop().
|
private |
Definition at line 894 of file pt-eval.h.
Referenced by execute_user_function(), and execute_user_script().
|
private |
Definition at line 929 of file pt-eval.h.
Referenced by echo_code(), and PS4().
|
private |
Definition at line 983 of file pt-eval.h.
Referenced by do_unwind_protect_cleanup_code(), eval(), execute_user_function(), execute_user_script(), quit_loop_now(), visit_return_command(), and visit_statement_list().
|
private |
Definition at line 971 of file pt-eval.h.
Referenced by server_loop().
|
private |
Definition at line 923 of file pt-eval.h.
Referenced by silent_functions(), and statement_printing_enabled().
|
private |
Definition at line 883 of file pt-eval.h.
Referenced by execute_user_function(), execute_user_script(), statement_printing_enabled(), and visit_return_command().
|
private |
Definition at line 926 of file pt-eval.h.
Referenced by string_fill_char().
|
private |
Definition at line 919 of file pt-eval.h.
Referenced by whos_line_format().