#include <cstdio>#include <cstdlib>#include <iostream>#include <map>#include <sstream>#include "Matrix.h"#include "cmd-edit.h"#include "cmd-hist.h"#include "file-ops.h"#include "file-stat.h"#include "oct-env.h"#include "oct-time.h"#include "quit.h"#include "Cell.h"#include "anon-fcn-validator.h"#include "builtin-defun-decls.h"#include "defun.h"#include "dynamic-ld.h"#include "error.h"#include "input.h"#include "interpreter-private.h"#include "interpreter.h"#include "lex.h"#include "load-path.h"#include "lo-sysdep.h"#include "oct-hist.h"#include "oct-map.h"#include "ov-classdef.h"#include "ov-fcn-handle.h"#include "ov-usr-fcn.h"#include "ov-null-mat.h"#include "pager.h"#include "parse.h"#include "pt-all.h"#include "pt-eval.h"#include "separator-list.h"#include "symtab.h"#include "token.h"#include "unwind-prot.h"#include "utils.h"#include "variables.h"#include "oct-parse.h"#include <limits.h>Go to the source code of this file.
Macros | |
| #define | lexer (parser.get_lexer ()) |
| #define | octave_nerrs yyps->octave_nerrs |
| #define | OCTAVE_YYUSE(...) |
| #define | scanner lexer.m_scanner |
| #define | YY_(Msgid) Msgid |
| #define | YY_ACCESSING_SYMBOL(State) YY_CAST (yysymbol_kind_t, yystos[State]) |
| Accessing symbol of state STATE. | |
| #define | YY_ASSERT(E) ((void) (0 && (E))) |
| #define | YY_ATTRIBUTE_PURE |
| #define | YY_ATTRIBUTE_UNUSED |
| #define | YY_CAST(Type, Val) ((Type) (Val)) |
| #define | YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN |
| #define | YY_IGNORE_MAYBE_UNINITIALIZED_END |
| #define | YY_IGNORE_USELESS_CAST_BEGIN |
| #define | YY_IGNORE_USELESS_CAST_END |
| #define | YY_INITIAL_VALUE(Value) Value |
| #define | YY_NULLPTR ((void*)0) |
| #define | YY_REDUCE_PRINT(Rule) |
| #define | YY_REINTERPRET_CAST(Type, Val) ((Type) (Val)) |
| #define | YY_STACK_PRINT(Bottom, Top) |
| #define | YY_SYMBOL_PRINT(Title, Kind, Value, Location) |
| #define | YY_USE(E) ((void) (E)) |
| #define | YYABORT goto yyabortlab |
| #define | YYACCEPT goto yyacceptlab |
| #define | YYBACKUP(Token, Value) |
| #define | YYBISON 30802 |
| #define | YYBISON_VERSION "3.8.2" |
| #define | yyclearin (yychar = OCTAVE_EMPTY) |
| #define | YYCOPY(Dst, Src, Count) |
| #define | YYCOPY_NEEDED 1 |
| #define | yydebug octave_debug |
| #define | YYDEBUG 1 |
| #define | YYDPRINTF(Args) ((void) 0) |
| #define | YYERRCODE OCTAVE_UNDEF |
| #define | yyerrok (yyerrstatus = 0) |
| #define | yyerror octave_error |
| #define | YYERROR goto yyerrorlab |
| #define | yyerrstatus yyps->yyerrstatus |
| #define | YYFINAL 120 |
| #define | YYFREE free |
| #define | YYINITDEPTH 200 |
| #define | YYLAST 1520 |
| #define | yylex octave_lex |
| #define | YYMALLOC malloc |
| #define | YYMAXDEPTH 10000 |
| #define | YYMAXUTOK 334 |
| #define | yynerrs octave_nerrs |
| #define | YYNNTS 126 |
| #define | YYNOMEM goto yyexhaustedlab |
| #define | YYNRULES 309 |
| #define | YYNSTATES 529 |
| #define | YYNTOKENS 99 |
| #define | YYPACT_NINF (-376) |
| #define | yypact_value_is_default(Yyn) ((Yyn) == YYPACT_NINF) |
| #define | yyparse octave_parse |
| #define | YYPOPSTACK(N) (yyvsp -= (N), yyssp -= (N)) |
| #define | yypstate octave_pstate |
| #define | yypstate_clear octave_pstate_clear |
| #define | yypstate_delete octave_pstate_delete |
| #define | yypstate_new octave_pstate_new |
| #define | YYPTRDIFF_MAXIMUM LONG_MAX |
| #define | YYPTRDIFF_T long |
| #define | YYPULL 1 |
| #define | yypull_parse octave_pull_parse |
| #define | YYPURE 1 |
| #define | YYPUSH 1 |
| #define | yypush_parse octave_push_parse |
| #define | YYRECOVERING() (!!yyerrstatus) |
| #define | YYSIZE_MAXIMUM |
| #define | YYSIZE_T unsigned |
| #define | YYSIZEOF(X) YY_CAST (YYPTRDIFF_T, sizeof (X)) |
| #define | YYSKELETON_NAME "yacc.c" |
| #define | yyss yyps->yyss |
| #define | yyssa yyps->yyssa |
| #define | yyssp yyps->yyssp |
| #define | YYSTACK_ALLOC YYMALLOC |
| #define | YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM |
| #define | YYSTACK_BYTES(N) |
| #define | YYSTACK_FREE YYFREE |
| #define | YYSTACK_GAP_MAXIMUM (YYSIZEOF (union yyalloc) - 1) |
| #define | YYSTACK_RELOCATE(Stack_alloc, Stack) |
| #define | yystacksize yyps->yystacksize |
| #define | yystate yyps->yystate |
| #define | YYSTYPE OCTAVE_STYPE |
| #define | YYTABLE_NINF (-301) |
| #define | yytable_value_is_error(Yyn) 0 |
| #define | YYTRANSLATE(YYX) |
| #define | yyvs yyps->yyvs |
| #define | yyvsa yyps->yyvsa |
| #define | yyvsp yyps->yyvsp |
Typedefs | |
| typedef int | yy_state_fast_t |
| typedef yytype_int16 | yy_state_t |
| typedef enum yysymbol_kind_t | yysymbol_kind_t |
| typedef short | yytype_int16 |
| typedef signed char | yytype_int8 |
| typedef unsigned short | yytype_uint16 |
| typedef unsigned char | yytype_uint8 |
Functions | |
| octave_value_list | F__parse_file__ (octave::interpreter &interp, const octave_value_list &args, int) |
| octave_value_list | F__parser_debug_flag__ (const octave_value_list &args, int nargout) |
| octave_value_list | Fassignin (octave::interpreter &interp, const octave_value_list &args, int) |
| octave_value_list | Fautoload (octave::interpreter &interp, const octave_value_list &args, int) |
| octave_value_list | Fbuiltin (octave::interpreter &interp, const octave_value_list &args, int nargout) |
| 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. | |
| octave_value_list | feval (const octave_value &val, const octave_value_list &args, int nargout) |
| octave_value_list | feval (const octave_value_list &args, int nargout) |
| octave_value_list | feval (const std::string &name, const octave_value_list &args, int nargout) |
| octave_value_list | Feval (octave::interpreter &interp, const octave_value_list &args, int nargout) |
| octave_value_list | feval (octave_function *fcn, const octave_value_list &args, int nargout) |
| octave_value_list | Fevalc (octave::interpreter &interp, const octave_value_list &args, int nargout) |
| octave_value_list | Fevalin (octave::interpreter &interp, const octave_value_list &args, int nargout) |
| octave_value_list | Ffeval (octave::interpreter &interp, const octave_value_list &args, int nargout) |
| octave_value_list | Fmfilename (octave::interpreter &interp, const octave_value_list &args, int) |
| void | free (void *) |
| octave_value_list | Fsource (octave::interpreter &interp, const octave_value_list &args, int) |
| std::string | get_help_from_file (const std::string &nm, bool &symbol_found) |
| std::string | get_help_from_file (const std::string &nm, bool &symbol_found, std::string &full_file) |
| 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) |
| void * | malloc (unsigned) |
| int | octave_lex (OCTAVE_STYPE *, void *) |
| The main scanner function which does all the work. | |
| int | octave_parse (octave::base_parser &parser) |
| void | octave_pstate_delete (octave_pstate *yyps) |
| octave_pstate * | octave_pstate_new (void) |
| int | octave_pull_parse (octave_pstate *yyps, octave::base_parser &parser) |
| int | octave_push_parse (octave_pstate *yyps, int yypushed_char, OCTAVE_STYPE const *yypushed_val, octave::base_parser &parser) |
| 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) |
| void | source_file (const std::string &file_name, const std::string &context, bool verbose, bool require_file) |
| #define lexer (parser.get_lexer ()) |
Definition at line 146 of file oct-parse.cc.
| #define octave_nerrs yyps->octave_nerrs |
Definition at line 3017 of file oct-parse.cc.
| #define OCTAVE_YYUSE | ( | ... | ) |
Definition at line 155 of file oct-parse.cc.
| #define scanner lexer.m_scanner |
Definition at line 147 of file oct-parse.cc.
| #define YY_ | ( | Msgid | ) | Msgid |
Definition at line 549 of file oct-parse.cc.
| #define YY_ACCESSING_SYMBOL | ( | State | ) | YY_CAST (yysymbol_kind_t, yystos[State]) |
| #define YY_ASSERT | ( | E | ) | ((void) (0 && (E))) |
Definition at line 615 of file oct-parse.cc.
| #define YY_ATTRIBUTE_PURE |
Definition at line 558 of file oct-parse.cc.
| #define YY_ATTRIBUTE_UNUSED |
Definition at line 566 of file oct-parse.cc.
| #define YY_CAST | ( | Type, | |
| Val | |||
| ) | ((Type) (Val)) |
Definition at line 174 of file oct-parse.cc.
| #define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN |
Definition at line 595 of file oct-parse.cc.
| #define YY_IGNORE_MAYBE_UNINITIALIZED_END |
Definition at line 596 of file oct-parse.cc.
| #define YY_IGNORE_USELESS_CAST_BEGIN |
Definition at line 610 of file oct-parse.cc.
| #define YY_IGNORE_USELESS_CAST_END |
Definition at line 611 of file oct-parse.cc.
| #define YY_INITIAL_VALUE | ( | Value | ) | Value |
Definition at line 592 of file oct-parse.cc.
| #define YY_NULLPTR ((void*)0) |
Definition at line 186 of file oct-parse.cc.
| #define YY_REDUCE_PRINT | ( | Rule | ) |
Definition at line 1661 of file oct-parse.cc.
| #define YY_REINTERPRET_CAST | ( | Type, | |
| Val | |||
| ) | ((Type) (Val)) |
Definition at line 175 of file oct-parse.cc.
| #define YY_STACK_PRINT | ( | Bottom, | |
| Top | |||
| ) |
Definition at line 1660 of file oct-parse.cc.
| #define YY_SYMBOL_PRINT | ( | Title, | |
| Kind, | |||
| Value, | |||
| Location | |||
| ) |
Definition at line 1659 of file oct-parse.cc.
| #define YY_USE | ( | E | ) | ((void) (E)) |
Definition at line 572 of file oct-parse.cc.
| #define YYABORT goto yyabortlab |
Definition at line 1508 of file oct-parse.cc.
| #define YYACCEPT goto yyacceptlab |
Definition at line 1507 of file oct-parse.cc.
| #define YYBACKUP | ( | Token, | |
| Value | |||
| ) |
Definition at line 1515 of file oct-parse.cc.
| #define YYBISON 30802 |
Definition at line 49 of file oct-parse.cc.
| #define YYBISON_VERSION "3.8.2" |
Definition at line 52 of file oct-parse.cc.
| #define yyclearin (yychar = OCTAVE_EMPTY) |
Definition at line 1505 of file oct-parse.cc.
| #define YYCOPY | ( | Dst, | |
| Src, | |||
| Count | |||
| ) |
Definition at line 708 of file oct-parse.cc.
| #define YYCOPY_NEEDED 1 |
Definition at line 680 of file oct-parse.cc.
| #define yydebug octave_debug |
Definition at line 78 of file oct-parse.cc.
| #define YYDEBUG 1 |
Definition at line 85 of file oct-parse.cc.
| #define YYDPRINTF | ( | Args | ) | ((void) 0) |
Definition at line 1658 of file oct-parse.cc.
| #define YYERRCODE OCTAVE_UNDEF |
Definition at line 1534 of file oct-parse.cc.
| #define yyerrok (yyerrstatus = 0) |
Definition at line 1504 of file oct-parse.cc.
| #define yyerror octave_error |
Definition at line 77 of file oct-parse.cc.
| #define YYERROR goto yyerrorlab |
Definition at line 1509 of file oct-parse.cc.
| #define yyerrstatus yyps->yyerrstatus |
Definition at line 3019 of file oct-parse.cc.
| #define YYFINAL 120 |
Definition at line 721 of file oct-parse.cc.
| #define YYFREE free |
Definition at line 652 of file oct-parse.cc.
| #define YYINITDEPTH 200 |
Definition at line 1667 of file oct-parse.cc.
| #define YYLAST 1520 |
Definition at line 723 of file oct-parse.cc.
| #define yylex octave_lex |
Definition at line 76 of file oct-parse.cc.
| #define YYMALLOC malloc |
Definition at line 646 of file oct-parse.cc.
| #define YYMAXDEPTH 10000 |
Definition at line 1678 of file oct-parse.cc.
| #define YYMAXUTOK 334 |
Definition at line 735 of file oct-parse.cc.
| #define yynerrs octave_nerrs |
Definition at line 79 of file oct-parse.cc.
| #define YYNNTS 126 |
Definition at line 728 of file oct-parse.cc.
| #define YYNOMEM goto yyexhaustedlab |
Definition at line 1510 of file oct-parse.cc.
| #define YYNRULES 309 |
Definition at line 730 of file oct-parse.cc.
| #define YYNSTATES 529 |
Definition at line 732 of file oct-parse.cc.
| #define YYNTOKENS 99 |
Definition at line 726 of file oct-parse.cc.
| #define YYPACT_NINF (-376) |
Definition at line 888 of file oct-parse.cc.
| #define yypact_value_is_default | ( | Yyn | ) | ((Yyn) == YYPACT_NINF) |
Definition at line 890 of file oct-parse.cc.
| #define yyparse octave_parse |
Definition at line 69 of file oct-parse.cc.
| #define yypstate octave_pstate |
Definition at line 75 of file oct-parse.cc.
| #define yypstate_clear octave_pstate_clear |
Definition at line 73 of file oct-parse.cc.
| #define yypstate_delete octave_pstate_delete |
Definition at line 74 of file oct-parse.cc.
| #define yypstate_new octave_pstate_new |
Definition at line 72 of file oct-parse.cc.
| #define YYPTRDIFF_MAXIMUM LONG_MAX |
Definition at line 509 of file oct-parse.cc.
| #define YYPTRDIFF_T long |
Definition at line 508 of file oct-parse.cc.
| #define YYPULL 1 |
Definition at line 64 of file oct-parse.cc.
| #define yypull_parse octave_pull_parse |
Definition at line 71 of file oct-parse.cc.
| #define YYPURE 1 |
Definition at line 58 of file oct-parse.cc.
| #define YYPUSH 1 |
Definition at line 61 of file oct-parse.cc.
| #define yypush_parse octave_push_parse |
Definition at line 70 of file oct-parse.cc.
| #define YYRECOVERING | ( | ) | (!!yyerrstatus) |
Definition at line 1513 of file oct-parse.cc.
| #define YYSIZE_MAXIMUM |
Definition at line 526 of file oct-parse.cc.
| #define YYSIZE_T unsigned |
Definition at line 522 of file oct-parse.cc.
| #define YYSIZEOF | ( | X | ) | YY_CAST (YYPTRDIFF_T, sizeof (X)) |
Definition at line 532 of file oct-parse.cc.
| #define YYSKELETON_NAME "yacc.c" |
Definition at line 55 of file oct-parse.cc.
| #define yyss yyps->yyss |
Definition at line 3021 of file oct-parse.cc.
| #define yyssa yyps->yyssa |
Definition at line 3020 of file oct-parse.cc.
| #define yyssp yyps->yyssp |
Definition at line 3022 of file oct-parse.cc.
| #define YYSTACK_ALLOC YYMALLOC |
Definition at line 632 of file oct-parse.cc.
| #define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM |
Definition at line 635 of file oct-parse.cc.
| #define YYSTACK_BYTES | ( | N | ) |
Definition at line 676 of file oct-parse.cc.
| #define YYSTACK_FREE YYFREE |
Definition at line 633 of file oct-parse.cc.
Definition at line 672 of file oct-parse.cc.
| #define YYSTACK_RELOCATE | ( | Stack_alloc, | |
| Stack | |||
| ) |
Definition at line 687 of file oct-parse.cc.
| #define yystacksize yyps->yystacksize |
Definition at line 3026 of file oct-parse.cc.
| #define yystate yyps->yystate |
Definition at line 3018 of file oct-parse.cc.
| #define YYSTYPE OCTAVE_STYPE |
Definition at line 67 of file oct-parse.cc.
| #define YYTABLE_NINF (-301) |
Definition at line 893 of file oct-parse.cc.
| #define yytable_value_is_error | ( | Yyn | ) | 0 |
Definition at line 895 of file oct-parse.cc.
| #define YYTRANSLATE | ( | YYX | ) |
Definition at line 740 of file oct-parse.cc.
| #define yyvs yyps->yyvs |
Definition at line 3024 of file oct-parse.cc.
| #define yyvsa yyps->yyvsa |
Definition at line 3023 of file oct-parse.cc.
| #define yyvsp yyps->yyvsp |
Definition at line 3025 of file oct-parse.cc.
| typedef int yy_state_fast_t |
Definition at line 539 of file oct-parse.cc.
| typedef yytype_int16 yy_state_t |
Definition at line 536 of file oct-parse.cc.
| typedef enum yysymbol_kind_t yysymbol_kind_t |
Definition at line 421 of file oct-parse.cc.
| typedef short yytype_int16 |
Definition at line 460 of file oct-parse.cc.
| typedef signed char yytype_int8 |
Definition at line 452 of file oct-parse.cc.
| typedef unsigned short yytype_uint16 |
Definition at line 492 of file oct-parse.cc.
| typedef unsigned char yytype_uint8 |
Definition at line 481 of file oct-parse.cc.
| anonymous enum |
| Enumerator | |
|---|---|
| YYENOMEM | |
Definition at line 1502 of file oct-parse.cc.
| enum yysymbol_kind_t |
Definition at line 192 of file oct-parse.cc.
| octave_value_list F__parse_file__ | ( | octave::interpreter & | interp, |
| const octave_value_list & | args, | ||
| int | |||
| ) |
Definition at line 10288 of file oct-parse.cc.
References octave_value::length(), octave_stdout, parse_fcn_file(), and print_usage().
| octave_value_list F__parser_debug_flag__ | ( | const octave_value_list & | args, |
| int | nargout | ||
| ) |
Definition at line 10270 of file oct-parse.cc.
References octave_debug, and set_internal_variable().
| octave_value_list Fassignin | ( | octave::interpreter & | interp, |
| const octave_value_list & | args, | ||
| int | |||
| ) |
Definition at line 10058 of file oct-parse.cc.
References print_usage().
| octave_value_list Fautoload | ( | octave::interpreter & | interp, |
| const octave_value_list & | args, | ||
| int | |||
| ) |
Definition at line 9691 of file oct-parse.cc.
References tree_evaluator::add_autoload(), error_with_id(), tree_evaluator::get_autoload_map(), octave_value::length(), print_usage(), and tree_evaluator::remove_autoload().
| octave_value_list Fbuiltin | ( | octave::interpreter & | interp, |
| const octave_value_list & | args, | ||
| int | nargout | ||
| ) |
Definition at line 9916 of file oct-parse.cc.
References symbol_table::builtin_find(), error(), octave_value::function_value(), octave_value::is_defined(), and print_usage().
| 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 9807 of file oct-parse.cc.
References __get_interpreter__(), and interpreter::feval().
| octave_value_list feval | ( | const octave_value & | val, |
| const octave_value_list & | args, | ||
| int | nargout | ||
| ) |
Definition at line 9831 of file oct-parse.cc.
References __get_interpreter__(), and interpreter::feval().
| octave_value_list feval | ( | const octave_value_list & | args, |
| int | nargout | ||
| ) |
Definition at line 9839 of file oct-parse.cc.
References __get_interpreter__(), and interpreter::feval().
| octave_value_list feval | ( | const std::string & | name, |
| const octave_value_list & | args, | ||
| int | nargout | ||
| ) |
Definition at line 9815 of file oct-parse.cc.
References __get_interpreter__(), and interpreter::feval().
| octave_value_list Feval | ( | octave::interpreter & | interp, |
| const octave_value_list & | args, | ||
| int | nargout | ||
| ) |
Definition at line 9975 of file oct-parse.cc.
References error(), octave_value_list::length(), and print_usage().
Referenced by Fevalc().
| octave_value_list feval | ( | octave_function * | fcn, |
| const octave_value_list & | args, | ||
| int | nargout | ||
| ) |
Definition at line 9823 of file oct-parse.cc.
References __get_interpreter__(), and interpreter::feval().
| octave_value_list Fevalc | ( | octave::interpreter & | interp, |
| const octave_value_list & | args, | ||
| int | nargout | ||
| ) |
Definition at line 10133 of file oct-parse.cc.
References Feval(), octave_stdout, octave_value_list::prepend(), and print_usage().
| octave_value_list Fevalin | ( | octave::interpreter & | interp, |
| const octave_value_list & | args, | ||
| int | nargout | ||
| ) |
Definition at line 10085 of file oct-parse.cc.
References print_usage().
| octave_value_list Ffeval | ( | octave::interpreter & | interp, |
| const octave_value_list & | args, | ||
| int | nargout | ||
| ) |
Definition at line 9884 of file oct-parse.cc.
References print_usage().
| octave_value_list Fmfilename | ( | octave::interpreter & | interp, |
| const octave_value_list & | args, | ||
| int | |||
| ) |
Definition at line 9737 of file oct-parse.cc.
References print_usage().
| void free | ( | void * | ) |
| octave_value_list Fsource | ( | octave::interpreter & | interp, |
| const octave_value_list & | args, | ||
| int | |||
| ) |
Definition at line 9779 of file oct-parse.cc.
References print_usage().
| std::string get_help_from_file | ( | const std::string & | nm, |
| bool & | symbol_found | ||
| ) |
Definition at line 9562 of file oct-parse.cc.
References get_help_from_file().
| std::string get_help_from_file | ( | const std::string & | nm, |
| bool & | symbol_found, | ||
| std::string & | full_file | ||
| ) |
Definition at line 9519 of file oct-parse.cc.
References __get_interpreter__(), 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().
| 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 | ||
| ) |
Definition at line 9569 of file oct-parse.cc.
References __get_interpreter__(), 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(), parse_fcn_file(), and octave_function::stash_package_name().
| void * malloc | ( | unsigned | ) |
|
extern |
The main scanner function which does all the work.
Definition at line 1621 of file lex.cc.
References ADD_EQ, AND_EQ, BLOCK_COMMENT_START, CMD_OR_OP, CMD_OR_UNARY_OP, COMMAND_START, curr_lexer, DIV_EQ, DQ_STRING, DQ_STRING_START, ECHO, EDIV, EDIV_EQ, ELEFTDIV, ELEFTDIV_EQ, EMUL, EMUL_EQ, EOB_ACT_CONTINUE_SCAN, EOB_ACT_END_OF_FILE, EOB_ACT_LAST_MATCH, EPOW, EPOW_EQ, EXPR_AND, EXPR_AND_AND, EXPR_EQ, EXPR_GE, EXPR_GT, EXPR_LE, EXPR_LT, EXPR_NE, EXPR_OR, EXPR_OR_OR, FCN_HANDLE, FQ_IDENT_START, HANDLE_EOB_OR_EOF, HANDLE_IDENTIFIER, HANDLE_NUMBER, HANDLE_STRING_CONTINUATION, HERMITIAN, INITIAL, INPUT_FILE, INPUT_FILE_START, LEFTDIV, LEFTDIV_EQ, LINE_COMMENT_START, MATRIX_START, MINUS_MINUS, MUL_EQ, OR_EQ, PLUS_PLUS, POW, POW_EQ, SQ_STRING, SQ_STRING_START, SUB_EQ, TRANSPOSE, YY_AT_BOL, YY_BREAK, YY_BUF_SIZE, YY_BUFFER_NEW, YY_BUFFER_NORMAL, yy_create_buffer, YY_CURRENT_BUFFER, YY_CURRENT_BUFFER_LVALUE, YY_DO_BEFORE_ACTION, YY_END_OF_BUFFER, YY_FATAL_ERROR, yy_load_buffer_state, YY_MORE_ADJ, YY_NEW_FILE, YY_RESTORE_YY_MORE_OFFSET, YY_RULE_SETUP, YY_SC_TO_UI, YY_START, YY_STATE_EOF, yyensure_buffer_stack, yyguts_t, yyin, yyleng, yyless, yylval, yyout, yytext, and yywrap.
Referenced by push_parser::run().
| int octave_parse | ( | octave::base_parser & | parser | ) |
Definition at line 2991 of file oct-parse.cc.
References YY_, yyerror, yypstate, yypstate_delete, yypstate_new, and yypull_parse.
| void octave_pstate_delete | ( | octave_pstate * | yyps | ) |
Definition at line 3061 of file oct-parse.cc.
References YYFREE, yyss, yyssa, and YYSTACK_FREE.
| octave_pstate * octave_pstate_new | ( | void | ) |
Definition at line 3047 of file oct-parse.cc.
References YY_CAST, YY_NULLPTR, YYINITDEPTH, YYMALLOC, yypstate, yypstate_clear, yyss, yyssa, yystacksize, yyvs, and yyvsa.
| int octave_pull_parse | ( | octave_pstate * | yyps, |
| octave::base_parser & | parser | ||
| ) |
Definition at line 3005 of file oct-parse.cc.
References scanner, YY_ASSERT, yylex, yylval, YYPUSH_MORE, yypush_parse, and YYSTYPE.
Referenced by parser::run().
| int octave_push_parse | ( | octave_pstate * | yyps, |
| int | yypushed_char, | ||
| OCTAVE_STYPE const * | yypushed_val, | ||
| octave::base_parser & | parser | ||
| ) |
Definition at line 3082 of file oct-parse.cc.
References base_parser::append_args_validation_list(), base_parser::append_argument_list(), base_parser::append_cell_row(), base_parser::append_classdef_attribute(), base_parser::append_classdef_enum(), base_parser::append_classdef_enum_block(), base_parser::append_classdef_event(), base_parser::append_classdef_events_block(), base_parser::append_classdef_method(), base_parser::append_classdef_methods_block(), base_parser::append_classdef_properties_block(), base_parser::append_classdef_property(), base_parser::append_classdef_superclass(), base_parser::append_decl_init_list(), base_parser::append_function_body(), base_parser::append_function_def_list(), base_parser::append_if_clause(), base_parser::append_matrix_row(), base_parser::append_parameter_list(), base_parser::append_statement_list(), base_parser::append_switch_case(), base_parser::bison_error(), base_parser::end_token_error(), base_parser::end_token_ok(), base_parser::endfunction_found(), base_parser::finish_cell(), base_parser::finish_classdef_external_method(), base_parser::finish_classdef_file(), base_parser::finish_if_command(), base_parser::finish_input(), base_parser::finish_matrix(), base_parser::finish_switch_command(), lexer::input_from_eval_string(), lexical_feedback::m_arguments_is_keyword, lexical_feedback::m_at_beginning_of_statement, lexical_feedback::m_classdef_element_names_are_keywords, lexical_feedback::m_defining_fcn, lexical_feedback::m_end_of_input, lexical_feedback::m_looking_at_anon_fcn_args, lexical_feedback::m_looking_at_decl_list, lexical_feedback::m_looking_at_function_handle, lexical_feedback::m_looking_at_indirect_ref, lexical_feedback::m_looking_at_matrix_or_assign_lhs, lexical_feedback::m_looking_at_parameter_list, lexical_feedback::m_looking_at_return_list, lexical_feedback::m_looking_for_object_index, lexical_feedback::m_maybe_classdef_get_set_method, lexical_feedback::m_nesting_level, lexical_feedback::m_parsed_function_name, lexical_feedback::m_parsing_anon_fcn_body, lexical_feedback::m_parsing_classdef, lexical_feedback::m_parsing_classdef_decl, lexical_feedback::m_parsing_classdef_get_method, lexical_feedback::m_parsing_classdef_set_method, lexical_feedback::m_parsing_classdef_superclass, lexical_feedback::m_reading_classdef_file, lexical_feedback::m_reading_fcn_file, lexical_feedback::m_reading_script_file, lexical_feedback::m_symtab_context, base_parser::make_anon_fcn_handle(), base_parser::make_arg_size_spec(), base_parser::make_arg_validation(), base_parser::make_arg_validation_fcns(), base_parser::make_args_attribute_list(), base_parser::make_args_validation_list(), base_parser::make_argument_list(), base_parser::make_arguments_block(), base_parser::make_assign_op(), base_parser::make_binary_op(), base_parser::make_black_hole(), base_parser::make_boolean_op(), base_parser::make_break_command(), base_parser::make_cell(), base_parser::make_classdef(), base_parser::make_classdef_attribute(), base_parser::make_classdef_attribute_list(), base_parser::make_classdef_body(), base_parser::make_classdef_enum(), base_parser::make_classdef_enum_block(), base_parser::make_classdef_enum_list(), base_parser::make_classdef_event(), base_parser::make_classdef_event_list(), base_parser::make_classdef_events_block(), base_parser::make_classdef_method_list(), base_parser::make_classdef_methods_block(), base_parser::make_classdef_properties_block(), base_parser::make_classdef_property(), base_parser::make_classdef_property_list(), base_parser::make_classdef_superclass(), base_parser::make_classdef_superclass_list(), base_parser::make_colon_expression(), base_parser::make_constant(), base_parser::make_continue_command(), base_parser::make_decl_command(), base_parser::make_decl_elt(), base_parser::make_decl_init_list(), base_parser::make_default_switch_case(), base_parser::make_do_until_command(), base_parser::make_end(), base_parser::make_fcn_handle(), base_parser::make_fcn_name(), base_parser::make_for_command(), base_parser::make_function(), base_parser::make_function_def_list(), base_parser::make_identifier(), base_parser::make_if_clause(), base_parser::make_index_expression(), base_parser::make_indirect_ref(), base_parser::make_matrix(), base_parser::make_metaclass_query(), base_parser::make_not_classdef_attribute(), base_parser::make_parameter_list(), base_parser::make_postfix_op(), base_parser::make_prefix_op(), base_parser::make_return_command(), base_parser::make_script(), base_parser::make_spmd_command(), base_parser::make_statement(), base_parser::make_statement_list(), base_parser::make_superclass_ref(), base_parser::make_switch_case(), base_parser::make_switch_case_list(), base_parser::make_try_command(), base_parser::make_unwind_command(), base_parser::make_while_command(), base_parser::make_word_list_command(), lexical_feedback::mark_as_variables(), tree_parameter_list::mark_in_delims(), base_parser::maybe_convert_to_braindead_shortcircuit(), OCTAVE_EMPTY, OCTAVE_EOF, OCTAVE_error, OCTAVE_UNDEF, OCTAVE_YYUSE, base_parser::parsing_local_functions(), lexical_feedback::symbol_table_context::pop(), lexical_feedback::symbol_table_context::push(), base_parser::push_fcn_symtab(), lexical_feedback::bbp_nesting_level::remove(), base_parser::set_stmt_print_flag(), base_parser::start_classdef_external_method(), base_parser::start_if_command(), base_parser::validate_array_list(), base_parser::validate_matrix_for_assignment(), base_parser::validate_param_list(), base_parser::validate_primary_fcn(), YY_, YY_ACCESSING_SYMBOL, YY_ASSERT, YY_CAST, YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN, YY_IGNORE_MAYBE_UNINITIALIZED_END, YY_IGNORE_USELESS_CAST_BEGIN, YY_IGNORE_USELESS_CAST_END, YY_INITIAL_VALUE, YY_REDUCE_PRINT, YY_STACK_PRINT, YY_SYMBOL_PRINT, YYABORT, YYACCEPT, yyalloc, YYDPRINTF, yyerror, YYERROR, yyerrstatus, YYFINAL, YYLAST, yylval, YYMAXDEPTH, yynerrs, YYNOMEM, YYNSTATES, YYNTOKENS, yypact_value_is_default, YYPOPSTACK, yypstate_clear, YYPTRDIFF_T, YYPUSH_MORE, YYSIZE_T, YYSIZEOF, yyss, yyssa, yyssp, YYSTACK_ALLOC, YYSTACK_BYTES, YYSTACK_FREE, YYSTACK_RELOCATE, yystacksize, yystate, YYSTYPE, YYSYMBOL_YYEMPTY, YYSYMBOL_YYEOF, YYSYMBOL_YYerror, yytable_value_is_error, YYTRANSLATE, yyvs, and yyvsp.
Referenced by push_parser::run().
| 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 9334 of file oct-parse.cc.
References YYSTYPE.
Referenced by F__parse_file__(), get_help_from_file(), load_fcn_from_file(), and tree_evaluator::source_file().
| void source_file | ( | const std::string & | file_name, |
| const std::string & | context, | ||
| bool | verbose, | ||
| bool | require_file | ||
| ) |
Definition at line 9757 of file oct-parse.cc.
References __get_interpreter__(), and interpreter::source_file().
Referenced by history_system::do_edit_history(), and history_system::do_run_history().