|
GNU Octave
4.0.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
|
#include <cassert>#include <cstdio>#include <cstdlib>#include <iostream>#include <map>#include <sstream>#include "Cell.h"#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 "comment-list.h"#include "defaults.h"#include "defun.h"#include "dirfns.h"#include "dynamic-ld.h"#include "error.h"#include "input.h"#include "lex.h"#include "load-path.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 "toplev.h"#include "pager.h"#include "parse.h"#include "pt-all.h"#include "pt-eval.h"#include "pt-funcall.h"#include "symtab.h"#include "token.h"#include "unwind-prot.h"#include "utils.h"#include "variables.h"#include <oct-parse.h>#include <stddef.h>
Go to the source code of this file.
Classes | |
| struct | octave_pstate |
| union | yyalloc |
Macros | |
| #define | _Noreturn YY_ATTRIBUTE ((__noreturn__)) |
| #define | ABORT_PARSE |
| #define | ADD_EQ 258 |
| #define | AND_EQ 268 |
| #define | BREAK 315 |
| #define | CASE 313 |
| #define | CATCH 321 |
| #define | CLASSDEF 325 |
| #define | CLEANUP 319 |
| #define | CONTINUE 316 |
| #define | DIV_EQ 261 |
| #define | DO 307 |
| #define | DQ_STRING 302 |
| #define | EDIV 287 |
| #define | EDIV_EQ 265 |
| #define | ELEFTDIV 288 |
| #define | ELEFTDIV_EQ 266 |
| #define | ELSE 311 |
| #define | ELSEIF 310 |
| #define | EMINUS 290 |
| #define | EMUL 286 |
| #define | EMUL_EQ 264 |
| #define | END 301 |
| #define | END_OF_INPUT 336 |
| #define | ENUMERATION 329 |
| #define | EPLUS 289 |
| #define | EPOW 296 |
| #define | EPOW_EQ 267 |
| #define | EVENTS 328 |
| #define | EXPR_AND 276 |
| #define | EXPR_AND_AND 274 |
| #define | EXPR_EQ 281 |
| #define | EXPR_GE 283 |
| #define | EXPR_GT 284 |
| #define | EXPR_LE 280 |
| #define | EXPR_LT 279 |
| #define | EXPR_NE 282 |
| #define | EXPR_NOT 278 |
| #define | EXPR_OR 277 |
| #define | EXPR_OR_OR 275 |
| #define | FCN 335 |
| #define | FCN_HANDLE 324 |
| #define | FOR 304 |
| #define | FQ_IDENT 332 |
| #define | FUNC_RET 317 |
| #define | GET 333 |
| #define | GLOBAL 322 |
| #define | HERMITIAN 291 |
| #define | IF 309 |
| #define | IMAG_NUM 298 |
| #define | INPUT_FILE 338 |
| #define | LEFTDIV 285 |
| #define | LEFTDIV_EQ 262 |
| #define | lexer parser.lexer |
| #define | LEXICAL_ERROR 337 |
| #define | LSHIFT 272 |
| #define | LSHIFT_EQ 270 |
| #define | METAQUERY 330 |
| #define | METHODS 327 |
| #define | MINUS_MINUS 294 |
| #define | MUL_EQ 260 |
| #define | NAME 300 |
| #define | NUM 297 |
| #define | octave_nerrs yyps->octave_nerrs |
| #define | OR_EQ 269 |
| #define | OTHERWISE 314 |
| #define | PARFOR 305 |
| #define | PERSISTENT 323 |
| #define | PLUS_PLUS 293 |
| #define | POW 295 |
| #define | POW_EQ 263 |
| #define | PROPERTIES 326 |
| #define | RSHIFT 273 |
| #define | RSHIFT_EQ 271 |
| #define | scanner lexer.scanner |
| #define | SET 334 |
| #define | SQ_STRING 303 |
| #define | STRUCT_ELT 299 |
| #define | SUB_EQ 259 |
| #define | SUPERCLASSREF 331 |
| #define | SWITCH 312 |
| #define | TRANSPOSE 292 |
| #define | TRY 320 |
| #define | UNARY 339 |
| #define | UNTIL 308 |
| #define | UNWIND 318 |
| #define | WHILE 306 |
| #define | YY_(Msgid) Msgid |
| #define | YY_ATTRIBUTE(Spec) /* empty */ |
| #define | YY_ATTRIBUTE_PURE YY_ATTRIBUTE ((__pure__)) |
| #define | YY_ATTRIBUTE_UNUSED YY_ATTRIBUTE ((__unused__)) |
| #define | YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN |
| #define | YY_IGNORE_MAYBE_UNINITIALIZED_END |
| #define | YY_INITIAL_VALUE(Value) Value |
| #define | YY_NULLPTR 0 |
| #define | YY_OCTAVE_PARSE_TREE_OCT_PARSE_H_INCLUDED |
| #define | YY_REDUCE_PRINT(Rule) |
| #define | YY_STACK_PRINT(Bottom, Top) |
| #define | YY_SYMBOL_PRINT(Title, Type, Value, Location) |
| #define | YYABORT goto yyabortlab |
| #define | YYACCEPT goto yyacceptlab |
| #define | YYBACKUP(Token, Value) |
| #define | YYBISON 1 |
| #define | YYBISON_VERSION "3.0.2" |
| #define | yyclearin (yychar = YYEMPTY) |
| #define | YYCOPY(Dst, Src, Count) |
| #define | YYCOPY_NEEDED 1 |
| #define | yydebug octave_debug |
| #define | YYDEBUG 1 |
| #define | YYDPRINTF(Args) |
| #define | YYEMPTY (-2) |
| #define | YYEOF 0 |
| #define | YYERRCODE 256 |
| #define | yyerrok (yyerrstatus = 0) |
| #define | yyerror octave_error |
| #define | YYERROR goto yyerrorlab |
| #define | YYERROR_VERBOSE 0 |
| #define | yyerrstatus yyps->yyerrstatus |
| #define | YYFINAL 110 |
| #define | YYFREE free |
| #define | YYINITDEPTH 200 |
| #define | YYLAST 1478 |
| #define | yylex octave_lex |
| #define | YYMALLOC malloc |
| #define | YYMAXDEPTH 10000 |
| #define | YYMAXUTOK 339 |
| #define | yynerrs octave_nerrs |
| #define | YYNNTS 105 |
| #define | YYNRULES 282 |
| #define | YYNSTATES 524 |
| #define | YYNTOKENS 102 |
| #define | YYPACT_NINF -421 |
| #define | yypact_value_is_default(Yystate) (!!((Yystate) == (-421))) |
| #define | yyparse octave_parse |
| #define | YYPOPSTACK(N) (yyvsp -= (N), yyssp -= (N)) |
| #define | yypstate octave_pstate |
| #define | yypstate_delete octave_pstate_delete |
| #define | yypstate_new octave_pstate_new |
| #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 ((YYSIZE_T) -1) |
| #define | YYSIZE_T size_t |
| #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 (sizeof (union yyalloc) - 1) |
| #define | YYSTACK_RELOCATE(Stack_alloc, Stack) |
| #define | yystacksize yyps->yystacksize |
| #define | yystate yyps->yystate |
| #define | YYSTYPE OCTAVE_STYPE |
| #define | YYTABLE_NINF -270 |
| #define | yytable_value_is_error(Yytable_value) 0 |
| #define | YYTERROR 1 |
| #define | YYTRANSLATE(YYX) ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK) |
| #define | YYUNDEFTOK 2 |
| #define | YYUSE(E) ((void) (E)) |
| #define | yyvs yyps->yyvs |
| #define | yyvsa yyps->yyvsa |
| #define | yyvsp yyps->yyvsp |
Typedefs | |
| typedef struct octave_pstate | octave_pstate |
| typedef short int | yytype_int16 |
| typedef signed char | yytype_int8 |
| typedef unsigned short int | yytype_uint16 |
| typedef unsigned char | yytype_uint8 |
Functions | |
| string_vector | autoloaded_functions (void) |
| void | cleanup_statement_list (tree_statement_list **lst) |
| octave_value_list | eval_string (const std::string &eval_str, bool silent, int &parse_status, int nargout) |
| octave_value | eval_string (const std::string &eval_str, bool silent, int &parse_status) |
| static octave_value_list | eval_string (const octave_value &arg, bool silent, int &parse_status, int nargout) |
| OCTAVE_EXPORT octave_value_list | F__parse_file__ (const octave_value_list &args, int) |
| OCTAVE_EXPORT octave_value_list | F__parser_debug_flag__ (const octave_value_list &args, int nargout) |
| OCTAVE_EXPORT octave_value_list | Fassignin (const octave_value_list &args, int) |
| OCTAVE_EXPORT octave_value_list | Fautoload (const octave_value_list &args, int) |
| OCTAVE_EXPORT octave_value_list | Fbuiltin (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_function *fcn, const octave_value_list &args, int nargout) |
| octave_value_list | feval (const octave_value_list &args, int nargout) |
| OCTAVE_EXPORT octave_value_list | Feval (const octave_value_list &args, int nargout) |
| OCTAVE_EXPORT octave_value_list | Fevalin (const octave_value_list &args, int nargout) |
| OCTAVE_EXPORT octave_value_list | Ffeval (const octave_value_list &args, int nargout) |
| OCTAVE_EXPORT octave_value_list | Fmfilename (const octave_value_list &args, int) |
| void | free (void *) |
| OCTAVE_EXPORT octave_value_list | Fsource (const octave_value_list &args, int) |
| static octave_value_list | get_feval_args (const octave_value_list &args) |
| std::string | get_help_from_file (const std::string &nm, bool &symbol_found, std::string &full_file) |
| std::string | get_help_from_file (const std::string &nm, bool &symbol_found) |
| octave_function * | 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) |
| std::string | lookup_autoload (const std::string &nm) |
| void * | malloc (size_t) |
| static void | octave_error (octave_base_parser &parser, const char *s) |
| int | octave_lex (OCTAVE_STYPE *, void *) |
| The main scanner function which does all the work. More... | |
| int | octave_parse (octave_base_parser &parser) |
| void | octave_pstate_delete (octave_pstate *ps) |
| octave_pstate * | octave_pstate_new (void) |
| int | octave_pull_parse (octave_pstate *ps, octave_base_parser &parser) |
| int | octave_push_parse (octave_pstate *ps, int pushed_char, OCTAVE_STYPE const *pushed_val, octave_base_parser &parser) |
| static octave_function * | parse_fcn_file (const std::string &full_file, const std::string &file, const std::string &dispatch_type, const std::string &package_name, bool require_file, bool force_script, bool autoload, bool relative_lookup, const std::string &warn_for) |
| string_vector | reverse_lookup_autoload (const std::string &nm) |
| static void | safe_fclose (FILE *f) |
| void | source_file (const std::string &file_name, const std::string &context, bool verbose, bool require_file, const std::string &warn_for) |
| static void | yydestruct (const char *yymsg, int yytype, OCTAVE_STYPE *yyvaluep, octave_base_parser &parser) |
Variables | |
| static std::map< std::string, std::string > | autoload_map |
| octave_base_lexer * | LEXER = 0 |
| bool | reading_startup_message_printed = false |
| static const yytype_int16 | yycheck [] |
| static const yytype_uint16 | yydefact [] |
| static const yytype_int16 | yydefgoto [] |
| static const yytype_int16 | yypact [] |
| static const yytype_int16 | yypgoto [] |
| static const yytype_uint8 | yyr1 [] |
| static const yytype_uint8 | yyr2 [] |
| static const yytype_uint8 | yystos [] |
| static const yytype_int16 | yytable [] |
| static const yytype_uint8 | yytranslate [] |
| #define _Noreturn YY_ATTRIBUTE ((__noreturn__)) |
Definition at line 553 of file oct-parse.cc.
| #define ABORT_PARSE |
Definition at line 159 of file oct-parse.cc.
Referenced by octave_push_parse().
| #define ADD_EQ 258 |
Definition at line 302 of file oct-parse.cc.
Referenced by octave_base_parser::make_assign_op(), and octave_push_parse().
| #define AND_EQ 268 |
Definition at line 312 of file oct-parse.cc.
Referenced by octave_base_parser::make_assign_op(), and octave_push_parse().
| #define BREAK 315 |
Definition at line 359 of file oct-parse.cc.
| #define CASE 313 |
Definition at line 357 of file oct-parse.cc.
| #define CATCH 321 |
Definition at line 365 of file oct-parse.cc.
| #define CLASSDEF 325 |
Definition at line 369 of file oct-parse.cc.
| #define CLEANUP 319 |
Definition at line 363 of file oct-parse.cc.
| #define CONTINUE 316 |
Definition at line 360 of file oct-parse.cc.
| #define DIV_EQ 261 |
Definition at line 305 of file oct-parse.cc.
Referenced by octave_base_parser::make_assign_op(), and octave_push_parse().
| #define DO 307 |
Definition at line 351 of file oct-parse.cc.
| #define DQ_STRING 302 |
Definition at line 346 of file oct-parse.cc.
Referenced by octave_base_parser::make_constant(), and octave_push_parse().
| #define EDIV 287 |
Definition at line 331 of file oct-parse.cc.
Referenced by octave_base_parser::make_binary_op(), and octave_push_parse().
| #define EDIV_EQ 265 |
Definition at line 309 of file oct-parse.cc.
Referenced by octave_base_parser::make_assign_op(), and octave_push_parse().
| #define ELEFTDIV 288 |
Definition at line 332 of file oct-parse.cc.
Referenced by octave_base_parser::make_binary_op(), and octave_push_parse().
| #define ELEFTDIV_EQ 266 |
Definition at line 310 of file oct-parse.cc.
Referenced by octave_base_parser::make_assign_op(), and octave_push_parse().
| #define ELSE 311 |
Definition at line 355 of file oct-parse.cc.
| #define ELSEIF 310 |
Definition at line 354 of file oct-parse.cc.
| #define EMINUS 290 |
Definition at line 334 of file oct-parse.cc.
| #define EMUL 286 |
Definition at line 330 of file oct-parse.cc.
Referenced by octave_base_parser::make_binary_op(), and octave_push_parse().
| #define EMUL_EQ 264 |
Definition at line 308 of file oct-parse.cc.
Referenced by octave_base_parser::make_assign_op(), and octave_push_parse().
| #define END 301 |
Definition at line 345 of file oct-parse.cc.
| #define END_OF_INPUT 336 |
Definition at line 380 of file oct-parse.cc.
| #define ENUMERATION 329 |
Definition at line 373 of file oct-parse.cc.
| #define EPLUS 289 |
Definition at line 333 of file oct-parse.cc.
| #define EPOW 296 |
Definition at line 340 of file oct-parse.cc.
Referenced by octave_base_parser::make_binary_op(), and octave_push_parse().
| #define EPOW_EQ 267 |
Definition at line 311 of file oct-parse.cc.
Referenced by octave_base_parser::make_assign_op(), and octave_push_parse().
| #define EVENTS 328 |
Definition at line 372 of file oct-parse.cc.
| #define EXPR_AND 276 |
Definition at line 320 of file oct-parse.cc.
Referenced by octave_base_parser::make_binary_op(), and octave_push_parse().
| #define EXPR_AND_AND 274 |
Definition at line 318 of file oct-parse.cc.
Referenced by octave_base_parser::make_boolean_op(), and octave_push_parse().
| #define EXPR_EQ 281 |
Definition at line 325 of file oct-parse.cc.
Referenced by octave_base_parser::make_binary_op(), and octave_push_parse().
| #define EXPR_GE 283 |
Definition at line 327 of file oct-parse.cc.
Referenced by octave_base_parser::make_binary_op(), and octave_push_parse().
| #define EXPR_GT 284 |
Definition at line 328 of file oct-parse.cc.
Referenced by octave_base_parser::make_binary_op(), and octave_push_parse().
| #define EXPR_LE 280 |
Definition at line 324 of file oct-parse.cc.
Referenced by octave_base_parser::make_binary_op(), and octave_push_parse().
| #define EXPR_LT 279 |
Definition at line 323 of file oct-parse.cc.
Referenced by octave_base_parser::make_binary_op(), and octave_push_parse().
| #define EXPR_NE 282 |
Definition at line 326 of file oct-parse.cc.
Referenced by octave_base_parser::make_binary_op(), and octave_push_parse().
| #define EXPR_NOT 278 |
Definition at line 322 of file oct-parse.cc.
Referenced by octave_base_parser::make_prefix_op(), and octave_push_parse().
| #define EXPR_OR 277 |
Definition at line 321 of file oct-parse.cc.
Referenced by octave_base_parser::make_binary_op(), and octave_push_parse().
| #define EXPR_OR_OR 275 |
Definition at line 319 of file oct-parse.cc.
Referenced by octave_base_parser::make_boolean_op(), and octave_push_parse().
| #define FCN 335 |
Definition at line 379 of file oct-parse.cc.
| #define FCN_HANDLE 324 |
Definition at line 368 of file oct-parse.cc.
| #define FOR 304 |
Definition at line 348 of file oct-parse.cc.
Referenced by octave_push_parse().
| #define FQ_IDENT 332 |
Definition at line 376 of file oct-parse.cc.
| #define FUNC_RET 317 |
Definition at line 361 of file oct-parse.cc.
| #define GET 333 |
Definition at line 377 of file oct-parse.cc.
| #define GLOBAL 322 |
Definition at line 366 of file oct-parse.cc.
Referenced by octave_base_parser::make_decl_command(), and octave_push_parse().
| #define HERMITIAN 291 |
Definition at line 335 of file oct-parse.cc.
Referenced by octave_base_parser::make_postfix_op(), and octave_push_parse().
| #define IF 309 |
Definition at line 353 of file oct-parse.cc.
| #define IMAG_NUM 298 |
Definition at line 342 of file oct-parse.cc.
Referenced by octave_base_parser::make_constant(), and octave_push_parse().
| #define INPUT_FILE 338 |
Definition at line 382 of file oct-parse.cc.
| #define LEFTDIV 285 |
Definition at line 329 of file oct-parse.cc.
Referenced by octave_base_parser::make_binary_op(), and octave_push_parse().
| #define LEFTDIV_EQ 262 |
Definition at line 306 of file oct-parse.cc.
Referenced by octave_base_parser::make_assign_op(), and octave_push_parse().
| #define lexer parser.lexer |
Definition at line 170 of file oct-parse.cc.
Referenced by octave_push_parse(), settings_dialog::settings_dialog(), and settings_dialog::write_changed_settings().
| #define LEXICAL_ERROR 337 |
Definition at line 381 of file oct-parse.cc.
| #define LSHIFT 272 |
Definition at line 316 of file oct-parse.cc.
Referenced by octave_base_parser::make_binary_op(), and octave_push_parse().
| #define LSHIFT_EQ 270 |
Definition at line 314 of file oct-parse.cc.
Referenced by octave_base_parser::make_assign_op(), and octave_push_parse().
| #define METAQUERY 330 |
Definition at line 374 of file oct-parse.cc.
| #define METHODS 327 |
Definition at line 371 of file oct-parse.cc.
| #define MINUS_MINUS 294 |
Definition at line 338 of file oct-parse.cc.
Referenced by octave_base_parser::make_postfix_op(), octave_base_parser::make_prefix_op(), and octave_push_parse().
| #define MUL_EQ 260 |
Definition at line 304 of file oct-parse.cc.
Referenced by octave_base_parser::make_assign_op(), and octave_push_parse().
| #define NAME 300 |
Definition at line 344 of file oct-parse.cc.
| #define NUM 297 |
Definition at line 341 of file oct-parse.cc.
Referenced by octave_base_parser::make_constant(), and octave_push_parse().
| #define octave_nerrs yyps->octave_nerrs |
Definition at line 3041 of file oct-parse.cc.
| #define OR_EQ 269 |
Definition at line 313 of file oct-parse.cc.
Referenced by octave_base_parser::make_assign_op(), and octave_push_parse().
| #define OTHERWISE 314 |
Definition at line 358 of file oct-parse.cc.
| #define PARFOR 305 |
Definition at line 349 of file oct-parse.cc.
Referenced by octave_base_parser::make_for_command(), and octave_push_parse().
| #define PERSISTENT 323 |
Definition at line 367 of file oct-parse.cc.
Referenced by octave_base_lexer::display_token(), do_cleanup_waitfor_listener(), Faddlistener(), Fdellistener(), Fwaitfor(), octave_base_parser::make_decl_command(), and octave_push_parse().
| #define PLUS_PLUS 293 |
Definition at line 337 of file oct-parse.cc.
Referenced by octave_base_parser::make_postfix_op(), octave_base_parser::make_prefix_op(), and octave_push_parse().
| #define POW 295 |
Definition at line 339 of file oct-parse.cc.
Referenced by octave_base_parser::make_binary_op(), and octave_push_parse().
| #define POW_EQ 263 |
Definition at line 307 of file oct-parse.cc.
Referenced by octave_base_parser::make_assign_op(), and octave_push_parse().
| #define PROPERTIES 326 |
Definition at line 370 of file oct-parse.cc.
| #define RSHIFT 273 |
Definition at line 317 of file oct-parse.cc.
Referenced by octave_base_parser::make_binary_op(), and octave_push_parse().
| #define RSHIFT_EQ 271 |
Definition at line 315 of file oct-parse.cc.
Referenced by octave_base_parser::make_assign_op(), and octave_push_parse().
| #define scanner lexer.scanner |
Definition at line 171 of file oct-parse.cc.
Referenced by octave_pull_parse(), and octave_push_parser::run().
| #define SET 334 |
Definition at line 378 of file oct-parse.cc.
| #define SQ_STRING 303 |
Definition at line 347 of file oct-parse.cc.
Referenced by octave_base_parser::make_constant(), and octave_push_parse().
| #define STRUCT_ELT 299 |
Definition at line 343 of file oct-parse.cc.
| #define SUB_EQ 259 |
Definition at line 303 of file oct-parse.cc.
Referenced by octave_base_parser::make_assign_op(), and octave_push_parse().
| #define SUPERCLASSREF 331 |
Definition at line 375 of file oct-parse.cc.
| #define SWITCH 312 |
Definition at line 356 of file oct-parse.cc.
| #define TRANSPOSE 292 |
Definition at line 336 of file oct-parse.cc.
Referenced by octave_base_parser::make_postfix_op(), and octave_push_parse().
| #define TRY 320 |
Definition at line 364 of file oct-parse.cc.
| #define UNARY 339 |
Definition at line 383 of file oct-parse.cc.
| #define UNTIL 308 |
Definition at line 352 of file oct-parse.cc.
| #define UNWIND 318 |
Definition at line 362 of file oct-parse.cc.
| #define WHILE 306 |
Definition at line 350 of file oct-parse.cc.
| #define YY_ | ( | Msgid | ) | Msgid |
Definition at line 526 of file oct-parse.cc.
Referenced by octave_pull_parse(), and octave_push_parse().
| #define YY_ATTRIBUTE | ( | Spec | ) | /* empty */ |
Definition at line 536 of file oct-parse.cc.
| #define YY_ATTRIBUTE_PURE YY_ATTRIBUTE ((__pure__)) |
Definition at line 541 of file oct-parse.cc.
| #define YY_ATTRIBUTE_UNUSED YY_ATTRIBUTE ((__unused__)) |
Definition at line 545 of file oct-parse.cc.
| #define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN |
Definition at line 576 of file oct-parse.cc.
Referenced by octave_push_parse(), and yydestruct().
| #define YY_IGNORE_MAYBE_UNINITIALIZED_END |
Definition at line 577 of file oct-parse.cc.
Referenced by octave_push_parse(), and yydestruct().
| #define YY_INITIAL_VALUE | ( | Value | ) | Value |
Definition at line 573 of file oct-parse.cc.
Referenced by octave_push_parse().
| #define YY_NULLPTR 0 |
Definition at line 180 of file oct-parse.cc.
Referenced by octave_parse(), and octave_pstate_new().
| #define YY_OCTAVE_PARSE_TREE_OCT_PARSE_H_INCLUDED |
Definition at line 195 of file oct-parse.cc.
| #define YY_REDUCE_PRINT | ( | Rule | ) |
Definition at line 1609 of file oct-parse.cc.
Referenced by octave_push_parse().
| #define YY_STACK_PRINT | ( | Bottom, | |
| Top | |||
| ) |
Definition at line 1608 of file oct-parse.cc.
Referenced by octave_push_parse().
| #define YY_SYMBOL_PRINT | ( | Title, | |
| Type, | |||
| Value, | |||
| Location | |||
| ) |
Definition at line 1607 of file oct-parse.cc.
Referenced by octave_push_parse(), and yydestruct().
| #define YYABORT goto yyabortlab |
Definition at line 1453 of file oct-parse.cc.
Referenced by octave_push_parse().
| #define YYACCEPT goto yyacceptlab |
Definition at line 1452 of file oct-parse.cc.
Referenced by octave_push_parse().
| #define YYBACKUP | ( | Token, | |
| Value | |||
| ) |
Definition at line 1459 of file oct-parse.cc.
| #define YYBISON 1 |
Definition at line 44 of file oct-parse.cc.
| #define YYBISON_VERSION "3.0.2" |
Definition at line 47 of file oct-parse.cc.
| #define yyclearin (yychar = YYEMPTY) |
Definition at line 1448 of file oct-parse.cc.
| #define YYCOPY | ( | Dst, | |
| Src, | |||
| Count | |||
| ) |
Definition at line 676 of file oct-parse.cc.
| #define YYCOPY_NEEDED 1 |
Definition at line 648 of file oct-parse.cc.
| #define yydebug octave_debug |
Definition at line 72 of file oct-parse.cc.
| #define YYDEBUG 1 |
Definition at line 79 of file oct-parse.cc.
| #define YYDPRINTF | ( | Args | ) |
Definition at line 1606 of file oct-parse.cc.
Referenced by octave_push_parse().
| #define YYEMPTY (-2) |
Definition at line 1449 of file oct-parse.cc.
Referenced by octave_push_parse().
| #define YYEOF 0 |
Definition at line 1450 of file oct-parse.cc.
Referenced by octave_push_parse().
| #define YYERRCODE 256 |
Definition at line 1478 of file oct-parse.cc.
| #define yyerrok (yyerrstatus = 0) |
Definition at line 1447 of file oct-parse.cc.
| #define yyerror octave_error |
Definition at line 71 of file oct-parse.cc.
Referenced by octave_pull_parse(), and octave_push_parse().
| #define YYERROR goto yyerrorlab |
Definition at line 1454 of file oct-parse.cc.
| #define YYERROR_VERBOSE 0 |
Definition at line 189 of file oct-parse.cc.
| #define yyerrstatus yyps->yyerrstatus |
Definition at line 3043 of file oct-parse.cc.
Referenced by octave_push_parse(), and octave_tex_parse().
| #define YYFINAL 110 |
Definition at line 689 of file oct-parse.cc.
Referenced by octave_push_parse().
| #define YYFREE free |
Definition at line 619 of file oct-parse.cc.
| #define YYINITDEPTH 200 |
Definition at line 1615 of file oct-parse.cc.
Referenced by octave_push_parse().
| #define YYLAST 1478 |
Definition at line 691 of file oct-parse.cc.
Referenced by octave_push_parse().
| #define yylex octave_lex |
Definition at line 70 of file oct-parse.cc.
Referenced by octave_pull_parse().
| #define YYMALLOC malloc |
Definition at line 613 of file oct-parse.cc.
| #define YYMAXDEPTH 10000 |
Definition at line 1626 of file oct-parse.cc.
Referenced by octave_push_parse().
| #define YYMAXUTOK 339 |
Definition at line 705 of file oct-parse.cc.
| #define yynerrs octave_nerrs |
Definition at line 73 of file oct-parse.cc.
Referenced by octave_push_parse().
| #define YYNNTS 105 |
Definition at line 696 of file oct-parse.cc.
| #define YYNRULES 282 |
Definition at line 698 of file oct-parse.cc.
| #define YYNSTATES 524 |
Definition at line 700 of file oct-parse.cc.
| #define YYNTOKENS 102 |
Definition at line 694 of file oct-parse.cc.
Referenced by octave_push_parse().
| #define YYPACT_NINF -421 |
Definition at line 851 of file oct-parse.cc.
| #define yypact_value_is_default | ( | Yystate | ) | (!!((Yystate) == (-421))) |
Definition at line 853 of file oct-parse.cc.
Referenced by octave_push_parse().
| #define yyparse octave_parse |
Definition at line 64 of file oct-parse.cc.
| #define yypstate octave_pstate |
Definition at line 69 of file oct-parse.cc.
Referenced by octave_pstate_new(), octave_pull_parse(), and octave_push_parser::run().
| #define yypstate_delete octave_pstate_delete |
Definition at line 68 of file oct-parse.cc.
Referenced by octave_pull_parse(), and octave_push_parser::~octave_push_parser().
| #define yypstate_new octave_pstate_new |
Definition at line 67 of file oct-parse.cc.
Referenced by octave_push_parser::init(), and octave_pull_parse().
| #define YYPULL 1 |
Definition at line 59 of file oct-parse.cc.
| #define yypull_parse octave_pull_parse |
Definition at line 66 of file oct-parse.cc.
Referenced by octave_parse().
| #define YYPURE 1 |
Definition at line 53 of file oct-parse.cc.
| #define YYPUSH 1 |
Definition at line 56 of file oct-parse.cc.
| #define yypush_parse octave_push_parse |
Definition at line 65 of file oct-parse.cc.
Referenced by octave_pull_parse().
| #define YYRECOVERING | ( | ) | (!!yyerrstatus) |
Definition at line 1457 of file oct-parse.cc.
| #define YYSIZE_MAXIMUM ((YYSIZE_T) -1) |
Definition at line 516 of file oct-parse.cc.
| #define YYSIZE_T size_t |
Definition at line 510 of file oct-parse.cc.
Referenced by octave_push_parse().
| #define YYSKELETON_NAME "yacc.c" |
Definition at line 50 of file oct-parse.cc.
| #define yyss yyps->yyss |
Definition at line 3045 of file oct-parse.cc.
Referenced by octave_push_parse(), and octave_tex_parse().
| #define yyssa yyps->yyssa |
Definition at line 3044 of file oct-parse.cc.
Referenced by octave_push_parse(), and octave_tex_parse().
| #define yyssp yyps->yyssp |
Definition at line 3046 of file oct-parse.cc.
Referenced by octave_push_parse(), and octave_tex_parse().
| #define YYSTACK_ALLOC YYMALLOC |
Definition at line 599 of file oct-parse.cc.
Referenced by octave_push_parse().
| #define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM |
Definition at line 602 of file oct-parse.cc.
| #define YYSTACK_BYTES | ( | N | ) |
| #define YYSTACK_FREE YYFREE |
Definition at line 600 of file oct-parse.cc.
Referenced by octave_pstate_delete(), and octave_push_parse().
| #define YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1) |
Definition at line 640 of file oct-parse.cc.
| #define YYSTACK_RELOCATE | ( | Stack_alloc, | |
| Stack | |||
| ) |
Definition at line 655 of file oct-parse.cc.
Referenced by octave_push_parse().
| #define yystacksize yyps->yystacksize |
Definition at line 3050 of file oct-parse.cc.
Referenced by octave_push_parse(), and octave_tex_parse().
| #define yystate yyps->yystate |
Definition at line 3042 of file oct-parse.cc.
Referenced by octave_push_parse(), and octave_tex_parse().
| #define YYSTYPE OCTAVE_STYPE |
Definition at line 62 of file oct-parse.cc.
Referenced by octave_pull_parse(), octave_push_parse(), and octave_push_parser::run().
| #define YYTABLE_NINF -270 |
Definition at line 856 of file oct-parse.cc.
| #define yytable_value_is_error | ( | Yytable_value | ) | 0 |
Definition at line 858 of file oct-parse.cc.
Referenced by octave_push_parse().
| #define YYTERROR 1 |
Definition at line 1477 of file oct-parse.cc.
Referenced by octave_push_parse().
| #define YYTRANSLATE | ( | YYX | ) | ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK) |
Definition at line 707 of file oct-parse.cc.
Referenced by octave_push_parse().
| #define YYUNDEFTOK 2 |
Definition at line 704 of file oct-parse.cc.
| #define YYUSE | ( | E | ) | ((void) (E)) |
Definition at line 559 of file oct-parse.cc.
Referenced by octave_push_parse(), and yydestruct().
| #define yyvs yyps->yyvs |
Definition at line 3048 of file oct-parse.cc.
Referenced by octave_push_parse(), and octave_tex_parse().
| #define yyvsa yyps->yyvsa |
Definition at line 3047 of file oct-parse.cc.
Referenced by octave_push_parse(), and octave_tex_parse().
| #define yyvsp yyps->yyvsp |
Definition at line 3049 of file oct-parse.cc.
Referenced by octave_tex_parse().
| typedef struct octave_pstate octave_pstate |
Definition at line 461 of file oct-parse.cc.
| typedef short int yytype_int16 |
Definition at line 500 of file oct-parse.cc.
| typedef signed char yytype_int8 |
Definition at line 488 of file oct-parse.cc.
| typedef unsigned short int yytype_uint16 |
Definition at line 494 of file oct-parse.cc.
| typedef unsigned char yytype_uint8 |
Definition at line 482 of file oct-parse.cc.
| string_vector autoloaded_functions | ( | void | ) |
Definition at line 8172 of file oct-parse.cc.
References names().
Referenced by F__list_functions__(), and make_name_list().
| void cleanup_statement_list | ( | tree_statement_list ** | lst | ) |
Definition at line 8907 of file oct-parse.cc.
| octave_value_list eval_string | ( | const std::string & | eval_str, |
| bool | silent, | ||
| int & | parse_status, | ||
| int | nargout | ||
| ) |
Definition at line 8810 of file oct-parse.cc.
References tree_statement_list::accept(), bind_ans(), tree_break_command::breaking, tree_continue_command::continuing, current_evaluator, octave_value_list::empty(), lexical_feedback::end_of_input, error(), error_state, tree_statement::expression(), octave_base_list< elt_type >::front(), tree_expression::is_assignment_expression(), tree_statement::is_expression(), tree_expression::is_identifier(), octave_base_list< elt_type >::length(), octave_base_parser::lexer, tree_expression::print_result(), octave_base_parser::reset(), tree_return_command::returning, octave_parser::run(), tree_expression::rvalue(), tree_expression::set_print_flag(), and octave_base_parser::stmt_list.
Referenced by gh_manager::do_execute_callback(), do_who(), eval_string(), execute_eval_option_code(), extract_function(), Feval(), Fevalin(), 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().
| octave_value eval_string | ( | const std::string & | eval_str, |
| bool | silent, | ||
| int & | parse_status | ||
| ) |
Definition at line 8879 of file oct-parse.cc.
References octave_value_list::empty(), and eval_string().
|
static |
Definition at line 8892 of file oct-parse.cc.
References error(), error_state, eval_string(), octave_value(), and octave_value::string_value().
| OCTAVE_EXPORT octave_value_list F__parse_file__ | ( | const octave_value_list & | args, |
| int | |||
| ) |
Definition at line 9184 of file oct-parse.cc.
References octave_env::base_pathname(), file_ops::dir_sep_str(), error(), error_state, octave_value::length(), octave_env::make_absolute(), octave_stdout, parse_fcn_file(), and print_usage().
| OCTAVE_EXPORT octave_value_list F__parser_debug_flag__ | ( | const octave_value_list & | args, |
| int | nargout | ||
| ) |
Definition at line 9166 of file oct-parse.cc.
References octave_debug, and set_internal_variable().
| OCTAVE_EXPORT octave_value_list Fassignin | ( | const octave_value_list & | args, |
| int | |||
| ) |
Definition at line 9041 of file oct-parse.cc.
References action_container::add_fcn(), symbol_table::assign(), context, error(), error_state, octave_call_stack::goto_base_frame(), octave_call_stack::goto_caller_frame(), octave_value_list::length(), octave_call_stack::pop(), print_usage(), and valid_identifier().
| OCTAVE_EXPORT octave_value_list Fautoload | ( | const octave_value_list & | args, |
| int | |||
| ) |
Definition at line 8319 of file oct-parse.cc.
References octave_env::absolute_pathname(), octave_map::assign(), octave_call_stack::caller_user_code(), symbol_table::clear_dld_function(), file_ops::dir_sep_str(), error_state, error_with_id(), base_file_stat::exists(), octave_function::fcn_file_name(), octave_value::length(), octave_env::make_absolute(), print_usage(), and warning_with_id().
| OCTAVE_EXPORT octave_value_list Fbuiltin | ( | const octave_value_list & | args, |
| int | nargout | ||
| ) |
Definition at line 8780 of file oct-parse.cc.
References symbol_table::builtin_find(), error(), error_state, feval(), octave_value::function_value(), octave_value::is_defined(), octave_value_list::length(), and print_usage().
Referenced by main_window::new_figure_callback().
| octave_value_list feval | ( | const std::string & | name, |
| const octave_value_list & | args, | ||
| int | nargout | ||
| ) |
Definition at line 8625 of file oct-parse.cc.
References octave_value::do_multi_index_op(), error(), error_state, symbol_table::find_function(), octave_value::is_defined(), and maybe_missing_function_hook().
Referenced by octave_class::all_strings(), bind_internal_variable(), compare_property_values(), do_colon_op(), gh_manager::do_execute_callback(), gtk_manager::do_get_toolkit(), do_octave_atexit(), do_who(), named_hook_function::eval(), F__ichol0__(), F__icholt__(), F__ilu0__(), F__iluc__(), F__ilutp__(), Fbuiltin(), Fdot(), Fend(), feval(), Ffeval(), Fquadcc(), have_gnuplot_binary(), 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(), tree_funcall::rvalue(), 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().
| octave_value_list feval | ( | octave_function * | fcn, |
| const octave_value_list & | args, | ||
| int | nargout | ||
| ) |
Definition at line 8644 of file oct-parse.cc.
References octave_base_value::do_multi_index_op().
| octave_value_list feval | ( | const octave_value_list & | args, |
| int | nargout | ||
| ) |
Definition at line 8668 of file oct-parse.cc.
References octave_value::do_multi_index_op(), error(), error_state, feval(), get_feval_args(), octave_value::is_anonymous_function(), octave_value::is_function_handle(), octave_value::is_inline_function(), octave_value::is_string(), octave_value_list::length(), and octave_value::string_value().
| OCTAVE_EXPORT octave_value_list Feval | ( | const octave_value_list & | args, |
| int | nargout | ||
| ) |
Definition at line 8953 of file oct-parse.cc.
References buffer_error_messages, error_state, eval_string(), octave_value_list::length(), print_usage(), and action_container::protect_var().
| OCTAVE_EXPORT octave_value_list Fevalin | ( | const octave_value_list & | args, |
| int | nargout | ||
| ) |
Definition at line 9095 of file oct-parse.cc.
References action_container::add_fcn(), buffer_error_messages, context, error(), error_state, eval_string(), octave_call_stack::goto_base_frame(), octave_call_stack::goto_caller_frame(), octave_value_list::length(), octave_call_stack::pop(), print_usage(), and action_container::protect_var().
| OCTAVE_EXPORT octave_value_list Ffeval | ( | const octave_value_list & | args, |
| int | nargout | ||
| ) |
Definition at line 8742 of file oct-parse.cc.
References feval(), octave_value_list::length(), and print_usage().
Referenced by QtHandles::Canvas::annotation_callback(), QtHandles::Figure::copy_figure_callback(), and QtHandles::Figure::save_figure_callback().
| OCTAVE_EXPORT octave_value_list Fmfilename | ( | const octave_value_list & | args, |
| int | |||
| ) |
Definition at line 8522 of file oct-parse.cc.
References arg(), octave_call_stack::caller_user_code(), file_ops::dir_sep_char(), error(), error_state, octave_function::fcn_file_name(), octave_value::length(), octave_function::name(), and print_usage().
| void free | ( | void * | ) |
Referenced by octave_pstate_delete().
| OCTAVE_EXPORT octave_value_list Fsource | ( | const octave_value_list & | args, |
| int | |||
| ) |
Definition at line 8588 of file oct-parse.cc.
References context, error(), error_state, octave_value_list::length(), print_usage(), and source_file().
Referenced by octave_cmd_eval::execute().
|
static |
Definition at line 8655 of file oct-parse.cc.
References octave_value_list::length(), and octave_value_list::slice().
Referenced by feval().
| std::string get_help_from_file | ( | const std::string & | nm, |
| bool & | symbol_found, | ||
| std::string & | full_file | ||
| ) |
Definition at line 8107 of file oct-parse.cc.
References octave_env::base_pathname(), file_ops::dir_sep_str(), octave_function::doc_string(), fcn_file_in_path(), and parse_fcn_file().
Referenced by get_help_from_file(), and raw_help_from_file().
| std::string get_help_from_file | ( | const std::string & | nm, |
| bool & | symbol_found | ||
| ) |
Definition at line 8150 of file oct-parse.cc.
References get_help_from_file().
| octave_function* 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 8198 of file oct-parse.cc.
References octave_env::absolute_pathname(), octave_env::base_pathname(), file_ops::dir_sep_str(), octave_function::doc_string(), octave_base_value::is_user_function(), octave_dynamic_loader::load_mex(), octave_dynamic_loader::load_oct(), octave_env::make_absolute(), parse_fcn_file(), octave_function::scope(), octave_function::stash_dir_name(), symbol_table::stash_dir_name_for_subfunctions(), and octave_function::stash_package_name().
Referenced by cdef_method::cdef_method_rep::check_method(), 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().
| std::string lookup_autoload | ( | const std::string & | nm | ) |
Definition at line 8157 of file oct-parse.cc.
References load_path::find_file().
Referenced by symbol_table::fcn_info::fcn_info_rep::find_autoload(), out_of_date_check(), and symbol_exist().
| void* malloc | ( | size_t | ) |
Referenced by octave_pstate_new().
|
static |
Definition at line 5982 of file oct-parse.cc.
References octave_base_parser::bison_error().
| int octave_lex | ( | OCTAVE_STYPE * | , |
| void * | |||
| ) |
The main scanner function which does all the work.
Definition at line 1318 of file lex.cc.
References ADD_EQ, AND_EQ, octave_comment_elt::block, BLOCK_COMMENT_START, CMD_OR_COMPUTED_ASSIGN_OP, CMD_OR_OP, CMD_OR_UNARY_OP, COMMAND_ARG_FINISH, COMMAND_START, curr_lexer, DIV_EQ, DQ_STRING, DQ_STRING_START, ECHO, EDIV, EDIV_EQ, ELEFTDIV, ELEFTDIV_EQ, EMINUS, EMUL, EMUL_EQ, octave_comment_elt::end_of_line, EOB_ACT_CONTINUE_SCAN, EOB_ACT_END_OF_FILE, EOB_ACT_LAST_MATCH, EPLUS, EPOW, EPOW_EQ, error(), EXPR_AND, EXPR_AND_AND, EXPR_EQ, EXPR_GE, EXPR_GT, EXPR_LE, EXPR_LT, EXPR_NE, EXPR_NOT, EXPR_OR, EXPR_OR_OR, FQ_IDENT_START, octave_comment_elt::full_line, HANDLE_IDENTIFIER, HANDLE_STRING_CONTINUATION, HERMITIAN, IMAG_NUM, INITIAL, INPUT_FILE, INPUT_FILE_START, LEFTDIV, LEFTDIV_EQ, LEXICAL_ERROR, LINE_COMMENT_START, LSHIFT, LSHIFT_EQ, MATRIX_START, MINUS_MINUS, MUL_EQ, NUM, octave__create_buffer(), octave__load_buffer_state(), octave_alloc(), octave_ensure_buffer_stack(), octave_wrap, OR_EQ, PLUS_PLUS, POW, POW_EQ, RSHIFT, RSHIFT_EQ, SQ_STRING, SQ_STRING_START, SUB_EQ, TRANSPOSE, undo_string_escape(), unput, warning_with_id(), yy_accept, yy_acclist, YY_AT_BOL, yy_base, YY_BREAK, YY_BUF_SIZE, YY_BUFFER_NEW, YY_BUFFER_NORMAL, yyguts_t::yy_c_buf_p, yy_chk, YY_CURRENT_BUFFER, YY_CURRENT_BUFFER_LVALUE, yy_def, yyguts_t::yy_did_buffer_switch_on_eof, YY_DO_BEFORE_ACTION, yy_ec, YY_END_OF_BUFFER, YY_FATAL_ERROR, yyguts_t::yy_full_lp, yyguts_t::yy_full_match, yyguts_t::yy_full_state, yy_get_next_buffer(), yy_get_previous_state(), yyguts_t::yy_hold_char, yyguts_t::yy_init, yyguts_t::yy_looking_for_trail_begin, yyguts_t::yy_lp, yy_meta, YY_MORE_ADJ, yyguts_t::yy_n_chars, YY_NEW_FILE, yy_nxt, YY_RESTORE_YY_MORE_OFFSET, YY_RULE_SETUP, YY_SC_TO_UI, YY_START, yyguts_t::yy_start, yyguts_t::yy_state_buf, YY_STATE_BUF_SIZE, YY_STATE_EOF, yyguts_t::yy_state_ptr, YY_TRAILING_HEAD_MASK, YY_TRAILING_MASK, yy_try_NUL_trans(), yyin, yyleng, yyless, yylval, yyout, and yytext.
Referenced by octave_push_parser::run().
| int octave_parse | ( | octave_base_parser & | parser | ) |
Definition at line 2984 of file oct-parse.cc.
References YY_NULLPTR, and yypull_parse.
Referenced by octave_parser::run().
| void octave_pstate_delete | ( | octave_pstate * | ps | ) |
Definition at line 3030 of file oct-parse.cc.
References free(), and YYSTACK_FREE.
| octave_pstate * octave_pstate_new | ( | void | ) |
Definition at line 3019 of file oct-parse.cc.
References malloc(), YY_NULLPTR, and yypstate.
| int octave_pull_parse | ( | octave_pstate * | ps, |
| octave_base_parser & | parser | ||
| ) |
Definition at line 2990 of file oct-parse.cc.
References scanner, YY_, yyerror, yylex, yylval, yypstate, yypstate_delete, yypstate_new, YYPUSH_MORE, yypush_parse, and YYSTYPE.
| int octave_push_parse | ( | octave_pstate * | ps, |
| int | pushed_char, | ||
| OCTAVE_STYPE const * | pushed_val, | ||
| octave_base_parser & | parser | ||
| ) |
Definition at line 3058 of file oct-parse.cc.
References ABORT_PARSE, ADD_EQ, symbol_table::alloc_scope(), AND_EQ, octave_base_parser::append_statement_list(), octave_base_parser::bison_error(), octave_base_parser::classdef_object, octave_base_parser::curr_fcn_depth, DIV_EQ, DQ_STRING, EDIV, EDIV_EQ, ELEFTDIV, ELEFTDIV_EQ, EMUL, EMUL_EQ, octave_base_parser::end_token_ok(), octave_base_parser::endfunction_found, EPOW, EPOW_EQ, EXPR_AND, EXPR_AND_AND, EXPR_EQ, EXPR_GE, EXPR_GT, EXPR_LE, EXPR_LT, EXPR_NE, EXPR_NOT, EXPR_OR, EXPR_OR_OR, octave_base_parser::finish_cell(), octave_base_parser::finish_classdef_external_method(), octave_base_parser::finish_colon_expression(), octave_base_parser::finish_function(), octave_base_parser::finish_if_command(), octave_base_parser::finish_matrix(), octave_base_parser::finish_switch_command(), FOR, octave_base_parser::frob_function(), token::function_end, octave_base_parser::function_scopes, GLOBAL, HERMITIAN, IMAG_NUM, tree_parameter_list::in, LEFTDIV, LEFTDIV_EQ, lexer, LSHIFT, LSHIFT_EQ, octave_value::magic_colon_t, octave_base_parser::make_anon_fcn_handle(), octave_base_parser::make_assign_op(), octave_base_parser::make_binary_op(), octave_base_parser::make_boolean_op(), octave_base_parser::make_break_command(), octave_base_parser::make_classdef(), octave_base_parser::make_classdef_enum_block(), octave_base_parser::make_classdef_events_block(), octave_base_parser::make_classdef_methods_block(), octave_base_parser::make_classdef_properties_block(), octave_base_parser::make_constant(), octave_base_parser::make_continue_command(), octave_base_parser::make_decl_command(), octave_base_parser::make_do_until_command(), octave_base_parser::make_elseif_clause(), octave_base_parser::make_end(), octave_base_parser::make_fcn_handle(), octave_base_parser::make_for_command(), octave_base_parser::make_index_expression(), octave_base_parser::make_indirect_ref(), octave_base_parser::make_meta_class_query(), octave_base_parser::make_postfix_op(), octave_base_parser::make_prefix_op(), octave_base_parser::make_return_command(), octave_base_parser::make_script(), octave_base_parser::make_statement(), octave_base_parser::make_statement_list(), octave_base_parser::make_superclass_ref(), octave_base_parser::make_switch_case(), octave_base_parser::make_try_command(), octave_base_parser::make_unwind_command(), octave_base_parser::make_while_command(), octave_base_parser::max_fcn_depth, MINUS_MINUS, MUL_EQ, NUM, OR_EQ, tree_parameter_list::out, PARFOR, octave_base_parser::parsing_subfunctions, PERSISTENT, PLUS_PLUS, POW, POW_EQ, octave_base_parser::primary_fcn_scope, octave_base_parser::recover_from_parsing_function(), RSHIFT, RSHIFT_EQ, octave_base_parser::set_stmt_print_flag(), SQ_STRING, octave_base_parser::start_classdef_external_method(), octave_base_parser::start_function(), octave_base_parser::start_if_command(), octave_base_parser::stmt_list, SUB_EQ, TRANSPOSE, tree_parameter_list::validate(), octave_base_parser::validate_array_list(), octave_base_parser::validate_matrix_for_assignment(), YY_, YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN, YY_IGNORE_MAYBE_UNINITIALIZED_END, YY_INITIAL_VALUE, YY_REDUCE_PRINT, YY_STACK_PRINT, YY_SYMBOL_PRINT, YYABORT, YYACCEPT, yycheck, yydefact, yydefgoto, yydestruct(), YYDPRINTF, YYEMPTY, YYEOF, yyerror, yyerrstatus, YYFINAL, YYINITDEPTH, YYLAST, yylval, YYMAXDEPTH, yynerrs, YYNTOKENS, yypact, yypact_value_is_default, yypgoto, YYPOPSTACK, YYPUSH_MORE, yyr1, yyr2, YYSIZE_T, yyss, yyalloc::yyss_alloc, yyssa, yyssp, YYSTACK_ALLOC, YYSTACK_BYTES, YYSTACK_FREE, YYSTACK_RELOCATE, yystacksize, yystate, yystos, YYSTYPE, yytable, yytable_value_is_error, YYTERROR, YYTRANSLATE, YYUSE, yyvs, yyalloc::yyvs_alloc, and yyvsa.
Referenced by octave_push_parser::run().
|
static |
Definition at line 8013 of file oct-parse.cc.
References action_container::add_fcn(), octave_base_parser::autoloading, octave_base_parser::classdef_object, octave_base_parser::curr_class_name, octave_base_parser::curr_package_name, octave_base_parser::endfunction_found, error(), octave_base_parser::fcn_file_from_relative_lookup, lexical_feedback::fcn_file_full_name, lexical_feedback::fcn_file_name, lexical_feedback::force_script, command_editor::get_input_stream(), command_history::ignore_entries(), command_history::ignoring_entries(), octave_base_parser::lexer, tree_classdef::make_meta_class(), octave_function::maybe_relocate_end(), panic_impossible, lexical_feedback::parsing_class_method, octave_base_parser::parsing_subfunctions, octave_base_lexer::prep_for_file(), octave_base_parser::primary_fcn_ptr, action_container::protect_var(), lexical_feedback::reading_classdef_file, octave_parser::run(), safe_fclose(), command_editor::set_input_stream(), octave_function::stash_subfunction_names(), and octave_base_parser::subfunction_names.
Referenced by F__parse_file__(), get_help_from_file(), load_fcn_from_file(), and source_file().
| string_vector reverse_lookup_autoload | ( | const std::string & | nm | ) |
Definition at line 8185 of file oct-parse.cc.
References string_vector::append(), and names().
|
static |
Definition at line 8006 of file oct-parse.cc.
Referenced by parse_fcn_file().
| void source_file | ( | const std::string & | file_name, |
| const std::string & | context, | ||
| bool | verbose, | ||
| bool | require_file, | ||
| const std::string & | warn_for | ||
| ) |
Definition at line 8405 of file oct-parse.cc.
References action_container::add_fcn(), octave_base_value::do_multi_index_op(), error(), error_state, octave_call_stack::goto_base_frame(), octave_call_stack::goto_caller_frame(), octave_base_value::is_user_script(), octave_env::make_absolute(), parse_fcn_file(), octave_call_stack::pop(), action_container::protect_var(), reading_startup_message_printed, file_ops::tilde_expand(), and Vmax_recursion_depth.
Referenced by do_edit_history(), do_run_history(), execute_pkg_add_or_del(), Fsource(), and safe_source_file().
|
static |
Definition at line 1857 of file oct-parse.cc.
References YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN, YY_IGNORE_MAYBE_UNINITIALIZED_END, YY_SYMBOL_PRINT, and YYUSE.
Referenced by octave_push_parse().
|
static |
Definition at line 152 of file oct-parse.cc.
| octave_base_lexer* LEXER = 0 |
Definition at line 137 of file oct-parse.cc.
| bool reading_startup_message_printed = false |
Definition at line 149 of file oct-parse.cc.
Referenced by octave_execute_interpreter(), and source_file().
|
static |
Definition at line 1167 of file oct-parse.cc.
Referenced by octave_push_parse().
|
static |
Definition at line 923 of file oct-parse.cc.
Referenced by octave_push_parse().
|
static |
Definition at line 997 of file oct-parse.cc.
Referenced by octave_push_parse().
|
static |
Definition at line 863 of file oct-parse.cc.
Referenced by octave_push_parse().
|
static |
Definition at line 981 of file oct-parse.cc.
Referenced by octave_push_parse().
|
static |
Definition at line 1379 of file oct-parse.cc.
Referenced by octave_push_parse().
|
static |
Definition at line 1413 of file oct-parse.cc.
Referenced by octave_push_parse().
|
static |
Definition at line 1321 of file oct-parse.cc.
Referenced by octave_push_parse().
|
static |
Definition at line 1015 of file oct-parse.cc.
Referenced by octave_push_parse().
|
static |
Definition at line 712 of file oct-parse.cc.
1.8.8