#include "interpreter.h"
Public Member Functions | |
interpreter (application *app_context=nullptr) | |
~interpreter () | |
void | add_atexit_fcn (const std::string &fname) |
void | add_debug_watch_expression (const std::string &expr) |
void | assign (const std::string &name, const octave_value &val=octave_value()) |
void | assignin (const std::string &context, const std::string &varname, const octave_value &val=octave_value()) |
bool | at_top_level () const |
std::list< std::string > | autoloaded_functions () const |
void | cancel_quit (bool flag) |
int | chdir (const std::string &dir) |
void | cleanup_tmp_files () |
void | clear_all (bool force=false) |
void | clear_debug_watch_expressions () |
void | clear_function (const std::string &name) |
void | clear_function_pattern (const std::string &pat) |
void | clear_function_regexp (const std::string &pat) |
void | clear_functions (bool force=false) |
void | clear_global_variable (const std::string &name) |
void | clear_global_variable_pattern (const std::string &pattern) |
void | clear_global_variable_regexp (const std::string &pattern) |
void | clear_global_variables () |
void | clear_objects () |
void | clear_symbol (const std::string &name) |
void | clear_symbol_pattern (const std::string &pat) |
void | clear_symbol_regexp (const std::string &pat) |
void | clear_variable (const std::string &name) |
void | clear_variable_pattern (const std::string &pattern) |
void | clear_variable_regexp (const std::string &pattern) |
void | clear_variables () |
std::set< std::string > | debug_watch_expressions () const |
octave_value_list | eval (const std::string &try_code, const std::string &catch_code, int nargout) |
octave_value_list | eval (const std::string &try_code, int nargout) |
octave_value_list | eval_string (const octave_value &arg, bool silent, int &parse_status, int nargout) |
octave_value | eval_string (const std::string &eval_str, bool silent, int &parse_status) |
octave_value_list | eval_string (const std::string &eval_str, bool silent, int &parse_status, int nargout) |
octave_value_list | evalin (const std::string &context, const std::string &try_code, const std::string &catch_code, int nargout) |
octave_value_list | evalin (const std::string &context, const std::string &try_code, int nargout) |
int | execute () |
bool | executing_finish_script () const |
bool | experimental_terminal_widget () const |
octave_value_list | feval (const char *name, const octave_value_list &args=octave_value_list(), int nargout=0) |
Evaluate an Octave function (built-in or interpreted) and return the list of result values. | |
octave_value_list | feval (const octave_value &f_arg, const octave_value_list &args=octave_value_list(), int nargout=0) |
octave_value_list | feval (const octave_value_list &args, int nargout=0) |
Evaluate an Octave function (built-in or interpreted) and return the list of result values. | |
octave_value_list | feval (const std::string &name, const octave_value_list &args=octave_value_list(), int nargout=0) |
octave_value_list | feval (octave_function *fcn, const octave_value_list &args=octave_value_list(), int nargout=0) |
octave_value | find (const std::string &name) |
application * | get_app_context () |
cdef_manager & | get_cdef_manager () |
child_list & | get_child_list () |
symbol_scope | get_current_scope () const |
display_info & | get_display_info () |
dynamic_loader & | get_dynamic_loader () |
environment & | get_environment () |
error_system & | get_error_system () |
tree_evaluator & | get_evaluator () |
event_manager & | get_event_manager () |
gh_manager & | get_gh_manager () |
gtk_manager & | get_gtk_manager () |
help_system & | get_help_system () |
history_system & | get_history_system () |
input_system & | get_input_system () |
void | get_line_and_eval () |
load_path & | get_load_path () |
load_save_system & | get_load_save_system () |
output_system & | get_output_system () |
profiler & | get_profiler () |
settings & | get_settings () |
stream_list & | get_stream_list () |
symbol_table & | get_symbol_table () |
symbol_scope | get_top_scope () const |
type_info & | get_type_info () |
url_handle_manager & | get_url_handle_manager () |
void | global_assign (const std::string &name, const octave_value &val=octave_value()) |
std::list< std::string > | global_variable_names () |
octave_value | global_varval (const std::string &name) const |
void | handle_exception (const execution_exception &ee) |
bool | in_top_level_repl () const |
void | inhibit_startup_message (bool flag) |
void | init_trace (bool flag) |
void | initialize () |
void | initialize_history (bool read_history_file=false) |
void | initialize_load_path (bool set_initial_path=true) |
bool | initialized () const |
std::string | inputname (int n, bool ids_only=true) const |
void | install_variable (const std::string &name, const octave_value &value, bool global) |
bool | interactive () const |
void | interactive (bool arg) |
void | intern_nargin (octave_idx_type nargs) |
void | interrupt () |
bool | interrupt_all_in_process_group () const |
void | interrupt_all_in_process_group (bool b) |
bool | is_initialized () const |
bool | is_local_variable (const std::string &name) const |
bool | is_variable (const std::string &name) const |
bool | isglobal (const std::string &name) const |
octave_value | make_function_handle (const std::string &name) |
void | mark_for_deletion (const std::string &file) |
std::string | mfilename (const std::string &opt="") const |
bool | mislocked (bool skip_first=false) const |
bool | mislocked (const char *nm) |
bool | mislocked (const std::string &nm) |
void | mlock (bool skip_first=false) const |
void | munlock (bool skip_first=false) const |
void | munlock (const char *nm) |
void | munlock (const std::string &nm) |
void | parse_and_execute (const std::string &input, bool &incomplete_parse) |
void | pause () |
std::string | PS1 () const |
octave_value | PS1 (const octave_value_list &args, int nargout) |
std::string | PS1 (const std::string &s) |
std::string | PS2 () const |
octave_value | PS2 (const octave_value_list &args, int nargout) |
std::string | PS2 (const std::string &s) |
std::string | PS4 () const |
octave_value | PS4 (const octave_value_list &args, int nargout) |
std::string | PS4 (const std::string &s) |
void | quit (int exit_status, bool force=false, bool confirm=true) |
void | read_init_files (bool flag) |
void | read_site_files (bool flag) |
void | read_user_files (bool flag) |
void | recover_from_exception () |
bool | remove_atexit_fcn (const std::string &fname) |
void | remove_debug_watch_expression (const std::string &expr) |
symbol_scope | require_current_scope (const std::string &who) const |
void | resume () |
bool | server_mode () const |
void | set_global_value (const std::string &name, const octave_value &value) |
void | set_PS1 (const std::string &s) |
void | set_PS2 (const std::string &s) |
void | set_PS4 (const std::string &s) |
void | source_file (const std::string &file_name, const std::string &context="", bool verbose=false, bool require_file=true) |
void | stop () |
void | top_level_assign (const std::string &name, const octave_value &val=octave_value()) |
std::list< std::string > | top_level_variable_names () |
octave_value | top_level_varval (const std::string &name) const |
bool | traditional () const |
void | traditional (bool flag) |
std::list< std::string > | user_function_names () |
std::list< std::string > | variable_names () |
octave_value | varval (const std::string &name) const |
void | verbose (bool flag) |
Static Public Member Functions | |
static interpreter * | the_interpreter () |
Definition at line 112 of file interpreter.h.
interpreter::interpreter | ( | application * | app_context = nullptr | ) |
Definition at line 431 of file interpreter.cc.
References cmdline_options::all_args(), cmdline_options::command_line_path(), cmdline_options::doc_cache_file(), cmdline_options::docstrings_file(), tree_evaluator::echo(), tree_evaluator::ECHO_ALL, cmdline_options::echo_commands(), tree_evaluator::ECHO_FUNCTIONS, tree_evaluator::ECHO_SCRIPTS, cmdline_options::exec_path(), environment::exec_path(), cmdline_options::forced_interactive(), application::forced_interactive(), cmdline_options::forced_line_editing(), cmdline_options::image_path(), environment::image_path(), cmdline_options::info_file(), cmdline_options::info_program(), thread::init(), display_info::initialize(), input_system::initialize(), install_signal_handlers(), application::intern_argv(), intern_nargin(), application::is_octave_program(), cmdline_options::line_editing(), cmdline_options::no_window_system(), string_vector::numel(), octave_ieee_init(), octave_interpreter_ready, octave_isatty_wrapper(), octave_set_default_fpucw(), octave_unblock_signal_by_name(), application::options(), ovl(), quit_allowed, load_path::set_command_line_path(), cmdline_options::texi_macros_file(), and cmdline_options::traditional().
interpreter::~interpreter | ( | ) |
Definition at line 637 of file interpreter.cc.
void interpreter::add_atexit_fcn | ( | const std::string & | fname | ) |
Definition at line 2156 of file interpreter.cc.
void interpreter::add_debug_watch_expression | ( | const std::string & | expr | ) |
Definition at line 2051 of file interpreter.cc.
References tree_evaluator::add_debug_watch_expression().
void interpreter::assign | ( | const std::string & | name, |
const octave_value & | val = octave_value () |
||
) |
Definition at line 1725 of file interpreter.cc.
References tree_evaluator::assign().
void interpreter::assignin | ( | const std::string & | context, |
const std::string & | varname, | ||
const octave_value & | val = octave_value () |
||
) |
Definition at line 1732 of file interpreter.cc.
References tree_evaluator::assignin().
bool interpreter::at_top_level | ( | ) | const |
Definition at line 1748 of file interpreter.cc.
References tree_evaluator::at_top_level().
Referenced by Fwarning().
std::list< std::string > interpreter::autoloaded_functions | ( | ) | const |
Definition at line 1892 of file interpreter.cc.
References tree_evaluator::autoloaded_functions().
|
inline |
Definition at line 557 of file interpreter.h.
int interpreter::chdir | ( | const std::string & | dir | ) |
Definition at line 1393 of file interpreter.cc.
References event_manager::directory_changed(), error(), load_path::read_dir_config(), load_path::update(), Vlast_chdir_time, and Vlast_prompt_time.
Referenced by load_path::contains_file_in_dir().
void interpreter::cleanup_tmp_files | ( | ) |
Definition at line 2107 of file interpreter.cc.
References temporary_file_list::cleanup().
void interpreter::clear_all | ( | bool | force = false | ) |
Definition at line 1766 of file interpreter.cc.
References tree_evaluator::clear_all().
Referenced by Fclear().
void interpreter::clear_debug_watch_expressions | ( | ) |
Definition at line 2063 of file interpreter.cc.
References tree_evaluator::clear_debug_watch_expressions().
void interpreter::clear_function | ( | const std::string & | name | ) |
Definition at line 1832 of file interpreter.cc.
References symbol_table::clear_function().
void interpreter::clear_function_pattern | ( | const std::string & | pat | ) |
Definition at line 1844 of file interpreter.cc.
References symbol_table::clear_function_pattern().
void interpreter::clear_function_regexp | ( | const std::string & | pat | ) |
Definition at line 1850 of file interpreter.cc.
References symbol_table::clear_function_regexp().
void interpreter::clear_functions | ( | bool | force = false | ) |
Definition at line 1826 of file interpreter.cc.
References symbol_table::clear_functions().
void interpreter::clear_global_variable | ( | const std::string & | name | ) |
Definition at line 1802 of file interpreter.cc.
References tree_evaluator::clear_global_variable().
void interpreter::clear_global_variable_pattern | ( | const std::string & | pattern | ) |
Definition at line 1808 of file interpreter.cc.
References tree_evaluator::clear_global_variable_pattern().
void interpreter::clear_global_variable_regexp | ( | const std::string & | pattern | ) |
Definition at line 1814 of file interpreter.cc.
References tree_evaluator::clear_global_variable_regexp().
void interpreter::clear_global_variables | ( | ) |
Definition at line 1820 of file interpreter.cc.
References tree_evaluator::clear_global_variables().
void interpreter::clear_objects | ( | ) |
Definition at line 1772 of file interpreter.cc.
References tree_evaluator::clear_objects().
Referenced by Fclear().
void interpreter::clear_symbol | ( | const std::string & | name | ) |
Definition at line 1838 of file interpreter.cc.
References tree_evaluator::clear_symbol().
void interpreter::clear_symbol_pattern | ( | const std::string & | pat | ) |
Definition at line 1856 of file interpreter.cc.
References tree_evaluator::clear_symbol_pattern().
void interpreter::clear_symbol_regexp | ( | const std::string & | pat | ) |
Definition at line 1862 of file interpreter.cc.
References tree_evaluator::clear_symbol_regexp().
void interpreter::clear_variable | ( | const std::string & | name | ) |
Definition at line 1778 of file interpreter.cc.
References tree_evaluator::clear_variable().
void interpreter::clear_variable_pattern | ( | const std::string & | pattern | ) |
Definition at line 1784 of file interpreter.cc.
References tree_evaluator::clear_variable_pattern().
void interpreter::clear_variable_regexp | ( | const std::string & | pattern | ) |
Definition at line 1790 of file interpreter.cc.
References tree_evaluator::clear_variable_regexp().
void interpreter::clear_variables | ( | ) |
Definition at line 1796 of file interpreter.cc.
References tree_evaluator::clear_variables().
std::set< std::string > interpreter::debug_watch_expressions | ( | ) | const |
Definition at line 2069 of file interpreter.cc.
References tree_evaluator::debug_watch_expressions().
octave_value_list interpreter::eval | ( | const std::string & | try_code, |
const std::string & | catch_code, | ||
int | nargout | ||
) |
Definition at line 1524 of file interpreter.cc.
References tree_evaluator::eval().
octave_value_list interpreter::eval | ( | const std::string & | try_code, |
int | nargout | ||
) |
Definition at line 1517 of file interpreter.cc.
References tree_evaluator::eval().
octave_value_list interpreter::eval_string | ( | const octave_value & | arg, |
bool | silent, | ||
int & | parse_status, | ||
int | nargout | ||
) |
Definition at line 1509 of file interpreter.cc.
References tree_evaluator::eval_string().
octave_value interpreter::eval_string | ( | const std::string & | eval_str, |
bool | silent, | ||
int & | parse_status | ||
) |
Definition at line 1502 of file interpreter.cc.
References tree_evaluator::eval_string().
octave_value_list interpreter::eval_string | ( | const std::string & | eval_str, |
bool | silent, | ||
int & | parse_status, | ||
int | nargout | ||
) |
Definition at line 1494 of file interpreter.cc.
References tree_evaluator::eval_string().
Referenced by Fstr2func().
octave_value_list interpreter::evalin | ( | const std::string & | context, |
const std::string & | try_code, | ||
const std::string & | catch_code, | ||
int | nargout | ||
) |
Definition at line 1540 of file interpreter.cc.
References tree_evaluator::evalin().
octave_value_list interpreter::evalin | ( | const std::string & | context, |
const std::string & | try_code, | ||
int | nargout | ||
) |
Definition at line 1532 of file interpreter.cc.
References tree_evaluator::evalin().
Referenced by quit().
int interpreter::execute | ( | ) |
Definition at line 822 of file interpreter.cc.
References command_editor::blink_matching_paren(), cmdline_options::experimental_terminal_widget(), cmdline_options::forced_interactive(), cmdline_options::gui(), application::have_eval_option_code(), application::have_script_file(), initialize(), application::options(), cmdline_options::persist(), cmdline_options::server(), and event_manager::start_gui().
Referenced by cli_application::execute().
|
inline |
Definition at line 559 of file interpreter.h.
bool interpreter::experimental_terminal_widget | ( | ) | const |
Definition at line 2039 of file interpreter.cc.
References cmdline_options::experimental_terminal_widget(), and application::options().
octave_value_list interpreter::feval | ( | const char * | name, |
const octave_value_list & | args = octave_value_list () , |
||
int | nargout = 0 |
||
) |
Evaluate an Octave function (built-in or interpreted) and return the list of result values.
name | The name of the function to call. |
args | The arguments to the function. |
nargout | The number of output arguments expected. |
nargout
. Definition at line 1558 of file interpreter.cc.
References feval().
Referenced by tree_evaluator::bind_ans(), do_class_concat(), named_hook_function::eval(), fcn_handle_hook_function::eval(), tree_simple_assignment::evaluate(), tree_evaluator::evaluate_end_expression(), tree_multi_assignment::evaluate_n(), tree_identifier::evaluate_n(), feval(), feval(), feval(), feval(), feval(), feval(), feval(), feval(), get_function_handle(), gtk_manager::get_toolkit(), OCTAVE_BEGIN_NAMESPACE(), OCTAVE_BEGIN_NAMESPACE(), OCTAVE_BEGIN_NAMESPACE(), OCTAVE_BEGIN_NAMESPACE(), OCTAVE_BEGIN_NAMESPACE(), and print_usage().
octave_value_list interpreter::feval | ( | const octave_value & | f_arg, |
const octave_value_list & | args = octave_value_list () , |
||
int | nargout = 0 |
||
) |
Definition at line 1592 of file interpreter.cc.
References error(), feval(), octave_value::function_value(), octave_value::is_function(), octave_value::is_function_handle(), octave_value::is_inline_function(), octave_value::is_string(), octave_value::is_undefined(), ovl(), octave_value::string_value(), and octave_value::subsref().
octave_value_list interpreter::feval | ( | const octave_value_list & | args, |
int | nargout = 0 |
||
) |
Evaluate an Octave function (built-in or interpreted) and return the list of result values.
args | The first element of args is the function to call. It may be the name of the function as a string, a function handle, or an inline function. The remaining arguments are passed to the function. |
nargout | The number of output arguments expected. |
nargout
. Definition at line 1648 of file interpreter.cc.
References error(), feval(), octave_value_list::length(), and octave_value_list::slice().
octave_value_list interpreter::feval | ( | const std::string & | name, |
const octave_value_list & | args = octave_value_list () , |
||
int | nargout = 0 |
||
) |
Definition at line 1566 of file interpreter.cc.
References octave_function::call(), error(), symbol_table::find_function(), octave_value::function_value(), and octave_value::is_undefined().
octave_value_list interpreter::feval | ( | octave_function * | fcn, |
const octave_value_list & | args = octave_value_list () , |
||
int | nargout = 0 |
||
) |
Definition at line 1581 of file interpreter.cc.
References octave_function::call().
octave_value interpreter::find | ( | const std::string & | name | ) |
Definition at line 1760 of file interpreter.cc.
References tree_evaluator::find().
Referenced by cdef_manager::find_class().
|
inline |
Definition at line 243 of file interpreter.h.
|
inline |
Definition at line 330 of file interpreter.h.
Referenced by __get_cdef_manager__(), and tree_evaluator::get_user_code().
|
inline |
Definition at line 323 of file interpreter.h.
Referenced by __get_child_list__(), and output_system::clear_external_pager().
symbol_scope interpreter::get_current_scope | ( | ) | const |
Definition at line 1370 of file interpreter.cc.
References tree_evaluator::get_current_scope().
Referenced by __get_current_scope__(), lexical_feedback::symbol_table_context::curr_scope(), and require_current_scope().
|
inline |
Definition at line 248 of file interpreter.h.
Referenced by __get_display_info__().
|
inline |
Definition at line 290 of file interpreter.h.
Referenced by __get_dynamic_loader__(), and load_fcn_from_file().
|
inline |
Definition at line 253 of file interpreter.h.
Referenced by history_system::do_edit_history().
|
inline |
Definition at line 263 of file interpreter.h.
Referenced by __get_error_system__(), bp_table::dbclear_all_signals(), bp_table::dbstop_process_map_args(), tree_evaluator::do_unwind_protect_cleanup_code(), tree_evaluator::enter_debugger(), tree_evaluator::eval(), tree_evaluator::evalin(), Fbeep_on_error(), Fdebug_on_error(), Fdebug_on_warning(), Ferror(), base_parser::finish_array_list(), Flasterr(), Flasterror(), Flastwarn(), Frethrow(), Fwarning(), tree_evaluator::get_line_and_eval(), base_parser::make_colon_expression(), tree_evaluator::repl(), tree_evaluator::server_loop(), bp_table::stop_on_err_warn_status(), tree_evaluator::visit_statement(), tree_evaluator::visit_try_catch_command(), and tree_evaluator::visit_unwind_protect_command().
tree_evaluator & interpreter::get_evaluator | ( | ) |
Definition at line 1346 of file interpreter.cc.
Referenced by __get_evaluator__(), symbol_table::current_scope(), tree_evaluator::enter_debugger(), F__varval__(), base_parser::finish_array_list(), Flasterror(), Fstr2func(), Fwarning(), base_parser::make_colon_expression(), cdef_class::make_meta_class(), event_manager::set_workspace(), error_system::throw_error(), base_parser::validate_matrix_for_assignment(), and error_system::vwarning().
|
inline |
Definition at line 340 of file interpreter.h.
Referenced by __get_event_manager__(), load_path::contains_file_in_dir(), error_system::display_exception(), history_system::do_history(), Fclear(), tree_evaluator::get_line_and_eval(), history_system::initialize(), tree_evaluator::parse_and_execute(), load_path::rehash(), bp_table::remove_all_breakpoints_from_function(), bp_table::remove_breakpoints_from_function(), and history_system::write_timestamp().
|
inline |
Definition at line 345 of file interpreter.h.
Referenced by __get_gh_manager__().
|
inline |
Definition at line 335 of file interpreter.h.
Referenced by __get_gtk_manager__(), and F__init_gnuplot__().
|
inline |
Definition at line 270 of file interpreter.h.
Referenced by __get_help_system__().
|
inline |
Definition at line 285 of file interpreter.h.
Referenced by base_lexer::input_from_tmp_history_file().
|
inline |
Definition at line 275 of file interpreter.h.
Referenced by __get_input_system__().
void interpreter::get_line_and_eval | ( | ) |
Definition at line 773 of file interpreter.cc.
References tree_evaluator::get_line_and_eval().
|
inline |
Definition at line 295 of file interpreter.h.
Referenced by __get_load_path__(), cdef_manager::find_package(), tree_evaluator::lookup_autoload(), and cdef_class::make_meta_class().
|
inline |
Definition at line 300 of file interpreter.h.
Referenced by __get_load_save_system__().
|
inline |
Definition at line 280 of file interpreter.h.
Referenced by stream_list::stream_list(), and __get_output_system__().
profiler & interpreter::get_profiler | ( | ) |
Definition at line 1387 of file interpreter.cc.
References tree_evaluator::get_profiler().
|
inline |
Definition at line 258 of file interpreter.h.
Referenced by base_lexer::debug_flag(), base_lexer::display_tokens(), and base_lexer::increment_token_count().
stream_list & interpreter::get_stream_list | ( | ) |
Definition at line 1352 of file interpreter.cc.
Referenced by Ffeof(), Fferror(), Ffread(), Ffwrite(), Fmkstemp(), Fpclose(), Fpopen(), Fstderr(), Fstdin(), Fstdout(), and Ftmpfile().
|
inline |
Definition at line 310 of file interpreter.h.
Referenced by cdef_manager::cdef_manager(), __get_symbol_table__(), tree_evaluator::clear_all(), tree_evaluator::clear_symbol(), tree_evaluator::clear_symbol_pattern(), tree_evaluator::clear_symbol_regexp(), DEFMETHOD(), do_class_concat(), tree_evaluator::evaluate_end_expression(), tree_identifier::evaluate_n(), tree_index_expression::evaluate_n(), Farrayfun(), Fcellfun(), tree_evaluator::final_index_error(), tree_evaluator::find(), base_parser::finish_classdef_file(), get_function_handle(), tree_evaluator::get_user_code(), tree_evaluator::make_fcn_handle(), tree_evaluator::remove_autoload(), tree_evaluator::source_file(), and tree_evaluator::visit_function_def().
symbol_scope interpreter::get_top_scope | ( | ) | const |
Definition at line 1364 of file interpreter.cc.
References tree_evaluator::get_top_scope().
|
inline |
Definition at line 305 of file interpreter.h.
Referenced by cdef_manager::cdef_manager(), __get_type_info__(), tree_binary_expression::evaluate(), tree_compound_binary_expression::evaluate(), tree_prefix_expression::evaluate(), and tree_postfix_expression::evaluate().
url_handle_manager & interpreter::get_url_handle_manager | ( | ) |
Definition at line 1358 of file interpreter.cc.
void interpreter::global_assign | ( | const std::string & | name, |
const octave_value & | val = octave_value () |
||
) |
Definition at line 1687 of file interpreter.cc.
References tree_evaluator::global_assign().
std::list< std::string > interpreter::global_variable_names | ( | ) |
Definition at line 1868 of file interpreter.cc.
References tree_evaluator::global_variable_names().
octave_value interpreter::global_varval | ( | const std::string & | name | ) | const |
Definition at line 1681 of file interpreter.cc.
References tree_evaluator::global_varval().
void interpreter::handle_exception | ( | const execution_exception & | ee | ) |
Definition at line 2075 of file interpreter.cc.
References error_system::display_exception(), recover_from_exception(), and error_system::save_exception().
|
inline |
Definition at line 217 of file interpreter.h.
|
inline |
Definition at line 212 of file interpreter.h.
|
inline |
Definition at line 191 of file interpreter.h.
void interpreter::initialize | ( | ) |
Definition at line 719 of file interpreter.cc.
References can_interrupt, catch_interrupts(), cmdline_options::experimental_terminal_widget(), cmdline_options::gui(), initialize_history(), initialize_load_path(), octave_initialized, octave_interrupt_hook, octave_save_signal_mask(), octave_signal_hook, application::options(), and respond_to_pending_signals().
Referenced by execute().
void interpreter::initialize_history | ( | bool | read_history_file = false | ) |
Definition at line 654 of file interpreter.cc.
References command_history::ignore_entries(), history_system::initialize(), application::options(), and cmdline_options::read_history_file().
Referenced by initialize().
void interpreter::initialize_load_path | ( | bool | set_initial_path = true | ) |
Definition at line 683 of file interpreter.cc.
References load_path::get_add_hook(), load_path::initialize(), application::options(), load_path::set_add_hook(), and cmdline_options::set_initial_path().
Referenced by initialize().
|
inline |
Definition at line 228 of file interpreter.h.
Definition at line 1662 of file interpreter.cc.
References tree_evaluator::inputname().
void interpreter::install_variable | ( | const std::string & | name, |
const octave_value & | value, | ||
bool | global | ||
) |
Definition at line 1674 of file interpreter.cc.
References tree_evaluator::install_variable().
|
inline |
Definition at line 165 of file interpreter.h.
Referenced by tree_evaluator::get_line_and_eval(), tree_evaluator::parse_and_execute(), raw_mode(), tree_evaluator::repl(), base_lexer::reset(), tree_evaluator::server_loop(), output_system::sync(), tree_evaluator::visit_statement(), and error_system::vwarning().
|
inline |
Definition at line 170 of file interpreter.h.
void interpreter::intern_nargin | ( | octave_idx_type | nargs | ) |
Definition at line 646 of file interpreter.cc.
References stack_frame::NARGIN, and tree_evaluator::set_auto_fcn_var().
Referenced by interpreter().
void interpreter::interrupt | ( | ) |
Definition at line 1901 of file interpreter.cc.
References octave_get_sig_number(), octave_getpid_wrapper(), and octave_kill_wrapper().
Referenced by stop().
|
inline |
Definition at line 238 of file interpreter.h.
|
inline |
Definition at line 233 of file interpreter.h.
|
inline |
Definition at line 222 of file interpreter.h.
bool interpreter::is_local_variable | ( | const std::string & | name | ) | const |
Definition at line 1713 of file interpreter.cc.
References tree_evaluator::is_local_variable().
bool interpreter::is_variable | ( | const std::string & | name | ) | const |
Definition at line 1707 of file interpreter.cc.
References tree_evaluator::is_variable().
Referenced by load_save_system::save_vars().
bool interpreter::isglobal | ( | const std::string & | name | ) | const |
Definition at line 1754 of file interpreter.cc.
References tree_evaluator::is_global().
octave_value interpreter::make_function_handle | ( | const std::string & | name | ) |
Definition at line 1668 of file interpreter.cc.
References tree_evaluator::make_fcn_handle().
void interpreter::mark_for_deletion | ( | const std::string & | file | ) |
Definition at line 2101 of file interpreter.cc.
References temporary_file_list::insert().
Referenced by Fmkstemp().
std::string interpreter::mfilename | ( | const std::string & | opt = "" | ) | const |
Definition at line 1488 of file interpreter.cc.
References tree_evaluator::mfilename().
Definition at line 1432 of file interpreter.cc.
References tree_evaluator::mislocked().
Referenced by F__init_gnuplot__(), Fmislocked(), and mislocked().
bool interpreter::mislocked | ( | const char * | nm | ) |
Definition at line 1461 of file interpreter.cc.
References error(), and mislocked().
bool interpreter::mislocked | ( | const std::string & | nm | ) |
Definition at line 1470 of file interpreter.cc.
References symbol_table::find_function(), octave_value::function_value(), octave_value::is_defined(), and octave_function::islocked().
void interpreter::mlock | ( | bool | skip_first = false | ) | const |
Definition at line 1420 of file interpreter.cc.
References tree_evaluator::mlock().
Referenced by F__init_gnuplot__(), and Fmlock().
void interpreter::munlock | ( | bool | skip_first = false | ) | const |
Definition at line 1426 of file interpreter.cc.
References tree_evaluator::munlock().
Referenced by Fmunlock(), and munlock().
void interpreter::munlock | ( | const char * | nm | ) |
Definition at line 1438 of file interpreter.cc.
void interpreter::munlock | ( | const std::string & | nm | ) |
Definition at line 1447 of file interpreter.cc.
References symbol_table::find_function(), octave_value::function_value(), octave_value::is_defined(), and octave_function::unlock().
void interpreter::parse_and_execute | ( | const std::string & | input, |
bool & | incomplete_parse | ||
) |
Definition at line 812 of file interpreter.cc.
References tree_evaluator::parse_and_execute().
Referenced by tree_evaluator::get_line_and_eval().
void interpreter::pause | ( | ) |
Definition at line 1930 of file interpreter.cc.
References tree_evaluator::break_on_next_statement(), and tree_evaluator::reset_debug_state().
std::string interpreter::PS1 | ( | ) | const |
Definition at line 1971 of file interpreter.cc.
References input_system::PS1().
octave_value interpreter::PS1 | ( | const octave_value_list & | args, |
int | nargout | ||
) |
Definition at line 1965 of file interpreter.cc.
References input_system::PS1().
Referenced by lexer::fill_flex_buffer(), tree_evaluator::get_line_and_eval(), and push_parser::run().
std::string interpreter::PS1 | ( | const std::string & | s | ) |
Definition at line 1977 of file interpreter.cc.
References input_system::PS1().
std::string interpreter::PS2 | ( | ) | const |
Definition at line 1995 of file interpreter.cc.
References input_system::PS2().
octave_value interpreter::PS2 | ( | const octave_value_list & | args, |
int | nargout | ||
) |
Definition at line 1989 of file interpreter.cc.
References input_system::PS2().
Referenced by lexer::fill_flex_buffer(), tree_evaluator::get_line_and_eval(), and push_parser::run().
std::string interpreter::PS2 | ( | const std::string & | s | ) |
Definition at line 2001 of file interpreter.cc.
References input_system::PS2().
std::string interpreter::PS4 | ( | ) | const |
Definition at line 2019 of file interpreter.cc.
References tree_evaluator::PS4().
octave_value interpreter::PS4 | ( | const octave_value_list & | args, |
int | nargout | ||
) |
Definition at line 2013 of file interpreter.cc.
References tree_evaluator::PS4().
std::string interpreter::PS4 | ( | const std::string & | s | ) |
Definition at line 2025 of file interpreter.cc.
References tree_evaluator::PS4().
Definition at line 2113 of file interpreter.cc.
References event_manager::confirm_shutdown(), evalin(), and symbol_exist().
|
inline |
Definition at line 186 of file interpreter.h.
|
inline |
Definition at line 175 of file interpreter.h.
|
inline |
Definition at line 180 of file interpreter.h.
void interpreter::recover_from_exception | ( | ) |
Definition at line 2088 of file interpreter.cc.
References can_interrupt, catch_interrupts(), event_manager::interpreter_interrupted(), octave_interrupt_state, octave_restore_signal_mask(), and octave_signal_caught.
Referenced by tree_evaluator::do_unwind_protect_cleanup_code(), tree_evaluator::eval(), tree_evaluator::eval(), tree_evaluator::evalin(), base_parser::finish_array_list(), tree_evaluator::get_line_and_eval(), handle_exception(), base_parser::make_colon_expression(), tree::meets_bp_condition(), cdef_object_rep::release(), tree_evaluator::repl(), tree_evaluator::server_loop(), tree_evaluator::visit_statement(), tree_evaluator::visit_try_catch_command(), and tree_evaluator::visit_unwind_protect_command().
bool interpreter::remove_atexit_fcn | ( | const std::string & | fname | ) |
Definition at line 2165 of file interpreter.cc.
void interpreter::remove_debug_watch_expression | ( | const std::string & | expr | ) |
Definition at line 2057 of file interpreter.cc.
References tree_evaluator::remove_debug_watch_expression().
symbol_scope interpreter::require_current_scope | ( | const std::string & | who | ) | const |
Definition at line 1376 of file interpreter.cc.
References error(), and get_current_scope().
void interpreter::resume | ( | ) |
Definition at line 1952 of file interpreter.cc.
References tree_evaluator::dbcont(), and tree_evaluator::in_debug_repl().
|
inline |
Definition at line 163 of file interpreter.h.
Referenced by output_system::sync().
void interpreter::set_global_value | ( | const std::string & | name, |
const octave_value & | value | ||
) |
void interpreter::set_PS1 | ( | const std::string & | s | ) |
Definition at line 1983 of file interpreter.cc.
References input_system::set_PS1().
void interpreter::set_PS2 | ( | const std::string & | s | ) |
Definition at line 2007 of file interpreter.cc.
References input_system::set_PS2().
void interpreter::set_PS4 | ( | const std::string & | s | ) |
Definition at line 2031 of file interpreter.cc.
References tree_evaluator::set_PS4().
void interpreter::source_file | ( | const std::string & | file_name, |
const std::string & | context = "" , |
||
bool | verbose = false , |
||
bool | require_file = true |
||
) |
Definition at line 1740 of file interpreter.cc.
References tree_evaluator::source_file(), and verbose().
Referenced by source_file().
void interpreter::stop | ( | ) |
Definition at line 1940 of file interpreter.cc.
References tree_evaluator::dbquit(), tree_evaluator::in_debug_repl(), and interrupt().
|
inlinestatic |
Definition at line 568 of file interpreter.h.
Referenced by __get_interpreter__().
void interpreter::top_level_assign | ( | const std::string & | name, |
const octave_value & | val = octave_value () |
||
) |
Definition at line 1700 of file interpreter.cc.
References tree_evaluator::top_level_assign().
std::list< std::string > interpreter::top_level_variable_names | ( | ) |
Definition at line 1874 of file interpreter.cc.
References tree_evaluator::top_level_variable_names().
octave_value interpreter::top_level_varval | ( | const std::string & | name | ) | const |
Definition at line 1694 of file interpreter.cc.
References tree_evaluator::top_level_varval().
|
inline |
Definition at line 207 of file interpreter.h.
|
inline |
Definition at line 202 of file interpreter.h.
std::list< std::string > interpreter::user_function_names | ( | ) |
Definition at line 1886 of file interpreter.cc.
References symbol_table::user_function_names().
std::list< std::string > interpreter::variable_names | ( | ) |
Definition at line 1880 of file interpreter.cc.
References tree_evaluator::variable_names().
octave_value interpreter::varval | ( | const std::string & | name | ) | const |
Definition at line 1719 of file interpreter.cc.
References tree_evaluator::varval().
Referenced by F__varval__(), and load_save_system::save_vars().
|
inline |
Definition at line 197 of file interpreter.h.
Referenced by source_file().