GNU Octave  8.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
parse.h File Reference
#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"
Include dependency graph for parse.h:
This graph shows which files directly or indirectly include this file:

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
 

Function Documentation

◆ cleanup_statement_list()

OCTINTERP_API void cleanup_statement_list ( tree_statement_list **  lst)

Definition at line 10501 of file oct-parse.cc.

◆ feval() [1/5]

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.

Parameters
nameThe name of the function to call.
argsThe arguments to the function.
nargoutThe number of output arguments expected.
Returns
A list of output values. The length of the list is not necessarily the same as 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().

◆ feval() [2/5]

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().

◆ feval() [3/5]

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().

◆ feval() [4/5]

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().

◆ feval() [5/5]

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().

◆ get_help_from_file() [1/2]

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().

◆ get_help_from_file() [2/2]

OCTINTERP_API std::string get_help_from_file ( const std::string &  nm,
bool &  symbol_found,
std::string &  file 
)

◆ load_fcn_from_file()

◆ parse_fcn_file()

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 
)

◆ source_file()

OCTINTERP_API void source_file ( const std::string &  file_name,
const std::string &  context = "",
bool  verbose = false,
bool  require_file = true 
)

Variable Documentation

◆ octave_debug

int octave_debug
extern