#include "octave-config.h"
#include <cstdio>
#include <deque>
#include <map>
#include <memory>
#include <set>
#include <string>
#include "input.h"
#include "lex.h"
#include "pt-misc.h"
#include "symscope.h"
#include "token.h"
#include "ovl.h"
Go to the source code of this file.
Classes | |
class | base_parser |
class | base_parser::parent_scope_info |
class | parser |
class | push_parser |
Functions | |
OCTINTERP_API void | cleanup_statement_list (tree_statement_list **lst) |
OCTINTERP_API 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... | |
OCTINTERP_API octave_value_list | feval (const octave_value &val, 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 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 std::string | get_help_from_file (const std::string &nm, bool &symbol_found) |
OCTINTERP_API std::string | get_help_from_file (const std::string &nm, bool &symbol_found, std::string &file) |
OCTINTERP_API octave_value | load_fcn_from_file (const std::string &file_name, const std::string &dir_name="", const std::string &dispatch_type="", const std::string &package_name="", const std::string &fcn_name="", bool autoload=false) |
OCTINTERP_API octave_value | parse_fcn_file (interpreter &interp, const std::string &full_file, const std::string &file, const std::string &dir_name, const std::string &dispatch_type, const std::string &package_name, bool require_file, bool force_script, bool autoload, bool relative_lookup) |
OCTINTERP_API void | source_file (const std::string &file_name, const std::string &context="", bool verbose=false, bool require_file=true) |
Variables | |
int | octave_debug |
OCTINTERP_API void cleanup_statement_list | ( | tree_statement_list ** | lst | ) |
Definition at line 10501 of file oct-parse.cc.
OCTINTERP_API octave_value_list feval | ( | const char * | name, |
const octave_value_list & | args, | ||
int | nargout | ||
) |
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 10370 of file oct-parse.cc.
References __get_interpreter__(), and interpreter::feval().
Referenced by attempt_type_conversion(), tree_evaluator::bind_ans(), octave_oncleanup::call_object_destructor(), compare_property_values(), daspk_user_function(), daspk_user_jacobian(), dasrt_user_cf(), dasrt_user_f(), dasrt_user_j(), dassl_user_function(), dassl_user_jacobian(), do_class_concat(), call_stack::do_who(), eigs_callback::eigs_complex_func(), eigs_callback::eigs_func(), named_hook_function::eval(), fcn_handle_hook_function::eval(), tree_simple_assignment::evaluate(), tree_multi_assignment::evaluate_n(), tree_identifier::evaluate_n(), cdef_method::cdef_method_rep::execute(), Fbsxfun(), Fdisplay(), Fquadcc(), get_output_list(), gtk_manager::get_toolkit(), cdef_property::cdef_property_rep::get_value(), have_gnuplot_binary(), octave_class::index_vector(), octave_class::is_true(), octave_class::load_ascii(), octave_class::load_binary(), octave_class::load_hdf5(), lsode_user_function(), lsode_user_jacobian(), maybe_missing_function_hook(), cdef_package::cdef_package_rep::meta_subsref(), mexCallMATLAB(), oct_binop_default(), oct_unop_default(), gnuplot_graphics_toolkit::print_figure(), print_usage(), quad_float_user_function(), quad_user_function(), read_mat5_binary_element(), octave_class::reconstruct_exemplar(), gnuplot_graphics_toolkit::redraw_figure(), octave_class::save_ascii(), octave_class::save_binary(), octave_class::save_hdf5(), save_mat5_binary_element(), cdef_property::cdef_property_rep::set_value(), octave_class::size(), octave_class::string_vector_value(), octave_class::subsasgn_common(), octave_class::subsref(), and octave_class::xnumel().
OCTINTERP_API octave_value_list feval | ( | const octave_value & | val, |
const octave_value_list & | args = octave_value_list() , |
||
int | nargout = 0 |
||
) |
Definition at line 10394 of file oct-parse.cc.
References __get_interpreter__(), and interpreter::feval().
OCTINTERP_API octave_value_list feval | ( | const octave_value_list & | args, |
int | nargout = 0 |
||
) |
Definition at line 10402 of file oct-parse.cc.
References __get_interpreter__(), and interpreter::feval().
OCTINTERP_API octave_value_list feval | ( | const std::string & | name, |
const octave_value_list & | args = octave_value_list() , |
||
int | nargout = 0 |
||
) |
Definition at line 10378 of file oct-parse.cc.
References __get_interpreter__(), and interpreter::feval().
OCTINTERP_API octave_value_list feval | ( | octave_function * | fcn, |
const octave_value_list & | args = octave_value_list() , |
||
int | nargout = 0 |
||
) |
Definition at line 10386 of file oct-parse.cc.
References __get_interpreter__(), and interpreter::feval().
OCTINTERP_API std::string get_help_from_file | ( | const std::string & | nm, |
bool & | symbol_found | ||
) |
Definition at line 10110 of file oct-parse.cc.
References get_help_from_file().
OCTINTERP_API std::string get_help_from_file | ( | const std::string & | nm, |
bool & | symbol_found, | ||
std::string & | file | ||
) |
Definition at line 10064 of file oct-parse.cc.
References __get_interpreter__(), dir_sep_str(), octave_function::doc_string(), fcn_file_in_path(), octave_value::function_value(), octave_value::is_defined(), and parse_fcn_file().
Referenced by get_help_from_file().
OCTINTERP_API octave_value load_fcn_from_file | ( | const std::string & | file_name, |
const std::string & | dir_name = "" , |
||
const std::string & | dispatch_type = "" , |
||
const std::string & | package_name = "" , |
||
const std::string & | fcn_name = "" , |
||
bool | autoload = false |
||
) |
Definition at line 10117 of file oct-parse.cc.
References __get_interpreter__(), absolute_pathname(), dir_sep_str(), octave_function::doc_string(), octave_function::document(), octave_value::function_value(), interpreter::get_dynamic_loader(), octave_value::is_defined(), len, dynamic_loader::load_mex(), dynamic_loader::load_oct(), make_absolute(), octave_value(), parse_fcn_file(), and octave_function::stash_package_name().
Referenced by cdef_method::cdef_method_rep::check_method(), fcn_info::fcn_info_rep::find_autoload(), fcn_info::fcn_info_rep::find_user_function(), fcn_info::fcn_info_rep::load_class_constructor(), fcn_info::fcn_info_rep::load_class_method(), load_out_of_date_fcn(), fcn_info::fcn_info_rep::load_private_function(), and read_mat5_binary_element().
OCTINTERP_API octave_value parse_fcn_file | ( | interpreter & | interp, |
const std::string & | full_file, | ||
const std::string & | file, | ||
const std::string & | dir_name, | ||
const std::string & | dispatch_type, | ||
const std::string & | package_name, | ||
bool | require_file, | ||
bool | force_script, | ||
bool | autoload, | ||
bool | relative_lookup | ||
) |
Definition at line 714 of file oct-parse.cc.
Referenced by F__parse_file__(), get_help_from_file(), load_fcn_from_file(), and tree_evaluator::source_file().
OCTINTERP_API void source_file | ( | const std::string & | file_name, |
const std::string & | context = "" , |
||
bool | verbose = false , |
||
bool | require_file = true |
||
) |
Definition at line 10319 of file oct-parse.cc.
References __get_interpreter__(), and interpreter::source_file().
Referenced by history_system::do_edit_history(), history_system::do_run_history(), load_path::execute_pkg_add_or_del(), and safe_source_file().
|
extern |
Referenced by cmdline_options::cmdline_options(), and F__parser_debug_flag__().