Go to the source code of this file.
Macros | |
| #define | m_scanner parser.get_scanner () |
| #define | octave_tex_nerrs yyps->octave_tex_nerrs |
| #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 | yyalloc octave_tex_yyalloc |
| #define | YYBACKUP(Token, Value) |
| #define | YYBISON 30802 |
| #define | YYBISON_VERSION "3.8.2" |
| #define | yyclearin (yychar = OCTAVE_TEX_EMPTY) |
| #define | YYCOPY(Dst, Src, Count) |
| #define | YYCOPY_NEEDED 1 |
| #define | yydebug octave_tex_debug |
| #define | YYDEBUG 1 |
| #define | YYDPRINTF(Args) ((void) 0) |
| #define | YYERRCODE OCTAVE_TEX_UNDEF |
| #define | yyerrok (yyerrstatus = 0) |
| #define | yyerror octave_tex_error |
| #define | YYERROR goto yyerrorlab |
| #define | yyerrstatus yyps->yyerrstatus |
| #define | YYFINAL 43 |
| #define | YYFREE free |
| #define | YYINITDEPTH 200 |
| #define | YYLAST 81 |
| #define | yylex octave_tex_lex |
| #define | YYMALLOC malloc |
| #define | YYMAXDEPTH 10000 |
| #define | YYMAXUTOK 274 |
| #define | yynerrs octave_tex_nerrs |
| #define | YYNNTS 14 |
| #define | YYNOMEM goto yyexhaustedlab |
| #define | YYNRULES 36 |
| #define | YYNSTATES 55 |
| #define | YYNTOKENS 20 |
| #define | YYPACT_NINF (-4) |
| #define | yypact_value_is_default(Yyn) ((Yyn) == YYPACT_NINF) |
| #define | yyparse octave_tex_parse |
| #define | YYPOPSTACK(N) (yyvsp -= (N), yyssp -= (N)) |
| #define | yypstate octave_tex_pstate |
| #define | yypstate_clear octave_tex_pstate_clear |
| #define | yypstate_delete octave_tex_pstate_delete |
| #define | yypstate_new octave_tex_pstate_new |
| #define | YYPTRDIFF_MAXIMUM LONG_MAX |
| #define | YYPTRDIFF_T long |
| #define | YYPULL 1 |
| #define | yypull_parse octave_tex_pull_parse |
| #define | YYPURE 1 |
| #define | YYPUSH 1 |
| #define | yypush_parse octave_tex_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_TEX_STYPE |
| #define | YYTABLE_NINF (-1) |
| #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_int8 | 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 |
Enumerations | |
| enum | { YYENOMEM = -2 } |
| enum | yysymbol_kind_t { YYSYMBOL_YYEMPTY = -2 , YYSYMBOL_YYEOF = 0 , YYSYMBOL_YYerror = 1 , YYSYMBOL_YYUNDEF = 2 , YYSYMBOL_BF = 3 , YYSYMBOL_IT = 4 , YYSYMBOL_SL = 5 , YYSYMBOL_RM = 6 , YYSYMBOL_FONTNAME = 7 , YYSYMBOL_FONTSIZE = 8 , YYSYMBOL_COLOR = 9 , YYSYMBOL_COLOR_RGB = 10 , YYSYMBOL_START = 11 , YYSYMBOL_END = 12 , YYSYMBOL_SUPER = 13 , YYSYMBOL_SUB = 14 , YYSYMBOL_CH = 15 , YYSYMBOL_NUM = 16 , YYSYMBOL_SYM = 17 , YYSYMBOL_SCRIPT = 18 , YYSYMBOL_STR = 19 , YYSYMBOL_YYACCEPT = 20 , YYSYMBOL_simple_string = 21 , YYSYMBOL_symbol_element = 22 , YYSYMBOL_font_modifier_element = 23 , YYSYMBOL_fontsize_element = 24 , YYSYMBOL_fontname_element = 25 , YYSYMBOL_color_element = 26 , YYSYMBOL_string_element = 27 , YYSYMBOL_superscript_element = 28 , YYSYMBOL_subscript_element = 29 , YYSYMBOL_combined_script_element = 30 , YYSYMBOL_string_element_list = 31 , YYSYMBOL_scoped_string_element_list = 32 , YYSYMBOL_string = 33 } |
Functions | |
| void | free (void *) |
| void * | malloc (unsigned) |
| int | octave_tex_lex (OCTAVE_TEX_STYPE *, void *) |
| The main scanner function which does all the work. | |
| int | octave_tex_parse (octave::text_parser_tex &parser) |
| void | octave_tex_pstate_delete (octave_tex_pstate *yyps) |
| octave_tex_pstate * | octave_tex_pstate_new (void) |
| int | octave_tex_pull_parse (octave_tex_pstate *yyps, octave::text_parser_tex &parser) |
| int | octave_tex_push_parse (octave_tex_pstate *yyps, int yypushed_char, OCTAVE_TEX_STYPE const *yypushed_val, octave::text_parser_tex &parser) |
| #define m_scanner parser.get_scanner () |
Definition at line 99 of file oct-tex-parser.cc.
| #define octave_tex_nerrs yyps->octave_tex_nerrs |
Definition at line 1038 of file oct-tex-parser.cc.
| #define YY_ | ( | Msgid | ) | Msgid |
Definition at line 303 of file oct-tex-parser.cc.
| #define YY_ACCESSING_SYMBOL | ( | State | ) | YY_CAST (yysymbol_kind_t, yystos[State]) |
| #define YY_ASSERT | ( | E | ) | ((void) (0 && (E))) |
Definition at line 369 of file oct-tex-parser.cc.
| #define YY_ATTRIBUTE_PURE |
Definition at line 312 of file oct-tex-parser.cc.
| #define YY_ATTRIBUTE_UNUSED |
Definition at line 320 of file oct-tex-parser.cc.
| #define YY_CAST | ( | Type, | |
| Val | |||
| ) | ((Type) (Val)) |
Definition at line 119 of file oct-tex-parser.cc.
| #define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN |
Definition at line 349 of file oct-tex-parser.cc.
| #define YY_IGNORE_MAYBE_UNINITIALIZED_END |
Definition at line 350 of file oct-tex-parser.cc.
| #define YY_IGNORE_USELESS_CAST_BEGIN |
Definition at line 364 of file oct-tex-parser.cc.
| #define YY_IGNORE_USELESS_CAST_END |
Definition at line 365 of file oct-tex-parser.cc.
| #define YY_INITIAL_VALUE | ( | Value | ) | Value |
Definition at line 346 of file oct-tex-parser.cc.
| #define YY_NULLPTR ((void*)0) |
Definition at line 131 of file oct-tex-parser.cc.
| #define YY_REDUCE_PRINT | ( | Rule | ) |
Definition at line 840 of file oct-tex-parser.cc.
| #define YY_REINTERPRET_CAST | ( | Type, | |
| Val | |||
| ) | ((Type) (Val)) |
Definition at line 120 of file oct-tex-parser.cc.
| #define YY_STACK_PRINT | ( | Bottom, | |
| Top | |||
| ) |
Definition at line 839 of file oct-tex-parser.cc.
| #define YY_SYMBOL_PRINT | ( | Title, | |
| Kind, | |||
| Value, | |||
| Location | |||
| ) |
Definition at line 838 of file oct-tex-parser.cc.
| #define YY_USE | ( | E | ) | ((void) (E)) |
Definition at line 326 of file oct-tex-parser.cc.
| #define YYABORT goto yyabortlab |
Definition at line 687 of file oct-tex-parser.cc.
| #define YYACCEPT goto yyacceptlab |
Definition at line 686 of file oct-tex-parser.cc.
| #define yyalloc octave_tex_yyalloc |
Definition at line 100 of file oct-tex-parser.cc.
| #define YYBACKUP | ( | Token, | |
| Value | |||
| ) |
Definition at line 694 of file oct-tex-parser.cc.
| #define YYBISON 30802 |
Definition at line 49 of file oct-tex-parser.cc.
| #define YYBISON_VERSION "3.8.2" |
Definition at line 52 of file oct-tex-parser.cc.
| #define yyclearin (yychar = OCTAVE_TEX_EMPTY) |
Definition at line 684 of file oct-tex-parser.cc.
| #define YYCOPY | ( | Dst, | |
| Src, | |||
| Count | |||
| ) |
Definition at line 462 of file oct-tex-parser.cc.
| #define YYCOPY_NEEDED 1 |
Definition at line 434 of file oct-tex-parser.cc.
| #define yydebug octave_tex_debug |
Definition at line 78 of file oct-tex-parser.cc.
| #define YYDEBUG 1 |
Definition at line 85 of file oct-tex-parser.cc.
| #define YYDPRINTF | ( | Args | ) | ((void) 0) |
Definition at line 837 of file oct-tex-parser.cc.
| #define YYERRCODE OCTAVE_TEX_UNDEF |
Definition at line 713 of file oct-tex-parser.cc.
| #define yyerrok (yyerrstatus = 0) |
Definition at line 683 of file oct-tex-parser.cc.
| #define yyerror octave_tex_error |
Definition at line 77 of file oct-tex-parser.cc.
| #define YYERROR goto yyerrorlab |
Definition at line 688 of file oct-tex-parser.cc.
| #define yyerrstatus yyps->yyerrstatus |
Definition at line 1040 of file oct-tex-parser.cc.
| #define YYFINAL 43 |
Definition at line 475 of file oct-tex-parser.cc.
| #define YYFREE free |
Definition at line 406 of file oct-tex-parser.cc.
| #define YYINITDEPTH 200 |
Definition at line 846 of file oct-tex-parser.cc.
| #define YYLAST 81 |
Definition at line 477 of file oct-tex-parser.cc.
| #define yylex octave_tex_lex |
Definition at line 76 of file oct-tex-parser.cc.
| #define YYMALLOC malloc |
Definition at line 400 of file oct-tex-parser.cc.
| #define YYMAXDEPTH 10000 |
Definition at line 857 of file oct-tex-parser.cc.
| #define YYMAXUTOK 274 |
Definition at line 489 of file oct-tex-parser.cc.
| #define yynerrs octave_tex_nerrs |
Definition at line 79 of file oct-tex-parser.cc.
| #define YYNNTS 14 |
Definition at line 482 of file oct-tex-parser.cc.
| #define YYNOMEM goto yyexhaustedlab |
Definition at line 689 of file oct-tex-parser.cc.
| #define YYNRULES 36 |
Definition at line 484 of file oct-tex-parser.cc.
| #define YYNSTATES 55 |
Definition at line 486 of file oct-tex-parser.cc.
| #define YYNTOKENS 20 |
Definition at line 480 of file oct-tex-parser.cc.
| #define YYPACT_NINF (-4) |
Definition at line 572 of file oct-tex-parser.cc.
| #define yypact_value_is_default | ( | Yyn | ) | ((Yyn) == YYPACT_NINF) |
Definition at line 574 of file oct-tex-parser.cc.
| #define yyparse octave_tex_parse |
Definition at line 69 of file oct-tex-parser.cc.
| #define yypstate octave_tex_pstate |
Definition at line 75 of file oct-tex-parser.cc.
| #define yypstate_clear octave_tex_pstate_clear |
Definition at line 73 of file oct-tex-parser.cc.
| #define yypstate_delete octave_tex_pstate_delete |
Definition at line 74 of file oct-tex-parser.cc.
| #define yypstate_new octave_tex_pstate_new |
Definition at line 72 of file oct-tex-parser.cc.
| #define YYPTRDIFF_MAXIMUM LONG_MAX |
Definition at line 263 of file oct-tex-parser.cc.
| #define YYPTRDIFF_T long |
Definition at line 262 of file oct-tex-parser.cc.
| #define YYPULL 1 |
Definition at line 64 of file oct-tex-parser.cc.
| #define yypull_parse octave_tex_pull_parse |
Definition at line 71 of file oct-tex-parser.cc.
| #define YYPURE 1 |
Definition at line 58 of file oct-tex-parser.cc.
| #define YYPUSH 1 |
Definition at line 61 of file oct-tex-parser.cc.
| #define yypush_parse octave_tex_push_parse |
Definition at line 70 of file oct-tex-parser.cc.
| #define YYRECOVERING | ( | ) | (!!yyerrstatus) |
Definition at line 692 of file oct-tex-parser.cc.
| #define YYSIZE_MAXIMUM |
Definition at line 280 of file oct-tex-parser.cc.
| #define YYSIZE_T unsigned |
Definition at line 276 of file oct-tex-parser.cc.
| #define YYSIZEOF | ( | X | ) | YY_CAST (YYPTRDIFF_T, sizeof (X)) |
Definition at line 286 of file oct-tex-parser.cc.
| #define YYSKELETON_NAME "yacc.c" |
Definition at line 55 of file oct-tex-parser.cc.
| #define yyss yyps->yyss |
Definition at line 1042 of file oct-tex-parser.cc.
| #define yyssa yyps->yyssa |
Definition at line 1041 of file oct-tex-parser.cc.
| #define yyssp yyps->yyssp |
Definition at line 1043 of file oct-tex-parser.cc.
| #define YYSTACK_ALLOC YYMALLOC |
Definition at line 386 of file oct-tex-parser.cc.
| #define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM |
Definition at line 389 of file oct-tex-parser.cc.
| #define YYSTACK_BYTES | ( | N | ) |
Definition at line 430 of file oct-tex-parser.cc.
| #define YYSTACK_FREE YYFREE |
Definition at line 387 of file oct-tex-parser.cc.
Definition at line 426 of file oct-tex-parser.cc.
| #define YYSTACK_RELOCATE | ( | Stack_alloc, | |
| Stack | |||
| ) |
Definition at line 441 of file oct-tex-parser.cc.
| #define yystacksize yyps->yystacksize |
Definition at line 1047 of file oct-tex-parser.cc.
| #define yystate yyps->yystate |
Definition at line 1039 of file oct-tex-parser.cc.
| #define YYSTYPE OCTAVE_TEX_STYPE |
Definition at line 67 of file oct-tex-parser.cc.
| #define YYTABLE_NINF (-1) |
Definition at line 577 of file oct-tex-parser.cc.
| #define yytable_value_is_error | ( | Yyn | ) | 0 |
Definition at line 579 of file oct-tex-parser.cc.
| #define YYTRANSLATE | ( | YYX | ) |
Definition at line 494 of file oct-tex-parser.cc.
| #define yyvs yyps->yyvs |
Definition at line 1045 of file oct-tex-parser.cc.
| #define yyvsa yyps->yyvsa |
Definition at line 1044 of file oct-tex-parser.cc.
| #define yyvsp yyps->yyvsp |
Definition at line 1046 of file oct-tex-parser.cc.
| typedef int yy_state_fast_t |
Definition at line 293 of file oct-tex-parser.cc.
| typedef yytype_int8 yy_state_t |
Definition at line 290 of file oct-tex-parser.cc.
| typedef enum yysymbol_kind_t yysymbol_kind_t |
Definition at line 175 of file oct-tex-parser.cc.
| typedef short yytype_int16 |
Definition at line 214 of file oct-tex-parser.cc.
| typedef signed char yytype_int8 |
Definition at line 206 of file oct-tex-parser.cc.
| typedef unsigned short yytype_uint16 |
Definition at line 246 of file oct-tex-parser.cc.
| typedef unsigned char yytype_uint8 |
Definition at line 235 of file oct-tex-parser.cc.
| anonymous enum |
| Enumerator | |
|---|---|
| YYENOMEM | |
Definition at line 681 of file oct-tex-parser.cc.
| enum yysymbol_kind_t |
Definition at line 137 of file oct-tex-parser.cc.
| void free | ( | void * | ) |
Referenced by regexp::~regexp(), base64_decode(), base64_decode_bytes(), canonicalize_file_name(), F__native2unicode__(), F__unicode2native__(), Famd(), Fbase64_encode(), Fcsymamd(), Ffftw(), fgets(), Fsymamd(), get_ASCII_filename(), getcwd(), octave_async_system_wrapper(), octave_chdir_wrapper(), octave_destroy_glob_info_struct(), octave_execv_wrapper(), octave_free_signal_mask(), octave_getcwd_wrapper(), octave_getopt_long_wrapper(), octave_lstat_wrapper(), octave_mkdir_wrapper(), octave_rmdir_wrapper(), octave_stat_wrapper(), octave_tex_free(), octave_unblock_child(), octave_unlink_wrapper(), read_mat5_binary_element(), readlink(), save_mat5_binary_element(), save_mat5_element_length(), u8_from_wchar(), u8_to_wchar(), and vasprintf().
| void * malloc | ( | unsigned | ) |
|
extern |
The main scanner function which does all the work.
Definition at line 1228 of file oct-tex-lexer.cc.
References BEGIN, BF, CH, COLOR, COLOR_RGB, ECHO, END, EOB_ACT_CONTINUE_SCAN, EOB_ACT_END_OF_FILE, EOB_ACT_LAST_MATCH, FONTNAME, FONTSIZE, INITIAL, IT, MAYBE_NUM_MODE, NUM, NUM_MODE, RM, SL, START, SUB, SUPER, SYM, 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, yyless, yylval, yyout, yyterminate, yytext, and yywrap.
| int octave_tex_parse | ( | octave::text_parser_tex & | parser | ) |
Definition at line 1012 of file oct-tex-parser.cc.
References YY_, yyerror, yypstate, yypstate_delete, yypstate_new, and yypull_parse.
Referenced by text_parser_tex::parse().
| void octave_tex_pstate_delete | ( | octave_tex_pstate * | yyps | ) |
Definition at line 1082 of file oct-tex-parser.cc.
References YYFREE, yyss, yyssa, and YYSTACK_FREE.
| octave_tex_pstate * octave_tex_pstate_new | ( | void | ) |
Definition at line 1068 of file oct-tex-parser.cc.
References YY_CAST, YY_NULLPTR, YYINITDEPTH, YYMALLOC, yypstate, yypstate_clear, yyss, yyssa, yystacksize, yyvs, and yyvsa.
| int octave_tex_pull_parse | ( | octave_tex_pstate * | yyps, |
| octave::text_parser_tex & | parser | ||
| ) |
Definition at line 1026 of file oct-tex-parser.cc.
References m_scanner, YY_ASSERT, yylex, yylval, YYPUSH_MORE, yypush_parse, and YYSTYPE.
| int octave_tex_push_parse | ( | octave_tex_pstate * | yyps, |
| int | yypushed_char, | ||
| OCTAVE_TEX_STYPE const * | yypushed_val, | ||
| octave::text_parser_tex & | parser | ||
| ) |
Definition at line 1103 of file oct-tex-parser.cc.
References OCTAVE_TEX_EMPTY, OCTAVE_TEX_EOF, OCTAVE_TEX_error, OCTAVE_TEX_UNDEF, 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.