#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 } |
Additional Inherited Members | |
Protected Member Functions inherited from tree_walker | |
tree_walker () | |
virtual | ~tree_walker ()=default |
typedef void(* tree_evaluator::decl_elt_init_fcn) (tree_decl_elt &) |
|
inline |
|
default |
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().
|
inline |
Definition at line 672 of file pt-eval.h.
Referenced by interpreter::add_debug_watch_expression().
|
inline |
Definition at line 739 of file pt-eval.h.
Referenced by tree_index_expression::evaluate_n(), and tree_index_expression::lvalue().
void tree_evaluator::assign | ( | const std::string & | name, |
const octave_value & | val = octave_value () |
||
) |
Definition at line 1997 of file pt-eval.cc.
References call_stack::get_current_stack_frame().
Referenced by interpreter::assign(), assignin(), bind_ans(), 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 2006 of file pt-eval.cc.
References assign(), call_stack::current_frame(), error(), call_stack::goto_base_frame(), call_stack::goto_caller_frame(), iskeyword(), call_stack::restore_frame(), and octave::valid_identifier().
Referenced by interpreter::assignin().
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().
std::list< std::string > tree_evaluator::autoloaded_functions | ( | ) | const |
Definition at line 4670 of file pt-eval.cc.
Referenced by interpreter::autoloaded_functions().
octave_map tree_evaluator::backtrace | ( | ) | const |
Definition at line 2653 of file pt-eval.cc.
References call_stack::backtrace().
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().
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().
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().
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().
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().
std::string tree_evaluator::backtrace_message | ( | ) | const |
Definition at line 2665 of file pt-eval.cc.
References line::line(), and backtrace_info().
void tree_evaluator::bind_ans | ( | const octave_value & | val, |
bool | |||
) |
Definition at line 4464 of file pt-eval.cc.
References assign(), interpreter::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 eval_string(), and visit_statement().
|
inline |
Definition at line 804 of file pt-eval.h.
Referenced by interpreter::pause().
|
inline |
|
inline |
Definition at line 766 of file pt-eval.h.
Referenced by eval_string().
|
inline |
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().
void tree_evaluator::clear_all | ( | bool | force = false | ) |
Definition at line 2871 of file pt-eval.cc.
References symbol_table::clear_functions(), clear_global_variables(), clear_variables(), and interpreter::get_symbol_table().
Referenced by interpreter::clear_all().
|
inline |
Definition at line 686 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 2847 of file pt-eval.cc.
References call_stack::clear_global_variable().
Referenced by interpreter::clear_global_variable().
void tree_evaluator::clear_global_variable_pattern | ( | const std::string & | pattern | ) |
Definition at line 2853 of file pt-eval.cc.
References call_stack::clear_global_variable_pattern().
Referenced by interpreter::clear_global_variable_pattern().
void tree_evaluator::clear_global_variable_regexp | ( | const std::string & | pattern | ) |
Definition at line 2859 of file pt-eval.cc.
References call_stack::clear_global_variable_regexp().
Referenced by interpreter::clear_global_variable_regexp().
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().
|
inline |
Definition at line 733 of file pt-eval.h.
Referenced by tree_index_expression::evaluate_n(), and tree_index_expression::lvalue().
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().
void tree_evaluator::clear_symbol | ( | const std::string & | name | ) |
Definition at line 2884 of file pt-eval.cc.
References symbol_table::clear_function(), clear_variable(), and interpreter::get_symbol_table().
Referenced by interpreter::clear_symbol().
void tree_evaluator::clear_symbol_pattern | ( | const std::string & | pattern | ) |
Definition at line 2896 of file pt-eval.cc.
References symbol_table::clear_function_pattern(), clear_variable_pattern(), and interpreter::get_symbol_table().
Referenced by interpreter::clear_symbol_pattern().
void tree_evaluator::clear_symbol_regexp | ( | const std::string & | pattern | ) |
Definition at line 2908 of file pt-eval.cc.
References symbol_table::clear_function_regexp(), clear_variable_regexp(), and interpreter::get_symbol_table().
Referenced by interpreter::clear_symbol_regexp().
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().
void tree_evaluator::clear_variable_pattern | ( | const std::string & | pattern | ) |
Definition at line 2820 of file pt-eval.cc.
References call_stack::get_current_stack_frame().
Referenced by clear_symbol_pattern(), and interpreter::clear_variable_pattern().
void tree_evaluator::clear_variable_regexp | ( | const std::string & | pattern | ) |
Definition at line 2829 of file pt-eval.cc.
References call_stack::get_current_stack_frame().
Referenced by clear_symbol_regexp(), and interpreter::clear_variable_regexp().
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().
|
inline |
Definition at line 775 of file pt-eval.h.
Referenced by eval_string().
|
inline |
octave_value_list tree_evaluator::convert_return_list_to_const_vector | ( | tree_parameter_list * | ret_list, |
int | nargout, | ||
const Cell & | varargout | ||
) |
Definition at line 2357 of file pt-eval.cc.
References evaluate(), is_defined(), len, base_list< elt_type >::length(), and Array< T, Alloc >::numel().
octave_value_list tree_evaluator::convert_to_const_vector | ( | tree_argument_list * | arg_list | ) |
Definition at line 2328 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 tree_cell::evaluate(), and tree_index_expression::evaluate_n().
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().
|
inline |
int tree_evaluator::current_column | ( | ) | const |
Definition at line 2517 of file pt-eval.cc.
References call_stack::current_column().
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().
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().
int tree_evaluator::current_line | ( | ) | const |
Definition at line 2511 of file pt-eval.cc.
References call_stack::current_line().
octave_user_code * tree_evaluator::current_user_code | ( | ) | const |
Definition at line 2543 of file pt-eval.cc.
References call_stack::current_user_code().
|
inline |
void tree_evaluator::dbcont | ( | ) |
Definition at line 5065 of file pt-eval.cc.
Referenced by interpreter::resume(), and visit_return_command().
void tree_evaluator::dbquit | ( | bool | all = false | ) |
Definition at line 5072 of file pt-eval.cc.
Referenced by interpreter::stop().
|
inline |
void tree_evaluator::dbupdown | ( | int | n, |
bool | verbose = false |
||
) |
Definition at line 1449 of file pt-eval.cc.
References call_stack::dbupdown(), and n.
|
inline |
octave_user_code * tree_evaluator::debug_user_code | ( | ) | const |
Definition at line 2555 of file pt-eval.cc.
References call_stack::debug_user_code().
int tree_evaluator::debug_user_code_column | ( | ) | const |
Definition at line 2529 of file pt-eval.cc.
References call_stack::debug_user_code_column().
int tree_evaluator::debug_user_code_line | ( | ) | const |
Definition at line 2523 of file pt-eval.cc.
References call_stack::debug_user_code_line().
|
inline |
Definition at line 693 of file pt-eval.h.
Referenced by interpreter::debug_watch_expressions().
void tree_evaluator::debug_where | ( | std::ostream & | os | ) | const |
Definition at line 2535 of file pt-eval.cc.
References call_stack::current_user_frame().
void tree_evaluator::define_parameter_list_from_arg_vector | ( | tree_parameter_list * | param_list, |
const octave_value_list & | args | ||
) |
Definition at line 2219 of file pt-eval.cc.
References octave_lvalue::define(), error(), eval_decl_elt(), is_defined(), octave_value_list::length(), and tree_parameter_list::varargs_only().
void tree_evaluator::display_call_stack | ( | ) | const |
Definition at line 2771 of file pt-eval.cc.
References call_stack::display().
void tree_evaluator::do_unwind_protect_cleanup_code | ( | tree_statement_list * | list | ) |
Definition at line 4230 of file pt-eval.cc.
References tree_statement_list::accept(), action_container::add(), call_stack::current_column(), call_stack::current_line(), action_container::discard(), interpreter::get_error_system(), octave_interrupt_state, action_container::protect_var(), interpreter::recover_from_exception(), action_container::run(), 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 4770 of file pt-eval.cc.
References call_stack::do_who().
|
inline |
Definition at line 823 of file pt-eval.h.
Referenced by execute_user_script().
octave_value tree_evaluator::echo | ( | const octave_value_list & | args, |
int | nargout | ||
) |
Definition at line 4930 of file pt-eval.cc.
References ECHO_FUNCTIONS, ECHO_OFF, ECHO_SCRIPTS, fcn_file_in_path(), octave_value_list::length(), and octave_value_list::make_argv().
Referenced by octave::Fecho().
|
inline |
octave_map tree_evaluator::empty_backtrace | ( | ) | const |
Definition at line 2659 of file pt-eval.cc.
References call_stack::empty_backtrace().
void tree_evaluator::enter_debugger | ( | const std::string & | prompt = "debug> " | ) |
Definition at line 1393 of file pt-eval.cc.
References action_container::add(), call_stack::current_frame(), call_stack::dbupdown(), error_system::debug_on_error(), error_system::debug_on_warning(), interpreter::get_error_system(), command_history::ignore_entries(), command_history::ignoring_entries(), reset_debug_state(), call_stack::restore_frame(), error_system::set_debug_on_error(), and error_system::set_debug_on_warning().
Referenced by keyboard(), and visit_statement().
octave_value_list tree_evaluator::eval | ( | const std::string & | try_code, |
const std::string & | catch_code, | ||
int | nargout | ||
) |
Definition at line 1128 of file pt-eval.cc.
References eval_string(), interpreter::get_error_system(), 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 1119 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 989 of file pt-eval.cc.
References octave_completion_matches_called, and interpreter::recover_from_exception().
Referenced by interpreter::eval(), and repl().
bool tree_evaluator::eval_decl_elt | ( | tree_decl_elt * | elt | ) |
Definition at line 2412 of file pt-eval.cc.
References octave_lvalue::assign(), tree_expression::evaluate(), tree_decl_elt::expression(), tree_decl_elt::ident(), 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 1109 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 1095 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 1022 of file pt-eval.cc.
References base_parser::at_end_of_input(), bind_ans(), breaking(), continuing(), base_parser::disallow_command_syntax(), octave_value_list::empty(), error(), tree_expression::evaluate_n(), tree_statement::expression(), tree_expression::is_assignment_expression(), tree_statement::is_expression(), tree_expression::is_identifier(), is_variable(), tree_expression::print_result(), base_parser::reset(), returning(), parser::run(), tree_expression::set_print_flag(), and base_parser::statement_list().
Referenced by eval(), eval_string(), interpreter::eval_string(), evalin(), and 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 1198 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(), 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 1176 of file pt-eval.cc.
References call_stack::current_frame(), error(), eval_string(), call_stack::goto_base_frame(), call_stack::goto_caller_frame(), and call_stack::restore_frame().
Referenced by interpreter::evalin().
octave_value tree_evaluator::evaluate | ( | tree_decl_elt * | elt | ) |
Definition at line 1850 of file pt-eval.cc.
References tree_identifier::evaluate(), tree_decl_elt::ident(), octave_value(), and octave_value::storable_value().
Referenced by convert_return_list_to_const_vector().
octave_value tree_evaluator::evaluate_anon_fcn_handle | ( | tree_anon_fcn_handle & | afh | ) |
Definition at line 3351 of file pt-eval.cc.
References symbol_scope::cache_dir_name(), symbol_scope::cache_fcn_file_name(), call_stack::current_function(), octave_function::dir_name(), octave_function::dispatch_class(), symbol_scope::dup(), tree_parameter_list::dup(), tree_expression::dup(), tree_anon_fcn_handle::expression(), octave_function::fcn_file_name(), tree_anon_scopes::free_variables(), get_current_scope(), call_stack::get_current_stack_frame(), symbol_scope::invalid(), octave_function::is_class_constructor(), octave_function::is_class_method(), octave_value::is_defined(), octave_function::is_nested_function(), octave_function::is_parent_function(), octave_user_function::mark_as_anonymous_function(), octave_user_function::mark_as_nested_function(), symbol_scope::nesting_depth(), tree_anon_fcn_handle::parameter_list(), tree_anon_fcn_handle::scope(), symbol_scope::set_nesting_depth(), symbol_scope::set_parent(), symbol_scope::set_primary_parent(), octave_function::stash_dir_name(), octave_function::stash_dispatch_class(), and octave_user_code::stash_fcn_file_name().
Referenced by tree_anon_fcn_handle::evaluate().
octave_value_list tree_evaluator::evaluate_end_expression | ( | const octave_value_list & | args | ) |
Definition at line 5079 of file pt-eval.cc.
References octave_value::class_name(), call_stack::current_frame(), octave_value::end_index(), 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(), n, num_indices(), octave_value(), ovl(), print_usage(), call_stack::restore_frame(), and octave_value::subsref().
Referenced by octave::Fend().
octave_value_list tree_evaluator::execute_builtin_function | ( | octave_builtin & | builtin_function, |
int | nargout, | ||
const octave_value_list & | args | ||
) |
Definition at line 3445 of file pt-eval.cc.
References octave_value_list::clear(), error(), octave_builtin::function(), octave_value_list::has_magic_colon(), octave_value::is_undefined(), octave_value_list::length(), octave_value_list::make_storable_values(), octave_builtin::method(), and octave_value_list::xelem().
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().
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.
octave_value_list tree_evaluator::execute_user_script | ( | octave_user_script & | user_script, |
int | nargout, | ||
const octave_value_list & | args | ||
) |
Definition at line 3517 of file pt-eval.cc.
References tree_statement_list::accept(), octave_user_code::body(), echo(), ECHO_SCRIPTS, error(), octave_user_code::fcn_file_name(), octave_value_list::length(), 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 4739 of file pt-eval.cc.
References index_exception::err_id(), error_with_id(), symbol_table::find_function(), octave_value::function_value(), interpreter::get_symbol_table(), octave_value::is_function(), is_variable(), octave_function::name(), tree_expression::name(), and index_exception::set_var().
Referenced by tree_index_expression::evaluate_n().
octave_value tree_evaluator::find | ( | const std::string & | name | ) |
Definition at line 2777 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(), and ovl().
Referenced by interpreter::find().
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().
octave_map tree_evaluator::get_autoload_map | ( | ) | const |
|
inline |
Definition at line 422 of file pt-eval.h.
Referenced by __get_bp_table__().
symbol_scope tree_evaluator::get_current_scope | ( | ) | const |
Definition at line 2714 of file pt-eval.cc.
References call_stack::current_scope().
Referenced by symbol_table::current_scope(), evaluate_anon_fcn_handle(), and interpreter::get_current_scope().
|
inline |
Definition at line 443 of file pt-eval.h.
Referenced by tree_identifier::lvalue(), and tree_black_hole::lvalue().
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().
|
inline |
Definition at line 420 of file pt-eval.h.
Referenced by bp_table::condition_valid(), bp_table::dbclear_all_signals(), bp_table::dbstop_process_map_args(), call_stack::do_who(), tree_binary_expression::evaluate(), tree_compound_binary_expression::evaluate(), tree_prefix_expression::evaluate(), tree_postfix_expression::evaluate(), tree_simple_assignment::evaluate(), tree_multi_assignment::evaluate_n(), tree_identifier::evaluate_n(), tree_index_expression::evaluate_n(), tree::meets_bp_condition(), bp_table::remove_all_breakpoints_from_function(), bp_table::remove_breakpoints_from_function(), and bp_table::stop_on_err_warn_status().
void tree_evaluator::get_line_and_eval | ( | ) |
Definition at line 645 of file pt-eval.cc.
References command_editor::decode_prompt_string(), interpreter::get_event_manager(), interpreter::PS1(), and interpreter::PS2().
Referenced by interpreter::get_line_and_eval().
|
inline |
|
inline |
Definition at line 424 of file pt-eval.h.
Referenced by tree_binary_expression::evaluate(), tree_prefix_expression::evaluate(), tree_postfix_expression::evaluate(), and interpreter::get_profiler().
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().
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().
octave_user_code * tree_evaluator::get_user_code | ( | const std::string & | fname = "" | ) |
Definition at line 2942 of file pt-eval.cc.
References call_stack::debug_user_code(), dir_sep_char(), cdef_manager::find_class(), symbol_table::find_function(), symbol_table::find_method(), cdef_class::find_method(), octave_user_code::find_subfunction(), interpreter::get_cdef_manager(), cdef_method::get_function(), cdef_class::get_name(), interpreter::get_symbol_table(), octave_value::is_defined(), octave_value::is_undefined(), octave_value::is_user_code(), cdef_object::ok(), and octave_value::user_code_value().
Referenced by bp_table::add_breakpoints_in_function(), bp_table::get_breakpoint_list(), bp_table::parse_dbfunction_params(), bp_table::remove_all_breakpoints_from_function(), and bp_table::remove_breakpoints_from_function().
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().
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().
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().
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().
octave_value tree_evaluator::global_varval | ( | const std::string & | name | ) | const |
Definition at line 1965 of file pt-eval.cc.
References call_stack::global_varval().
Referenced by interpreter::global_varval(), and stack_frame::install_variable().
void tree_evaluator::goto_base_frame | ( | ) |
Definition at line 2585 of file pt-eval.cc.
References call_stack::goto_base_frame().
void tree_evaluator::goto_caller_frame | ( | ) |
Definition at line 2579 of file pt-eval.cc.
References call_stack::goto_caller_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.
Matrix tree_evaluator::ignored_fcn_outputs | ( | ) | const |
Definition at line 1455 of file pt-eval.cc.
References Matrix::resize().
bool tree_evaluator::in_debug_repl | ( | ) | const |
Definition at line 5058 of file pt-eval.cc.
Referenced by bp_table::parse_dbfunction_params(), reset_debug_state(), interpreter::resume(), interpreter::stop(), visit_if_command_list(), visit_return_command(), and visit_statement().
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().
|
inline |
Definition at line 721 of file pt-eval.h.
Referenced by tree_index_expression::evaluate_n(), and tree_index_expression::lvalue().
|
inline |
Definition at line 750 of file pt-eval.h.
Referenced by evaluate_end_expression().
|
inline |
Definition at line 745 of file pt-eval.h.
Referenced by tree_index_expression::evaluate_n(), and tree_index_expression::lvalue().
|
inline |
Definition at line 711 of file pt-eval.h.
Referenced by tree_index_expression::evaluate_n(), and tree_index_expression::lvalue().
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().
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().
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().
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().
bool tree_evaluator::is_defined | ( | const tree_expression * | expr | ) | const |
Definition at line 1895 of file pt-eval.cc.
References tree_expression::is_identifier(), and tree_identifier::symbol().
Referenced by convert_return_list_to_const_vector(), and define_parameter_list_from_arg_vector().
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().
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().
bool tree_evaluator::is_variable | ( | const std::string & | name | ) | const |
Definition at line 1860 of file pt-eval.cc.
References call_stack::get_current_stack_frame().
Referenced by eval_string(), 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 1909 of file pt-eval.cc.
References call_stack::get_current_stack_frame().
bool tree_evaluator::is_variable | ( | const tree_expression * | expr | ) | const |
Definition at line 1878 of file pt-eval.cc.
References tree_identifier::is_black_hole(), tree_expression::is_identifier(), is_variable(), and tree_identifier::symbol().
void tree_evaluator::keyboard | ( | const std::string & | prompt = "keyboard> " | ) |
Definition at line 1443 of file pt-eval.cc.
References enter_debugger().
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().
|
inline |
Definition at line 756 of file pt-eval.h.
Referenced by tree_cell::evaluate(), tree_matrix::evaluate(), tree_simple_assignment::evaluate(), tree_multi_assignment::evaluate_n(), and tree_index_expression::evaluate_n().
octave_value tree_evaluator::make_fcn_handle | ( | const std::string & | nm | ) |
Definition at line 1603 of file pt-eval.cc.
Referenced by tree_fcn_handle::evaluate(), octave::Fstr2func(), and interpreter::make_function_handle().
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().
octave_value_list tree_evaluator::make_value_list | ( | tree_argument_list * | args, |
const string_vector & | arg_nm | ||
) |
Definition at line 4777 of file pt-eval.cc.
References octave_value::is_cs_list(), octave_value::is_defined(), len, octave_value_list::length(), base_list< elt_type >::length(), octave_value::list_value(), n, and octave_value_list::stash_name_tags().
Referenced by tree_index_expression::evaluate_n(), and tree_index_expression::lvalue().
|
inline |
Definition at line 590 of file pt-eval.h.
Referenced by octave::Fmax_recursion_depth().
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().
|
inline |
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().
std::string tree_evaluator::mfilename | ( | const std::string & | opt = "" | ) | const |
Definition at line 544 of file pt-eval.cc.
References call_stack::current_user_code(), dir_sep_char(), octave_user_code::fcn_file_name(), and octave_function::name().
Referenced by interpreter::mfilename().
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().
void tree_evaluator::mlock | ( | bool | skip_first = false | ) | const |
Definition at line 2720 of file pt-eval.cc.
References call_stack::current_function(), error(), octave_base_value::is_builtin_function(), octave_function::lock(), and warning().
Referenced by interpreter::mlock().
void tree_evaluator::munlock | ( | bool | skip_first = false | ) | const |
Definition at line 2737 of file pt-eval.cc.
References call_stack::current_function(), error(), octave_base_value::is_builtin_function(), octave_function::unlock(), and warning().
Referenced by interpreter::munlock().
|
inline |
Definition at line 752 of file pt-eval.h.
Referenced by evaluate_end_expression().
void tree_evaluator::parse_and_execute | ( | const std::string & | input, |
bool & | incomplete_parse | ||
) |
Definition at line 580 of file pt-eval.cc.
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().
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().
void tree_evaluator::pop_stack_frame | ( | ) |
Definition at line 2499 of file pt-eval.cc.
References call_stack::pop().
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().
|
inline |
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().
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().
void tree_evaluator::push_stack_frame | ( | const symbol_scope & | scope | ) |
Definition at line 2466 of file pt-eval.cc.
References call_stack::push().
void tree_evaluator::push_stack_frame | ( | octave_function * | fcn | ) |
Definition at line 2493 of file pt-eval.cc.
References 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 2479 of file pt-eval.cc.
References 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 2472 of file pt-eval.cc.
References call_stack::push().
void tree_evaluator::push_stack_frame | ( | octave_user_script * | script | ) |
Definition at line 2487 of file pt-eval.cc.
References call_stack::push().
|
inline |
|
inline |
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().
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().
|
inline |
Definition at line 679 of file pt-eval.h.
Referenced by interpreter::remove_debug_watch_expression().
int tree_evaluator::repl | ( | ) |
Definition at line 738 of file pt-eval.cc.
References at_top_level(), dbstep_flag(), error_system::display_exception(), eval(), interpreter::get_error_system(), command_editor::increment_current_command_number(), interpreter::interactive(), octave_stdout, interpreter::recover_from_exception(), reset_debug_state(), and error_system::save_exception().
void tree_evaluator::reset_debug_state | ( | ) |
Definition at line 1378 of file pt-eval.cc.
References bp_table::have_breakpoints(), and in_debug_repl().
Referenced by bp_table::add_breakpoints_in_function(), enter_debugger(), interpreter::pause(), bp_table::remove_all_breakpoints(), bp_table::remove_all_breakpoints_from_function(), bp_table::remove_breakpoints_from_function(), and repl().
void tree_evaluator::reset_debug_state | ( | bool | mode | ) |
Definition at line 1387 of file pt-eval.cc.
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().
|
inline |
Definition at line 784 of file pt-eval.h.
Referenced by eval_string().
|
inline |
std::list< std::string > tree_evaluator::reverse_lookup_autoload | ( | const std::string & | nm | ) | const |
Definition at line 4681 of file pt-eval.cc.
int tree_evaluator::server_loop | ( | ) |
Definition at line 880 of file pt-eval.cc.
References error_system::display_exception(), interpreter::get_error_system(), interpreter::interactive(), octave_interrupt_state, octave_stdout, interpreter::recover_from_exception(), release_unreferenced_dynamic_libraries(), command_editor::run_event_hooks(), error_system::save_exception(), and sleep().
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().
|
inline |
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().
|
inline |
Definition at line 726 of file pt-eval.h.
Referenced by tree_index_expression::evaluate_n(), and tree_index_expression::lvalue().
|
inline |
Definition at line 716 of file pt-eval.h.
Referenced by tree_index_expression::evaluate_n(), and tree_index_expression::lvalue().
|
inline |
Definition at line 761 of file pt-eval.h.
Referenced by tree_cell::evaluate(), tree_matrix::evaluate(), tree_simple_assignment::evaluate(), tree_multi_assignment::evaluate_n(), and tree_index_expression::evaluate_n().
void tree_evaluator::set_nargin | ( | int | nargin | ) |
Definition at line 2201 of file pt-eval.cc.
References call_stack::set_nargin().
void tree_evaluator::set_nargout | ( | int | nargout | ) |
Definition at line 2207 of file pt-eval.cc.
References call_stack::set_nargout().
|
inline |
|
inline |
Definition at line 709 of file pt-eval.h.
Referenced by interpreter::set_PS4().
|
inline |
Definition at line 602 of file pt-eval.h.
Referenced by octave::Fsilent_functions().
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().
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().
bool tree_evaluator::statement_printing_enabled | ( | ) |
Definition at line 1371 of file pt-eval.cc.
References SC_FUNCTION, and SC_SCRIPT.
Referenced by tree_simple_assignment::evaluate(), tree_multi_assignment::evaluate_n(), tree_identifier::evaluate_n(), and visit_statement().
|
inline |
Definition at line 648 of file pt-eval.h.
Referenced by tree_matrix::evaluate(), and octave::Fstring_fill_char().
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().
bool tree_evaluator::switch_case_label_matches | ( | tree_switch_case * | expr, |
const octave_value & | val | ||
) |
Definition at line 2434 of file pt-eval.cc.
References tree_switch_case::case_label(), octave_value::cell_value(), Array< T, Alloc >::columns(), tree_expression::evaluate(), 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 1990 of file pt-eval.cc.
References call_stack::set_top_level_value().
Referenced by interpreter::top_level_assign().
std::list< std::string > tree_evaluator::top_level_variable_names | ( | ) | const |
Definition at line 2926 of file pt-eval.cc.
References 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 1984 of file pt-eval.cc.
References call_stack::get_top_level_value().
Referenced by interpreter::top_level_varval().
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().
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.
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().
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().
octave_value tree_evaluator::varval | ( | const symbol_record & | sym | ) | const |
Definition at line 1936 of file pt-eval.cc.
References call_stack::get_current_stack_frame().
Referenced by bind_ans(), tree_identifier::evaluate_n(), and interpreter::varval().
|
virtual |
Reimplemented from tree_walker.
Definition at line 1259 of file pt-eval.cc.
References panic_impossible.
|
virtual |
Reimplemented from tree_walker.
Definition at line 1295 of file pt-eval.cc.
References panic_impossible.
|
virtual |
Reimplemented from tree_walker.
Definition at line 1289 of file pt-eval.cc.
References panic_impossible.
|
virtual |
Reimplemented from tree_walker.
Definition at line 1301 of file pt-eval.cc.
References panic_impossible.
|
virtual |
Reimplemented from tree_walker.
Definition at line 1277 of file pt-eval.cc.
References panic_impossible.
|
virtual |
Reimplemented from tree_walker.
Definition at line 1283 of file pt-eval.cc.
References panic_impossible.
|
virtual |
Reimplemented from tree_walker.
Definition at line 1265 of file pt-eval.cc.
References panic_impossible.
|
virtual |
|
virtual |
Reimplemented from tree_walker.
Definition at line 1307 of file pt-eval.cc.
References panic_impossible.
|
virtual |
Reimplemented from tree_walker.
Definition at line 1313 of file pt-eval.cc.
References panic_impossible.
|
virtual |
Reimplemented from tree_walker.
Definition at line 1325 of file pt-eval.cc.
References error(), tree::is_active_breakpoint(), and tree::line().
|
virtual |
Reimplemented from tree_walker.
Definition at line 3855 of file pt-eval.cc.
References panic_impossible.
|
virtual |
Reimplemented from tree_walker.
Definition at line 1346 of file pt-eval.cc.
References panic_impossible.
|
virtual |
Reimplemented from tree_walker.
Definition at line 3264 of file pt-eval.cc.
References tree_statement_list::accept(), octave_lvalue::assign(), base_list< elt_type >::begin(), tree_complex_for_command::body(), octave_map::contents(), tree_complex_for_command::control_expr(), error(), tree_expression::evaluate(), tree::is_active_breakpoint(), octave_value::is_undefined(), octave_value::isstruct(), octave_map::keys(), tree_complex_for_command::left_hand_side(), tree::line(), tree_expression::lvalue(), octave_value::map_value(), n, Array< T, Alloc >::numel(), string_vector::numel(), octave_value(), and octave_value::op_asn_eq.
|
virtual |
Reimplemented from tree_walker.
Definition at line 1319 of file pt-eval.cc.
References panic_impossible.
|
virtual |
Reimplemented from tree_walker.
Definition at line 3883 of file pt-eval.cc.
References panic_impossible.
|
virtual |
Reimplemented from tree_walker.
Definition at line 1352 of file pt-eval.cc.
References tree::is_active_breakpoint(), and tree::line().
|
virtual |
Reimplemented from tree_walker.
Definition at line 3048 of file pt-eval.cc.
References tree_decl_init_list::accept(), tree_decl_command::initializer_list(), tree::is_active_breakpoint(), and tree::line().
|
virtual |
Reimplemented from tree_walker.
Definition at line 3072 of file pt-eval.cc.
References octave_lvalue::assign(), error(), tree_expression::evaluate(), tree_decl_elt::expression(), tree_decl_elt::ident(), tree_decl_elt::is_global(), tree_decl_elt::is_persistent(), octave_lvalue::is_undefined(), call_stack::make_global(), call_stack::make_persistent(), octave_value::op_asn_eq, and tree_identifier::symbol().
|
virtual |
Reimplemented from tree_walker.
Definition at line 4411 of file pt-eval.cc.
References tree_statement_list::accept(), tree_while_command::body(), tree_while_command::condition(), tree::is_active_breakpoint(), tree::line(), and panic_impossible.
|
virtual |
Reimplemented from tree_walker.
Definition at line 3889 of file pt-eval.cc.
References panic_impossible.
|
virtual |
Reimplemented from tree_walker.
Definition at line 3762 of file pt-eval.cc.
References assign(), f, tree_function_def::function(), octave_value::function_value(), interpreter::get_symbol_table(), and symbol_table::install_cmdline_function().
|
virtual |
Reimplemented from tree_walker.
Definition at line 3784 of file pt-eval.cc.
References panic_impossible.
|
virtual |
Reimplemented from tree_walker.
Definition at line 3790 of file pt-eval.cc.
References panic_impossible.
|
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().
|
virtual |
Reimplemented from tree_walker.
Definition at line 3817 of file pt-eval.cc.
References tree_statement_list::accept(), call_stack::current_frame(), in_debug_repl(), and call_stack::set_location().
|
virtual |
Reimplemented from tree_walker.
Definition at line 3843 of file pt-eval.cc.
References panic_impossible.
|
virtual |
Reimplemented from tree_walker.
Definition at line 3849 of file pt-eval.cc.
References panic_impossible.
|
virtual |
Reimplemented from tree_walker.
Definition at line 4458 of file pt-eval.cc.
References panic_impossible.
|
virtual |
Reimplemented from tree_walker.
Definition at line 3861 of file pt-eval.cc.
References panic_impossible.
|
virtual |
Reimplemented from tree_walker.
Definition at line 3867 of file pt-eval.cc.
References tree::is_active_breakpoint(), tree_no_op_command::is_end_of_fcn_or_script(), and tree::line().
|
virtual |
Reimplemented from tree_walker.
Definition at line 3743 of file pt-eval.cc.
References panic_impossible.
void tree_evaluator::visit_octave_user_function_header | ( | octave_user_function & | ) |
Definition at line 3750 of file pt-eval.cc.
References panic_impossible.
void tree_evaluator::visit_octave_user_function_trailer | ( | octave_user_function & | ) |
Definition at line 3756 of file pt-eval.cc.
References panic_impossible.
|
virtual |
Reimplemented from tree_walker.
Definition at line 3560 of file pt-eval.cc.
References panic_impossible.
|
virtual |
Reimplemented from tree_walker.
Definition at line 3895 of file pt-eval.cc.
References panic_impossible.
|
virtual |
Reimplemented from tree_walker.
Definition at line 3901 of file pt-eval.cc.
References panic_impossible.
|
virtual |
Reimplemented from tree_walker.
Definition at line 3907 of file pt-eval.cc.
References panic_impossible.
|
virtual |
Reimplemented from tree_walker.
Definition at line 3913 of file pt-eval.cc.
References call_stack::current_frame(), dbcont(), in_debug_repl(), tree::is_active_breakpoint(), tree::line(), SC_FUNCTION, and SC_SCRIPT.
|
virtual |
Reimplemented from tree_walker.
Definition at line 3938 of file pt-eval.cc.
References panic_impossible.
|
virtual |
Reimplemented from tree_walker.
Definition at line 3134 of file pt-eval.cc.
References tree_statement_list::accept(), octave_lvalue::assign(), tree_simple_for_command::body(), tree::column(), tree_simple_for_command::control_expr(), octave_value::dims(), error(), tree_expression::evaluate(), octave_value::index_op(), tree::is_active_breakpoint(), octave_value::is_double_type(), octave_value::is_matrix_type(), octave_value::is_range(), octave_value::is_scalar_type(), octave_value::is_string(), octave_value::is_undefined(), octave_value::iscell(), octave_value::isstruct(), tree_simple_for_command::left_hand_side(), tree::line(), tree_expression::lvalue(), octave_value::magic_colon_t, octave_value::ndims(), octave_value::op_asn_eq, octave_value::range_value(), dim_vector::redim(), octave_value::reshape(), and octave_value_list::resize().
|
virtual |
Reimplemented from tree_walker.
Definition at line 3340 of file pt-eval.cc.
References tree_statement_list::accept(), and tree_spmd_command::body().
|
virtual |
Reimplemented from tree_walker.
Definition at line 3944 of file pt-eval.cc.
References tree::accept(), bind_ans(), tree_statement::column(), tree_statement::command(), call_stack::current_frame(), error_system::debug_on_caught(), bp_table::debug_on_caught(), bp_table::debug_on_err(), error_system::debug_on_error(), error_system::display_exception(), enter_debugger(), error_with_id(), tree_expression::evaluate(), tree_statement::expression(), application::forced_interactive(), interpreter::get_error_system(), in_debug_repl(), in_user_code(), interpreter::interactive(), tree::is_active_breakpoint(), tree_expression::is_assignment_expression(), octave_value::is_defined(), tree_expression::is_identifier(), is_variable(), error_system::last_error_id(), tree_statement::line(), tree_expression::print_result(), interpreter::recover_from_exception(), error_system::save_exception(), call_stack::set_location(), and statement_printing_enabled().
|
virtual |
Reimplemented from tree_walker.
Definition at line 4054 of file pt-eval.cc.
References tree_statement::accept(), base_list< elt_type >::begin(), base_list< elt_type >::end(), and error().
|
virtual |
Reimplemented from tree_walker.
Definition at line 4452 of file pt-eval.cc.
References panic_impossible.
|
virtual |
Reimplemented from tree_walker.
Definition at line 4104 of file pt-eval.cc.
References panic_impossible.
|
virtual |
Reimplemented from tree_walker.
Definition at line 4110 of file pt-eval.cc.
References panic_impossible.
|
virtual |
Reimplemented from tree_walker.
Definition at line 4116 of file pt-eval.cc.
References tree_statement_list::accept(), tree_switch_command::case_list(), tree::column(), error(), tree_expression::evaluate(), tree::is_active_breakpoint(), tree::line(), switch_case_label_matches(), and tree_switch_command::switch_value().
|
virtual |
Reimplemented from tree_walker.
Definition at line 4158 of file pt-eval.cc.
References tree_statement_list::accept(), octave_scalar_map::assign(), octave_lvalue::assign(), tree_try_catch_command::body(), tree_try_catch_command::cleanup(), interpreter::get_error_system(), tree_try_catch_command::identifier(), interpreter_try(), error_system::last_error_id(), error_system::last_error_message(), error_system::last_error_stack(), tree::line(), tree_identifier::lvalue(), octave_value::op_asn_eq, interpreter::recover_from_exception(), and error_system::save_exception().
|
virtual |
Reimplemented from tree_walker.
Definition at line 4313 of file pt-eval.cc.
References tree_statement_list::accept(), tree_unwind_protect_command::body(), tree_unwind_protect_command::cleanup(), do_unwind_protect_cleanup_code(), interpreter::get_error_system(), tree::line(), interpreter::recover_from_exception(), and error_system::save_exception().
|
virtual |
Reimplemented from tree_walker.
Definition at line 4368 of file pt-eval.cc.
References tree_statement_list::accept(), tree_while_command::body(), tree_while_command::condition(), tree::is_active_breakpoint(), tree::line(), and panic_impossible.
|
inline |
octave_value tree_evaluator::whos_line_format | ( | const octave_value_list & | args, |
int | nargout | ||
) |
Definition at line 4714 of file pt-eval.cc.
References octave::set_internal_variable().
Referenced by call_stack::do_global_who_two(), call_stack::do_who_two(), and octave::Fwhos_line_format().
|
inline |