GNU Octave
3.8.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
|
#include <cstdio>
#include <string>
#include <stack>
#include <vector>
#include <map>
#include "lex.h"
#include "symtab.h"
#include "token.h"
#include "oct-obj.h"
Go to the source code of this file.
Classes | |
class | octave_base_parser |
class | octave_parser |
class | octave_push_parser |
Functions | |
OCTINTERP_API string_vector | autoloaded_functions (void) |
OCTINTERP_API void | cleanup_statement_list (tree_statement_list **lst) |
OCTINTERP_API octave_value_list | eval_string (const std::string &, bool silent, int &parse_status, int hargout) |
OCTINTERP_API octave_value | eval_string (const std::string &, bool silent, int &parse_status) |
OCTINTERP_API octave_value_list | feval (const std::string &name, const octave_value_list &args=octave_value_list(), int nargout=0) |
OCTINTERP_API octave_value_list | feval (octave_function *fcn, const octave_value_list &args=octave_value_list(), int nargout=0) |
OCTINTERP_API octave_value_list | feval (const octave_value_list &args, int nargout=0) |
OCTINTERP_API std::string | get_help_from_file (const std::string &nm, bool &symbol_found, std::string &file) |
OCTINTERP_API std::string | get_help_from_file (const std::string &nm, bool &symbol_found) |
OCTINTERP_API octave_function * | load_fcn_from_file (const std::string &file_name, const std::string &dir_name=std::string(), const std::string &dispatch_type=std::string(), const std::string &fcn_name=std::string(), bool autoload=false) |
OCTINTERP_API std::string | lookup_autoload (const std::string &nm) |
OCTINTERP_API string_vector | reverse_lookup_autoload (const std::string &nm) |
OCTINTERP_API void | source_file (const std::string &file_name, const std::string &context=std::string(), bool verbose=false, bool require_file=true, const std::string &warn_for=std::string()) |
Variables | |
octave_base_lexer * | LEXER |
int | octave_debug |
bool | reading_startup_message_printed |
OCTINTERP_API string_vector autoloaded_functions | ( | void | ) |
Referenced by F__list_functions__(), and make_name_list().
OCTINTERP_API void cleanup_statement_list | ( | tree_statement_list ** | lst | ) |
OCTINTERP_API octave_value_list eval_string | ( | const std::string & | , |
bool | silent, | ||
int & | parse_status, | ||
int | hargout | ||
) |
Referenced by gh_manager::do_execute_callback(), do_who(), execute_eval_option_code(), extract_function(), generate_struct_completions(), get_user_input(), octave_fcn_handle::load_ascii(), octave_fcn_handle::load_binary(), octave_fcn_handle::load_hdf5(), looks_like_struct(), mexEvalString(), octave_fcn_inline::octave_fcn_inline(), and read_mat5_binary_element().
OCTINTERP_API octave_value eval_string | ( | const std::string & | , |
bool | silent, | ||
int & | parse_status | ||
) |
OCTINTERP_API octave_value_list feval | ( | const std::string & | name, |
const octave_value_list & | args = octave_value_list() , |
||
int | nargout = 0 |
||
) |
Referenced by octave_class::all_strings(), bind_internal_variable(), compare_property_values(), DEFCONSTFUN(), gh_manager::do_execute_callback(), gtk_manager::do_get_toolkit(), do_octave_atexit(), do_who(), named_hook_function::eval(), Fdot(), Fquadcc(), octave_class::index_vector(), install_oct_parse_fcns(), interactive_input(), octave_class::load_ascii(), octave_class::load_binary(), octave_class::load_hdf5(), maybe_missing_function_hook(), mexCallMATLAB(), octave_class::numel(), gnuplot_graphics_toolkit::print_figure(), print_usage(), octave_class::print_with_name(), read_mat5_binary_element(), gnuplot_graphics_toolkit::redraw_figure(), octave_class::save_ascii(), octave_class::save_binary(), octave_class::save_hdf5(), save_mat5_binary_element(), octave_class::size(), octave_class::subsasgn_common(), and octave_class::subsref().
OCTINTERP_API octave_value_list feval | ( | octave_function * | fcn, |
const octave_value_list & | args = octave_value_list() , |
||
int | nargout = 0 |
||
) |
OCTINTERP_API octave_value_list feval | ( | const octave_value_list & | args, |
int | nargout = 0 |
||
) |
OCTINTERP_API std::string get_help_from_file | ( | const std::string & | nm, |
bool & | symbol_found, | ||
std::string & | file | ||
) |
Referenced by raw_help_from_file().
OCTINTERP_API std::string get_help_from_file | ( | const std::string & | nm, |
bool & | symbol_found | ||
) |
OCTINTERP_API octave_function* load_fcn_from_file | ( | const std::string & | file_name, |
const std::string & | dir_name = std::string() , |
||
const std::string & | dispatch_type = std::string() , |
||
const std::string & | fcn_name = std::string() , |
||
bool | autoload = false |
||
) |
Referenced by symbol_table::fcn_info::fcn_info_rep::find_autoload(), symbol_table::fcn_info::fcn_info_rep::find_user_function(), symbol_table::fcn_info::fcn_info_rep::load_class_constructor(), symbol_table::fcn_info::fcn_info_rep::load_class_method(), load_out_of_date_fcn(), symbol_table::fcn_info::fcn_info_rep::load_private_function(), read_mat5_binary_element(), and octave_fcn_handle::set_fcn().
OCTINTERP_API std::string lookup_autoload | ( | const std::string & | nm | ) |
Referenced by symbol_table::fcn_info::fcn_info_rep::find_autoload(), out_of_date_check(), and symbol_exist().
OCTINTERP_API string_vector reverse_lookup_autoload | ( | const std::string & | nm | ) |
OCTINTERP_API void source_file | ( | const std::string & | file_name, |
const std::string & | context = std::string() , |
||
bool | verbose = false , |
||
bool | require_file = true , |
||
const std::string & | warn_for = std::string() |
||
) |
Referenced by do_edit_history(), do_run_history(), execute_pkg_add_or_del(), and safe_source_file().
octave_base_lexer* LEXER |
Definition at line 136 of file oct-parse.cc.
int octave_debug |
bool reading_startup_message_printed |
Definition at line 148 of file oct-parse.cc.
Referenced by octave_execute_interpreter().