#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 4785 of file pt-eval.cc.
Referenced by Fautoload().
|
inline |
Definition at line 684 of file pt-eval.h.
Referenced by interpreter::add_debug_watch_expression().
|
inline |
Definition at line 751 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 2024 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 2033 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 valid_identifier().
Referenced by interpreter::assignin().
| bool tree_evaluator::at_top_level | ( | ) | const |
Definition at line 550 of file pt-eval.cc.
References call_stack::at_top_level().
Referenced by interpreter::at_top_level(), parse_and_execute(), repl(), and event_manager::set_workspace().
| std::list< std::string > tree_evaluator::autoloaded_functions | ( | ) | const |
Definition at line 4762 of file pt-eval.cc.
Referenced by interpreter::autoloaded_functions().
| octave_map tree_evaluator::backtrace | ( | ) | const |
Definition at line 2710 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 2703 of file pt-eval.cc.
References call_stack::backtrace().
Referenced by Flasterror().
| std::list< std::shared_ptr< stack_frame > > tree_evaluator::backtrace_frames | ( | ) | const |
Definition at line 2684 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 2678 of file pt-eval.cc.
References call_stack::backtrace_frames().
| std::list< frame_info > tree_evaluator::backtrace_info | ( | ) | const |
Definition at line 2697 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 2690 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 2722 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 4556 of file pt-eval.cc.
References assign(), bind_ans(), 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 bind_ans(), eval_string(), and visit_statement().
|
inline |
Definition at line 816 of file pt-eval.h.
Referenced by interpreter::pause().
|
inline |
Definition at line 778 of file pt-eval.h.
Referenced by eval_string().
| octave_function * tree_evaluator::caller_function | ( | ) | const |
Definition at line 2624 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 2928 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 698 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 2904 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 2910 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 2916 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 2922 of file pt-eval.cc.
References call_stack::clear_global_variables().
Referenced by clear_all(), and interpreter::clear_global_variables().
|
inline |
Definition at line 745 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 2859 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 2941 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 2953 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 2965 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 2868 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 2877 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 2886 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 2895 of file pt-eval.cc.
References call_stack::get_current_stack_frame().
Referenced by clear_all(), and interpreter::clear_variables().
|
inline |
Definition at line 787 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 Cell & | varargout | ||
| ) |
Definition at line 2392 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 2363 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 2606 of file pt-eval.cc.
References call_stack::curr_fcn_unwind_protect_frame().
|
inline |
| int tree_evaluator::current_column | ( | ) | const |
Definition at line 2552 of file pt-eval.cc.
References call_stack::current_column().
| octave_function * tree_evaluator::current_function | ( | bool | skip_first = false | ) | const |
Definition at line 2618 of file pt-eval.cc.
References call_stack::current_function().
Referenced by get_class_context(), get_current_shlib(), make_fcn_handle(), and print_usage().
| std::string tree_evaluator::current_function_name | ( | bool | skip_first = false | ) | const |
Definition at line 3125 of file pt-eval.cc.
References call_stack::current_function(), and octave_function::name().
| int tree_evaluator::current_line | ( | ) | const |
Definition at line 2546 of file pt-eval.cc.
References call_stack::current_line().
| octave_user_code * tree_evaluator::current_user_code | ( | ) | const |
Definition at line 2600 of file pt-eval.cc.
References call_stack::current_user_code().
|
inline |
| void tree_evaluator::dbcont | ( | ) |
Definition at line 5157 of file pt-eval.cc.
Referenced by interpreter::resume(), and visit_return_command().
| void tree_evaluator::dbquit | ( | bool | all = false | ) |
Definition at line 5164 of file pt-eval.cc.
Referenced by interpreter::stop().
|
inline |
Definition at line 805 of file pt-eval.h.
Referenced by enter_debugger(), parse_and_execute(), and repl().
Definition at line 1469 of file pt-eval.cc.
References call_stack::dbupdown().
|
inline |
Definition at line 637 of file pt-eval.h.
Referenced by enter_debugger().
|
inline |
| void tree_evaluator::debug_list | ( | std::ostream & | os, |
| int | num_lines | ||
| ) | const |
Definition at line 2578 of file pt-eval.cc.
References call_stack::current_user_frame(), and error().
Definition at line 2589 of file pt-eval.cc.
References call_stack::current_user_frame(), and error().
| octave_user_code * tree_evaluator::debug_user_code | ( | ) | const |
Definition at line 2612 of file pt-eval.cc.
References call_stack::debug_user_code().
| int tree_evaluator::debug_user_code_column | ( | ) | const |
Definition at line 2564 of file pt-eval.cc.
References call_stack::debug_user_code_column().
| int tree_evaluator::debug_user_code_line | ( | ) | const |
Definition at line 2558 of file pt-eval.cc.
References call_stack::debug_user_code_line().
|
inline |
Definition at line 705 of file pt-eval.h.
Referenced by interpreter::debug_watch_expressions().
| void tree_evaluator::debug_where | ( | std::ostream & | os | ) | const |
Definition at line 2570 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 2253 of file pt-eval.cc.
References octave_lvalue::define(), error(), eval_decl_elt(), octave_value_list::length(), and tree_parameter_list::varargs_only().
Referenced by execute_user_function().
| void tree_evaluator::display_call_stack | ( | ) | const |
Definition at line 2828 of file pt-eval.cc.
References call_stack::display().
| void tree_evaluator::do_unwind_protect_cleanup_code | ( | tree_statement_list * | list | ) |
Definition at line 4322 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 4862 of file pt-eval.cc.
References call_stack::do_who().
|
inline |
Definition at line 835 of file pt-eval.h.
Referenced by execute_user_function(), and execute_user_script().
| octave_value tree_evaluator::echo | ( | const octave_value_list & | args, |
| int | nargout | ||
| ) |
Definition at line 5022 of file pt-eval.cc.
References ECHO_ALL, ECHO_FUNCTIONS, ECHO_OFF, ECHO_SCRIPTS, error(), fcn_file_in_path(), octave_value_list::length(), octave_value_list::make_argv(), and print_usage().
Referenced by interpreter::interpreter(), and Fecho().
|
inline |
| octave_map tree_evaluator::empty_backtrace | ( | ) | const |
Definition at line 2716 of file pt-eval.cc.
References call_stack::empty_backtrace().
Referenced by Flasterror().
| void tree_evaluator::enter_debugger | ( | const std::string & | prompt = "debug> " | ) |
Definition at line 1405 of file pt-eval.cc.
References action_container::add(), call_stack::current_frame(), dbstep_flag(), call_stack::dbupdown(), debug_frame(), error_system::debug_on_error(), error_system::debug_on_warning(), interpreter::get_error_system(), interpreter::get_evaluator(), 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(), 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 1140 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 1131 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 1001 of file pt-eval.cc.
References octave_completion_matches_called, and interpreter::recover_from_exception().
Referenced by interpreter::eval(), interpreter::eval(), parse_and_execute(), and repl().
| bool tree_evaluator::eval_decl_elt | ( | tree_decl_elt * | elt | ) |
Definition at line 2447 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 1121 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 1107 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 1034 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(), interpreter::eval_string(), eval_string(), interpreter::eval_string(), eval_string(), interpreter::eval_string(), evalin(), 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 1210 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 1188 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(), and interpreter::evalin().
| octave_value tree_evaluator::evaluate | ( | tree_decl_elt * | elt | ) |
Definition at line 1877 of file pt-eval.cc.
References tree_identifier::evaluate(), tree_decl_elt::ident(), 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 3445 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 5171 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(), num_indices(), ovl(), print_usage(), call_stack::restore_frame(), and octave_value::subsref().
Referenced by Fend().
| octave_value_list tree_evaluator::execute_builtin_function | ( | octave_builtin & | builtin_function, |
| int | nargout, | ||
| const octave_value_list & | args | ||
| ) |
Definition at line 3537 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 3587 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 3659 of file pt-eval.cc.
References tree_statement_list::accept(), octave_user_function::all_va_args(), octave_user_code::body(), tree_statement::column(), convert_return_list_to_const_vector(), define_parameter_list_from_arg_vector(), octave_function::dispatch_class(), echo(), ECHO_FUNCTIONS, error(), error_with_id(), tree_expression::evaluate_n(), tree_statement::expression(), octave_user_code::fcn_file_name(), ignored_fcn_outputs(), octave_user_function::is_anonymous_function(), octave_user_function::is_classdef_constructor(), octave_value::is_defined(), octave_user_function::is_special_expr(), octave_value_list::length(), tree_statement::line(), octave_function::name(), octave_value_list::name_tags(), panic_if, octave_user_function::parameter_list(), action_container::protect_var(), push_echo_state(), octave_user_function::restore_warning_states(), octave_user_function::return_list(), SC_FUNCTION, call_stack::set_location(), call_stack::size(), octave_value_list::slice(), octave_user_function::takes_varargs(), tree_parameter_list::takes_varargs(), 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 3609 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 4831 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 2834 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 2247 of file pt-eval.cc.
References call_stack::get_auto_fcn_var().
Referenced by F__varval__(), Fisargout(), Fnargin(), Fnargout(), and Fwarning().
| octave_map tree_evaluator::get_autoload_map | ( | ) | const |
Definition at line 4722 of file pt-eval.cc.
References octave_map::assign().
Referenced by Fautoload().
|
inline |
Definition at line 430 of file pt-eval.h.
Referenced by __get_bp_table__(), and error_system::vwarning().
| symbol_scope tree_evaluator::get_current_scope | ( | ) | const |
Definition at line 2771 of file pt-eval.cc.
References call_stack::current_scope().
Referenced by symbol_table::current_scope(), evaluate_anon_fcn_handle(), interpreter::get_current_scope(), and make_fcn_handle().
|
inline |
Definition at line 451 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 2654 of file pt-eval.cc.
References call_stack::get_dispatch_class().
Referenced by get_class_context().
|
inline |
|
inline |
Definition at line 428 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 657 of file pt-eval.cc.
References command_editor::decode_prompt_string(), error_system::display_exception(), interpreter::get_error_system(), interpreter::get_event_manager(), interpreter::interactive(), interpreter::parse_and_execute(), event_manager::post_event(), interpreter::PS1(), interpreter::PS2(), interpreter::recover_from_exception(), and error_system::save_exception().
Referenced by interpreter::get_line_and_eval().
|
inline |
|
inline |
Definition at line 432 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 4710 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 2765 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 2999 of file pt-eval.cc.
References call_stack::debug_user_code(), cdef_manager::find_class(), symbol_table::find_function(), symbol_table::find_method(), cdef_class::find_method(), cdef_class::find_property(), octave_user_code::find_subfunction(), cdef_object::get(), interpreter::get_cdef_manager(), cdef_method::get_function(), cdef_class::get_name(), cdef_method::get_name(), cdef_property::get_name(), interpreter::get_symbol_table(), octave_value::is_defined(), octave_value::is_function_handle(), octave_value::is_undefined(), octave_value::is_user_code(), cdef_object::ok(), octave_value::user_code_value(), octave_user_function::user_code_value(), and octave_value::user_function_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 4698 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 2004 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 2977 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 1998 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 1992 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 2642 of file pt-eval.cc.
References call_stack::goto_base_frame().
| void tree_evaluator::goto_caller_frame | ( | ) |
Definition at line 2636 of file pt-eval.cc.
References call_stack::goto_caller_frame().
Definition at line 2630 of file pt-eval.cc.
References call_stack::goto_frame().
| Matrix tree_evaluator::ignored_fcn_outputs | ( | ) | const |
Definition at line 1482 of file pt-eval.cc.
References Matrix::resize().
Referenced by execute_user_function().
| bool tree_evaluator::in_debug_repl | ( | ) | const |
Definition at line 5150 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 3136 of file pt-eval.cc.
References call_stack::current_user_code().
Referenced by visit_statement(), and error_system::vwarning().
|
inline |
Definition at line 733 of file pt-eval.h.
Referenced by tree_index_expression::evaluate_n(), and tree_index_expression::lvalue().
|
inline |
Definition at line 762 of file pt-eval.h.
Referenced by evaluate_end_expression().
|
inline |
Definition at line 757 of file pt-eval.h.
Referenced by tree_index_expression::evaluate_n(), and tree_index_expression::lvalue().
|
inline |
Definition at line 723 of file pt-eval.h.
Referenced by tree_index_expression::evaluate_n(), and tree_index_expression::lvalue().
Definition at line 1474 of file pt-eval.cc.
References call_stack::current_user_frame().
Referenced by interpreter::inputname().
| void tree_evaluator::install_variable | ( | const std::string & | name, |
| const octave_value & | value, | ||
| bool | global | ||
| ) |
Definition at line 1981 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 2672 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 2666 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 1945 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 1922 of file pt-eval.cc.
References is_defined(), tree_expression::is_identifier(), and tree_identifier::symbol().
Referenced by convert_return_list_to_const_vector(), is_defined(), and make_fcn_handle().
| bool tree_evaluator::is_global | ( | const std::string & | name | ) | const |
Definition at line 1954 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 1896 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 1887 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 1936 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 1905 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 = "debug> " | ) |
Definition at line 1463 of file pt-eval.cc.
References enter_debugger().
| std::string tree_evaluator::lookup_autoload | ( | const std::string & | nm | ) | const |
Definition at line 4745 of file pt-eval.cc.
References load_path::find_file(), and interpreter::get_load_path().
|
inline |
Definition at line 768 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 1630 of file pt-eval.cc.
References octave_classdef::class_name(), octave_classdef::classdef_object_value(), current_function(), octave_function::dispatch_class(), symbol_table::find_method(), cdef_class::find_method(), symbol_table::find_scoped_function(), symbol_table::find_user_function(), octave_value::function_value(), cdef_object::get_class(), get_current_scope(), call_stack::get_current_stack_frame(), cdef_method::get_function(), octave_classdef::get_object(), interpreter::get_symbol_table(), octave_function::is_class_constructor(), octave_function::is_class_method(), octave_value::is_defined(), is_defined(), octave_function::is_nested_function(), octave_function::is_private_function(), cdef_method::is_static(), octave_function::is_subfunction(), octave_function::name(), cdef_object::ok(), octave_function::parent_fcn_name(), octave_function::parent_fcn_names(), and varval().
Referenced by tree_fcn_handle::evaluate(), Fstr2func(), and interpreter::make_function_handle().
| std::list< octave_lvalue > tree_evaluator::make_lvalue_list | ( | tree_argument_list * | lhs | ) |
Definition at line 4924 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 4869 of file pt-eval.cc.
References octave_value::is_cs_list(), octave_value::is_defined(), len, octave_value_list::length(), octave_value::list_value(), and octave_value_list::stash_name_tags().
Referenced by tree_index_expression::evaluate_n(), and tree_index_expression::lvalue().
|
inline |
Definition at line 602 of file pt-eval.h.
Referenced by Fmax_recursion_depth(), and source_file().
| octave_value tree_evaluator::max_recursion_depth | ( | const octave_value_list & | args, |
| int | nargout | ||
| ) |
Definition at line 4690 of file pt-eval.cc.
References set_internal_variable().
| octave_value tree_evaluator::max_stack_depth | ( | const octave_value_list & | args, |
| int | nargout | ||
| ) |
Definition at line 2822 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 556 of file pt-eval.cc.
References call_stack::current_user_code(), octave_user_code::fcn_file_name(), and octave_function::name().
Referenced by interpreter::mfilename().
Definition at line 2811 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 2777 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 2794 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 764 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 592 of file pt-eval.cc.
References command_history::add(), event_manager::append_history(), at_top_level(), dbstep_flag(), eval(), interpreter::get_event_manager(), command_editor::increment_current_command_number(), interpreter::interactive(), event_manager::pre_input_event(), reset_debug_state(), event_manager::set_workspace(), and Vlast_prompt_time.
Referenced by interpreter::parse_and_execute().
| std::shared_ptr< stack_frame > tree_evaluator::pop_return_stack_frame | ( | ) |
Definition at line 2540 of file pt-eval.cc.
References call_stack::pop_return().
| void tree_evaluator::pop_scope | ( | ) |
Definition at line 2759 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 2534 of file pt-eval.cc.
References call_stack::pop().
| octave_value tree_evaluator::PS4 | ( | const octave_value_list & | args, |
| int | nargout | ||
| ) |
Definition at line 5268 of file pt-eval.cc.
References set_internal_variable().
Referenced by interpreter::PS4(), interpreter::PS4(), and interpreter::PS4().
|
inline |
| void tree_evaluator::push_dummy_scope | ( | const std::string & | name | ) |
Definition at line 2751 of file pt-eval.cc.
References call_stack::push().
Referenced by cdef_class::make_meta_class().
Definition at line 4935 of file pt-eval.cc.
References call_stack::curr_fcn_unwind_protect_frame().
Referenced by execute_user_function(), and execute_user_script().
| void tree_evaluator::push_stack_frame | ( | const symbol_scope & | scope | ) |
Definition at line 2501 of file pt-eval.cc.
References call_stack::push().
| void tree_evaluator::push_stack_frame | ( | octave_function * | fcn | ) |
Definition at line 2528 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 2514 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 2507 of file pt-eval.cc.
References call_stack::push().
| void tree_evaluator::push_stack_frame | ( | octave_user_script * | script | ) |
Definition at line 2522 of file pt-eval.cc.
References call_stack::push().
|
inline |
| symbol_info_list tree_evaluator::regexp_symbol_info | ( | const std::string & | pattern | ) | const |
Definition at line 4704 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 4792 of file pt-eval.cc.
References symbol_table::clear_dld_function(), and interpreter::get_symbol_table().
Referenced by Fautoload().
|
inline |
Definition at line 691 of file pt-eval.h.
Referenced by interpreter::remove_debug_watch_expression().
| int tree_evaluator::repl | ( | ) |
Definition at line 750 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 1390 of file pt-eval.cc.
References bp_table::have_breakpoints(), and in_debug_repl().
Referenced by bp_table::add_breakpoints_in_function(), enter_debugger(), parse_and_execute(), 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 1399 of file pt-eval.cc.
| void tree_evaluator::restore_frame | ( | std::size_t | n | ) |
Definition at line 2648 of file pt-eval.cc.
References call_stack::restore_frame().
|
inline |
Definition at line 796 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 4773 of file pt-eval.cc.
| int tree_evaluator::server_loop | ( | ) |
Definition at line 892 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 2228 of file pt-eval.cc.
References call_stack::set_auto_fcn_var().
Referenced by Fwarning(), and interpreter::intern_nargin().
|
inline |
| void tree_evaluator::set_dispatch_class | ( | const std::string & | class_name | ) |
Definition at line 2660 of file pt-eval.cc.
References call_stack::set_dispatch_class().
|
inline |
Definition at line 738 of file pt-eval.h.
Referenced by tree_index_expression::evaluate_n(), and tree_index_expression::lvalue().
|
inline |
Definition at line 728 of file pt-eval.h.
Referenced by tree_index_expression::evaluate_n(), and tree_index_expression::lvalue().
|
inline |
Definition at line 773 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 2235 of file pt-eval.cc.
References call_stack::set_nargin().
| void tree_evaluator::set_nargout | ( | int | nargout | ) |
Definition at line 2241 of file pt-eval.cc.
References call_stack::set_nargout().
|
inline |
|
inline |
Definition at line 721 of file pt-eval.h.
Referenced by interpreter::set_PS4().
|
inline |
Definition at line 614 of file pt-eval.h.
Referenced by Fsilent_functions().
| octave_value tree_evaluator::silent_functions | ( | const octave_value_list & | args, |
| int | nargout | ||
| ) |
Definition at line 4813 of file pt-eval.cc.
References 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 2069 of file pt-eval.cc.
References action_container::add(), octave_function::call(), call_stack::current_frame(), 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(), max_recursion_depth(), octave_stdout, parse_fcn_file(), action_container::protect_var(), call_stack::restore_frame(), and octave_value::user_code_value().
Referenced by interpreter::source_file().
| bool tree_evaluator::statement_printing_enabled | ( | ) |
Definition at line 1383 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 660 of file pt-eval.h.
Referenced by tree_matrix::evaluate(), and Fstring_fill_char().
| octave_value tree_evaluator::string_fill_char | ( | const octave_value_list & | args, |
| int | nargout | ||
| ) |
Definition at line 4820 of file pt-eval.cc.
References set_internal_variable().
| bool tree_evaluator::switch_case_label_matches | ( | tree_switch_case * | expr, |
| const octave_value & | val | ||
| ) |
Definition at line 2469 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 2017 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 2983 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 2011 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 4716 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 2283 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 2989 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 1972 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 1963 of file pt-eval.cc.
References call_stack::get_current_stack_frame().
Referenced by bind_ans(), tree_identifier::evaluate_n(), execute_user_function(), make_fcn_handle(), and interpreter::varval().
|
virtual |
Reimplemented from tree_walker.
Definition at line 1271 of file pt-eval.cc.
|
virtual |
Reimplemented from tree_walker.
Definition at line 1307 of file pt-eval.cc.
|
virtual |
Reimplemented from tree_walker.
Definition at line 1301 of file pt-eval.cc.
|
virtual |
Reimplemented from tree_walker.
Definition at line 1313 of file pt-eval.cc.
|
virtual |
Reimplemented from tree_walker.
Definition at line 1289 of file pt-eval.cc.
|
virtual |
Reimplemented from tree_walker.
Definition at line 1295 of file pt-eval.cc.
|
virtual |
Reimplemented from tree_walker.
Definition at line 1277 of file pt-eval.cc.
|
virtual |
|
virtual |
Reimplemented from tree_walker.
Definition at line 1319 of file pt-eval.cc.
|
virtual |
Reimplemented from tree_walker.
Definition at line 1325 of file pt-eval.cc.
|
virtual |
Reimplemented from tree_walker.
Definition at line 1337 of file pt-eval.cc.
References error(), tree::is_active_breakpoint(), and tree::line().
|
virtual |
Reimplemented from tree_walker.
Definition at line 3947 of file pt-eval.cc.
|
virtual |
Reimplemented from tree_walker.
Definition at line 1358 of file pt-eval.cc.
|
virtual |
Reimplemented from tree_walker.
Definition at line 3358 of file pt-eval.cc.
References tree_statement_list::accept(), octave_lvalue::assign(), 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(), Array< T, Alloc >::numel(), string_vector::numel(), and octave_value::op_asn_eq.
|
virtual |
Reimplemented from tree_walker.
Definition at line 1331 of file pt-eval.cc.
|
virtual |
Reimplemented from tree_walker.
Definition at line 3975 of file pt-eval.cc.
|
virtual |
Reimplemented from tree_walker.
Definition at line 1364 of file pt-eval.cc.
References tree::is_active_breakpoint(), and tree::line().
|
virtual |
Reimplemented from tree_walker.
Definition at line 3142 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 3166 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 4503 of file pt-eval.cc.
References tree_statement_list::accept(), tree_do_until_command::body(), tree_do_until_command::condition(), error(), tree::is_active_breakpoint(), and tree::line().
|
virtual |
Reimplemented from tree_walker.
Definition at line 3981 of file pt-eval.cc.
|
virtual |
Reimplemented from tree_walker.
Definition at line 3854 of file pt-eval.cc.
References assign(), f, tree_function_def::function(), octave_value::function_value(), interpreter::get_symbol_table(), symbol_table::install_cmdline_function(), and octave_function::name().
|
virtual |
Reimplemented from tree_walker.
Definition at line 3876 of file pt-eval.cc.
|
virtual |
Reimplemented from tree_walker.
Definition at line 3882 of file pt-eval.cc.
|
virtual |
Reimplemented from tree_walker.
Definition at line 3888 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 3909 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 3935 of file pt-eval.cc.
|
virtual |
Reimplemented from tree_walker.
Definition at line 3941 of file pt-eval.cc.
|
virtual |
Reimplemented from tree_walker.
Definition at line 4550 of file pt-eval.cc.
|
virtual |
Reimplemented from tree_walker.
Definition at line 3953 of file pt-eval.cc.
|
virtual |
Reimplemented from tree_walker.
Definition at line 3959 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 3835 of file pt-eval.cc.
| void tree_evaluator::visit_octave_user_function_header | ( | octave_user_function & | ) |
Definition at line 3842 of file pt-eval.cc.
| void tree_evaluator::visit_octave_user_function_trailer | ( | octave_user_function & | ) |
Definition at line 3848 of file pt-eval.cc.
|
virtual |
Reimplemented from tree_walker.
Definition at line 3652 of file pt-eval.cc.
|
virtual |
Reimplemented from tree_walker.
Definition at line 3987 of file pt-eval.cc.
|
virtual |
Reimplemented from tree_walker.
Definition at line 3993 of file pt-eval.cc.
|
virtual |
Reimplemented from tree_walker.
Definition at line 3999 of file pt-eval.cc.
|
virtual |
Reimplemented from tree_walker.
Definition at line 4005 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 4030 of file pt-eval.cc.
|
virtual |
Reimplemented from tree_walker.
Definition at line 3228 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 3434 of file pt-eval.cc.
References tree_statement_list::accept(), and tree_spmd_command::body().
|
virtual |
Reimplemented from tree_walker.
Definition at line 4036 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 4146 of file pt-eval.cc.
References tree_statement::accept(), and error().
|
virtual |
Reimplemented from tree_walker.
Definition at line 4544 of file pt-eval.cc.
|
virtual |
Reimplemented from tree_walker.
Definition at line 4196 of file pt-eval.cc.
|
virtual |
Reimplemented from tree_walker.
Definition at line 4202 of file pt-eval.cc.
|
virtual |
Reimplemented from tree_walker.
Definition at line 4208 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 4250 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 4405 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 4460 of file pt-eval.cc.
References tree_statement_list::accept(), tree_while_command::body(), tree_while_command::condition(), error(), tree::is_active_breakpoint(), and tree::line().
|
inline |
| octave_value tree_evaluator::whos_line_format | ( | const octave_value_list & | args, |
| int | nargout | ||
| ) |
Definition at line 4806 of file pt-eval.cc.
References set_internal_variable().
Referenced by call_stack::do_global_who_two(), call_stack::do_who_two(), and Fwhos_line_format().
|
inline |