#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. More... | |
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. More... | |
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 | initialize () |
void | initialize_history (bool read_history_file=false) |
void | initialize_load_path (bool set_initial_path=true) |
bool | initialized () 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 | 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 thread::init(), octave_ieee_init(), and octave_set_default_fpucw().
interpreter::~interpreter | ( | ) |
Definition at line 637 of file interpreter.cc.
void interpreter::add_atexit_fcn | ( | const std::string & | fname | ) |
Definition at line 2151 of file interpreter.cc.
void interpreter::add_debug_watch_expression | ( | const std::string & | expr | ) |
Definition at line 2046 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 1720 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 1727 of file interpreter.cc.
References tree_evaluator::assignin().
bool interpreter::at_top_level | ( | ) | const |
Definition at line 1743 of file interpreter.cc.
References tree_evaluator::at_top_level().
std::list< std::string > interpreter::autoloaded_functions | ( | ) | const |
Definition at line 1887 of file interpreter.cc.
References tree_evaluator::autoloaded_functions().
|
inline |
Definition at line 543 of file interpreter.h.
int interpreter::chdir | ( | const std::string & | dir | ) |
Definition at line 1394 of file interpreter.cc.
References chdir(), event_manager::directory_changed(), error(), load_path::read_dir_config(), octave::sys::file_ops::tilde_expand(), 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 2102 of file interpreter.cc.
References temporary_file_list::cleanup().
void interpreter::clear_all | ( | bool | force = false | ) |
Definition at line 1761 of file interpreter.cc.
References tree_evaluator::clear_all().
void interpreter::clear_debug_watch_expressions | ( | ) |
Definition at line 2058 of file interpreter.cc.
References tree_evaluator::clear_debug_watch_expressions().
void interpreter::clear_function | ( | const std::string & | name | ) |
Definition at line 1827 of file interpreter.cc.
References symbol_table::clear_function().
void interpreter::clear_function_pattern | ( | const std::string & | pat | ) |
Definition at line 1839 of file interpreter.cc.
References symbol_table::clear_function_pattern().
void interpreter::clear_function_regexp | ( | const std::string & | pat | ) |
Definition at line 1845 of file interpreter.cc.
References symbol_table::clear_function_regexp().
void interpreter::clear_functions | ( | bool | force = false | ) |
Definition at line 1821 of file interpreter.cc.
References symbol_table::clear_functions().
void interpreter::clear_global_variable | ( | const std::string & | name | ) |
Definition at line 1797 of file interpreter.cc.
References tree_evaluator::clear_global_variable().
void interpreter::clear_global_variable_pattern | ( | const std::string & | pattern | ) |
Definition at line 1803 of file interpreter.cc.
References tree_evaluator::clear_global_variable_pattern().
void interpreter::clear_global_variable_regexp | ( | const std::string & | pattern | ) |
Definition at line 1809 of file interpreter.cc.
References tree_evaluator::clear_global_variable_regexp().
void interpreter::clear_global_variables | ( | ) |
Definition at line 1815 of file interpreter.cc.
References tree_evaluator::clear_global_variables().
void interpreter::clear_objects | ( | ) |
Definition at line 1767 of file interpreter.cc.
References tree_evaluator::clear_objects().
void interpreter::clear_symbol | ( | const std::string & | name | ) |
Definition at line 1833 of file interpreter.cc.
References tree_evaluator::clear_symbol().
void interpreter::clear_symbol_pattern | ( | const std::string & | pat | ) |
Definition at line 1851 of file interpreter.cc.
References tree_evaluator::clear_symbol_pattern().
void interpreter::clear_symbol_regexp | ( | const std::string & | pat | ) |
Definition at line 1857 of file interpreter.cc.
References tree_evaluator::clear_symbol_regexp().
void interpreter::clear_variable | ( | const std::string & | name | ) |
Definition at line 1773 of file interpreter.cc.
References tree_evaluator::clear_variable().
void interpreter::clear_variable_pattern | ( | const std::string & | pattern | ) |
Definition at line 1779 of file interpreter.cc.
References tree_evaluator::clear_variable_pattern().
void interpreter::clear_variable_regexp | ( | const std::string & | pattern | ) |
Definition at line 1785 of file interpreter.cc.
References tree_evaluator::clear_variable_regexp().
void interpreter::clear_variables | ( | ) |
Definition at line 1791 of file interpreter.cc.
References tree_evaluator::clear_variables().
std::set< std::string > interpreter::debug_watch_expressions | ( | ) | const |
Definition at line 2064 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 1525 of file interpreter.cc.
References tree_evaluator::eval().
octave_value_list interpreter::eval | ( | const std::string & | try_code, |
int | nargout | ||
) |
Definition at line 1518 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 1510 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 1503 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 1495 of file interpreter.cc.
References tree_evaluator::eval_string().
Referenced by octave::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 1541 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 1533 of file interpreter.cc.
References tree_evaluator::evalin().
Referenced by quit().
int interpreter::execute | ( | ) |
Definition at line 823 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 545 of file interpreter.h.
bool interpreter::experimental_terminal_widget | ( | ) | const |
Definition at line 2034 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 1559 of file interpreter.cc.
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(), octave::feval(), feval(), get_function_handle(), gtk_manager::get_toolkit(), 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 1593 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 1649 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 1567 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 1582 of file interpreter.cc.
References octave_function::call().
octave_value interpreter::find | ( | const std::string & | name | ) |
Definition at line 1755 of file interpreter.cc.
References tree_evaluator::find().
Referenced by cdef_manager::find_class().
|
inline |
Definition at line 231 of file interpreter.h.
|
inline |
Definition at line 318 of file interpreter.h.
Referenced by __get_cdef_manager__(), and tree_evaluator::get_user_code().
|
inline |
Definition at line 311 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 1371 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 236 of file interpreter.h.
Referenced by __get_display_info__().
|
inline |
Definition at line 278 of file interpreter.h.
Referenced by __get_dynamic_loader__().
|
inline |
Definition at line 241 of file interpreter.h.
|
inline |
Definition at line 251 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(), base_parser::finish_array_list(), 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 1347 of file interpreter.cc.
Referenced by __get_evaluator__(), symbol_table::current_scope(), octave::F__varval__(), base_parser::finish_array_list(), octave::Fstr2func(), base_parser::make_colon_expression(), cdef_class::make_meta_class(), event_manager::set_workspace(), error_system::throw_error(), and base_parser::validate_matrix_for_assignment().
|
inline |
Definition at line 328 of file interpreter.h.
Referenced by __get_event_manager__(), load_path::contains_file_in_dir(), error_system::display_exception(), history_system::do_history(), tree_evaluator::get_line_and_eval(), history_system::initialize(), 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 333 of file interpreter.h.
Referenced by __get_gh_manager__().
|
inline |
Definition at line 323 of file interpreter.h.
Referenced by __get_gtk_manager__().
|
inline |
Definition at line 258 of file interpreter.h.
Referenced by __get_help_system__().
|
inline |
Definition at line 273 of file interpreter.h.
Referenced by base_lexer::input_from_tmp_history_file().
|
inline |
Definition at line 263 of file interpreter.h.
Referenced by __get_input_system__().
void interpreter::get_line_and_eval | ( | ) |
Definition at line 774 of file interpreter.cc.
References tree_evaluator::get_line_and_eval().
|
inline |
Definition at line 283 of file interpreter.h.
Referenced by __get_load_path__(), cdef_manager::find_package(), and tree_evaluator::lookup_autoload().
|
inline |
Definition at line 288 of file interpreter.h.
Referenced by __get_load_save_system__().
|
inline |
Definition at line 268 of file interpreter.h.
Referenced by stream_list::stream_list(), and __get_output_system__().
profiler & interpreter::get_profiler | ( | ) |
Definition at line 1388 of file interpreter.cc.
References tree_evaluator::get_profiler().
|
inline |
Definition at line 246 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 1353 of file interpreter.cc.
Referenced by octave::Ffeof(), octave::Fferror(), octave::Ffread(), octave::Ffwrite(), octave::Fpclose(), octave::Fpopen(), octave::Fstderr(), octave::Fstdin(), and octave::Fstdout().
|
inline |
Definition at line 298 of file interpreter.h.
Referenced by __get_symbol_table__(), tree_evaluator::clear_all(), tree_evaluator::clear_symbol(), tree_evaluator::clear_symbol_pattern(), tree_evaluator::clear_symbol_regexp(), 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::remove_autoload(), and tree_evaluator::visit_function_def().
symbol_scope interpreter::get_top_scope | ( | ) | const |
Definition at line 1365 of file interpreter.cc.
References tree_evaluator::get_top_scope().
|
inline |
Definition at line 293 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 1359 of file interpreter.cc.
void interpreter::global_assign | ( | const std::string & | name, |
const octave_value & | val = octave_value () |
||
) |
Definition at line 1682 of file interpreter.cc.
References tree_evaluator::global_assign().
std::list< std::string > interpreter::global_variable_names | ( | ) |
Definition at line 1863 of file interpreter.cc.
References tree_evaluator::global_variable_names().
octave_value interpreter::global_varval | ( | const std::string & | name | ) | const |
Definition at line 1676 of file interpreter.cc.
References tree_evaluator::global_varval().
void interpreter::handle_exception | ( | const execution_exception & | ee | ) |
Definition at line 2070 of file interpreter.cc.
References error_system::display_exception(), recover_from_exception(), and error_system::save_exception().
|
inline |
Definition at line 205 of file interpreter.h.
|
inline |
Definition at line 200 of file interpreter.h.
void interpreter::initialize | ( | ) |
Definition at line 720 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 216 of file interpreter.h.
void interpreter::install_variable | ( | const std::string & | name, |
const octave_value & | value, | ||
bool | global | ||
) |
Definition at line 1669 of file interpreter.cc.
References tree_evaluator::install_variable().
|
inline |
Definition at line 165 of file interpreter.h.
Referenced by octave::raw_mode(), tree_evaluator::repl(), base_lexer::reset(), tree_evaluator::server_loop(), output_system::sync(), and tree_evaluator::visit_statement().
|
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().
void interpreter::interrupt | ( | ) |
Definition at line 1896 of file interpreter.cc.
References octave_get_sig_number(), octave_getpid_wrapper(), and octave_kill_wrapper().
Referenced by stop().
|
inline |
Definition at line 226 of file interpreter.h.
|
inline |
Definition at line 221 of file interpreter.h.
|
inline |
Definition at line 210 of file interpreter.h.
bool interpreter::is_local_variable | ( | const std::string & | name | ) | const |
Definition at line 1708 of file interpreter.cc.
References tree_evaluator::is_local_variable().
bool interpreter::is_variable | ( | const std::string & | name | ) | const |
Definition at line 1702 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 1749 of file interpreter.cc.
References tree_evaluator::is_global().
octave_value interpreter::make_function_handle | ( | const std::string & | name | ) |
Definition at line 1663 of file interpreter.cc.
References tree_evaluator::make_fcn_handle().
void interpreter::mark_for_deletion | ( | const std::string & | file | ) |
Definition at line 2096 of file interpreter.cc.
References temporary_file_list::insert().
std::string interpreter::mfilename | ( | const std::string & | opt = "" | ) | const |
Definition at line 1489 of file interpreter.cc.
References tree_evaluator::mfilename().
bool interpreter::mislocked | ( | bool | skip_first = false | ) | const |
Definition at line 1433 of file interpreter.cc.
References tree_evaluator::mislocked().
Referenced by octave::Fmislocked(), and mislocked().
bool interpreter::mislocked | ( | const char * | nm | ) |
Definition at line 1462 of file interpreter.cc.
References error(), and mislocked().
bool interpreter::mislocked | ( | const std::string & | nm | ) |
Definition at line 1471 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 1421 of file interpreter.cc.
References tree_evaluator::mlock().
Referenced by octave::Fmlock().
void interpreter::munlock | ( | bool | skip_first = false | ) | const |
Definition at line 1427 of file interpreter.cc.
References tree_evaluator::munlock().
Referenced by octave::Fmunlock(), and munlock().
void interpreter::munlock | ( | const char * | nm | ) |
Definition at line 1439 of file interpreter.cc.
void interpreter::munlock | ( | const std::string & | nm | ) |
Definition at line 1448 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 813 of file interpreter.cc.
void interpreter::pause | ( | ) |
Definition at line 1925 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 1966 of file interpreter.cc.
References input_system::PS1().
octave_value interpreter::PS1 | ( | const octave_value_list & | args, |
int | nargout | ||
) |
Definition at line 1960 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 1972 of file interpreter.cc.
References input_system::PS1().
std::string interpreter::PS2 | ( | ) | const |
Definition at line 1990 of file interpreter.cc.
References input_system::PS2().
octave_value interpreter::PS2 | ( | const octave_value_list & | args, |
int | nargout | ||
) |
Definition at line 1984 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 1996 of file interpreter.cc.
References input_system::PS2().
std::string interpreter::PS4 | ( | ) | const |
Definition at line 2014 of file interpreter.cc.
References tree_evaluator::PS4().
octave_value interpreter::PS4 | ( | const octave_value_list & | args, |
int | nargout | ||
) |
Definition at line 2008 of file interpreter.cc.
References tree_evaluator::PS4().
std::string interpreter::PS4 | ( | const std::string & | s | ) |
Definition at line 2020 of file interpreter.cc.
References tree_evaluator::PS4().
void interpreter::quit | ( | int | exit_status, |
bool | force = false , |
||
bool | confirm = true |
||
) |
Definition at line 2108 of file interpreter.cc.
References event_manager::confirm_shutdown(), evalin(), and symbol_exist().
|
inline |
Definition at line 180 of file interpreter.h.
|
inline |
Definition at line 175 of file interpreter.h.
void interpreter::recover_from_exception | ( | ) |
Definition at line 2083 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::evalin(), base_parser::finish_array_list(), 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 2160 of file interpreter.cc.
void interpreter::remove_debug_watch_expression | ( | const std::string & | expr | ) |
Definition at line 2052 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 1377 of file interpreter.cc.
References error(), and get_current_scope().
void interpreter::resume | ( | ) |
Definition at line 1947 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 1978 of file interpreter.cc.
References input_system::set_PS1().
void interpreter::set_PS2 | ( | const std::string & | s | ) |
Definition at line 2002 of file interpreter.cc.
References input_system::set_PS2().
void interpreter::set_PS4 | ( | const std::string & | s | ) |
Definition at line 2026 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 1735 of file interpreter.cc.
References tree_evaluator::source_file(), and verbose().
Referenced by octave::source_file().
void interpreter::stop | ( | ) |
Definition at line 1935 of file interpreter.cc.
References tree_evaluator::dbquit(), tree_evaluator::in_debug_repl(), and interrupt().
|
inlinestatic |
Definition at line 554 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 1695 of file interpreter.cc.
References tree_evaluator::top_level_assign().
std::list< std::string > interpreter::top_level_variable_names | ( | ) |
Definition at line 1869 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 1689 of file interpreter.cc.
References tree_evaluator::top_level_varval().
|
inline |
Definition at line 195 of file interpreter.h.
|
inline |
Definition at line 190 of file interpreter.h.
std::list< std::string > interpreter::user_function_names | ( | ) |
Definition at line 1881 of file interpreter.cc.
References symbol_table::user_function_names().
std::list< std::string > interpreter::variable_names | ( | ) |
Definition at line 1875 of file interpreter.cc.
References tree_evaluator::variable_names().
octave_value interpreter::varval | ( | const std::string & | name | ) | const |
Definition at line 1714 of file interpreter.cc.
References tree_evaluator::varval().
Referenced by octave::F__varval__(), and load_save_system::save_vars().
|
inline |
Definition at line 185 of file interpreter.h.
Referenced by source_file().