52 #define YYBISON_VERSION "3.7.5"
55 #define YYSKELETON_NAME "yacc.c"
67 #define YYSTYPE OCTAVE_TEX_STYPE
69 #define yyparse octave_tex_parse
70 #define yylex octave_tex_lex
71 #define yyerror octave_tex_error
72 #define yydebug octave_tex_debug
73 #define yynerrs octave_tex_nerrs
76 #line 26 "../libinterp/corefcn/oct-tex-parser.yy"
81 #if defined (HAVE_CONFIG_H)
93 #define scanner parser.get_scanner ()
94 #define yyalloc octave_tex_yyalloc
96 #if defined (HAVE_PRAGMA_GCC_DIAGNOSTIC)
101 # pragma GCC diagnostic push
102 # pragma GCC diagnostic ignored "-Wold-style-cast"
106 #line 107 "libinterp/corefcn/oct-tex-parser.cc"
110 # define YY_CAST(Type, Val) static_cast<Type> (Val)
111 # define YY_REINTERPRET_CAST(Type, Val) reinterpret_cast<Type> (Val)
113 # define YY_CAST(Type, Val) ((Type) (Val))
114 # define YY_REINTERPRET_CAST(Type, Val) ((Type) (Val))
118 # if defined __cplusplus
119 # if 201103L <= __cplusplus
120 # define YY_NULLPTR nullptr
122 # define YY_NULLPTR 0
125 # define YY_NULLPTR ((void*)0)
131 #ifndef YY_OCTAVE_TEX_LIBINTERP_COREFCN_OCT_TEX_PARSER_H_INCLUDED
132 # define YY_OCTAVE_TEX_LIBINTERP_COREFCN_OCT_TEX_PARSER_H_INCLUDED
134 #ifndef OCTAVE_TEX_DEBUG
137 # define OCTAVE_TEX_DEBUG 1
139 # define OCTAVE_TEX_DEBUG 0
142 # define OCTAVE_TEX_DEBUG 0
146 extern int octave_tex_debug;
149 #line 62 "../libinterp/corefcn/oct-tex-parser.yy"
152 #line 153 "libinterp/corefcn/oct-tex-parser.cc"
155 #ifndef OCTAVE_TEX_TOKENTYPE
156 # define OCTAVE_TEX_TOKENTYPE
184 #define OCTAVE_TEX_EMPTY -2
185 #define OCTAVE_TEX_EOF 0
186 #define OCTAVE_TEX_error 256
187 #define OCTAVE_TEX_UNDEF 257
195 #define COLOR_RGB 265
207 #if ! defined OCTAVE_TEX_STYPE && ! defined OCTAVE_TEX_STYPE_IS_DECLARED
210 #line 65 "../libinterp/corefcn/oct-tex-parser.yy"
224 #line 225 "libinterp/corefcn/oct-tex-parser.cc"
228 # define OCTAVE_TEX_STYPE_IS_TRIVIAL 1
229 # define OCTAVE_TEX_STYPE_IS_DECLARED 1
289 #ifndef __PTRDIFF_MAX__
291 # if defined __STDC_VERSION__ && 199901 <= __STDC_VERSION__
302 #ifdef __INT_LEAST8_MAX__
304 #elif defined YY_STDINT_H
310 #ifdef __INT_LEAST16_MAX__
312 #elif defined YY_STDINT_H
324 # undef UINT_LEAST8_MAX
325 # undef UINT_LEAST16_MAX
326 # define UINT_LEAST8_MAX 255
327 # define UINT_LEAST16_MAX 65535
330 #if defined __UINT_LEAST8_MAX__ && __UINT_LEAST8_MAX__ <= __INT_MAX__
332 #elif (!defined __UINT_LEAST8_MAX__ && defined YY_STDINT_H \
333 && UINT_LEAST8_MAX <= INT_MAX)
335 #elif !defined __UINT_LEAST8_MAX__ && UCHAR_MAX <= INT_MAX
341 #if defined __UINT_LEAST16_MAX__ && __UINT_LEAST16_MAX__ <= __INT_MAX__
343 #elif (!defined __UINT_LEAST16_MAX__ && defined YY_STDINT_H \
344 && UINT_LEAST16_MAX <= INT_MAX)
346 #elif !defined __UINT_LEAST16_MAX__ && USHRT_MAX <= INT_MAX
353 # if defined __PTRDIFF_TYPE__ && defined __PTRDIFF_MAX__
354 # define YYPTRDIFF_T __PTRDIFF_TYPE__
355 # define YYPTRDIFF_MAXIMUM __PTRDIFF_MAX__
356 # elif defined PTRDIFF_MAX
360 # define YYPTRDIFF_T ptrdiff_t
361 # define YYPTRDIFF_MAXIMUM PTRDIFF_MAX
363 # define YYPTRDIFF_T long
364 # define YYPTRDIFF_MAXIMUM LONG_MAX
369 # ifdef __SIZE_TYPE__
370 # define YYSIZE_T __SIZE_TYPE__
371 # elif defined size_t
372 # define YYSIZE_T size_t
373 # elif defined __STDC_VERSION__ && 199901 <= __STDC_VERSION__
375 # define YYSIZE_T size_t
377 # define YYSIZE_T unsigned
381 #define YYSIZE_MAXIMUM \
382 YY_CAST (YYPTRDIFF_T, \
383 (YYPTRDIFF_MAXIMUM < YY_CAST (YYSIZE_T, -1) \
384 ? YYPTRDIFF_MAXIMUM \
385 : YY_CAST (YYSIZE_T, -1)))
387 #define YYSIZEOF(X) YY_CAST (YYPTRDIFF_T, sizeof (X))
397 # if defined YYENABLE_NLS && YYENABLE_NLS
399 # include <libintl.h>
400 # define YY_(Msgid) dgettext ("bison-runtime", Msgid)
404 # define YY_(Msgid) Msgid
409 #ifndef YY_ATTRIBUTE_PURE
410 # if defined __GNUC__ && 2 < __GNUC__ + (96 <= __GNUC_MINOR__)
411 # define YY_ATTRIBUTE_PURE __attribute__ ((__pure__))
413 # define YY_ATTRIBUTE_PURE
417 #ifndef YY_ATTRIBUTE_UNUSED
418 # if defined __GNUC__ && 2 < __GNUC__ + (7 <= __GNUC_MINOR__)
419 # define YY_ATTRIBUTE_UNUSED __attribute__ ((__unused__))
421 # define YY_ATTRIBUTE_UNUSED
426 #if ! defined lint || defined __GNUC__
427 # define YY_USE(E) ((void) (E))
432 #if defined __GNUC__ && ! defined __ICC && 407 <= __GNUC__ * 100 + __GNUC_MINOR__
434 # define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN \
435 _Pragma ("GCC diagnostic push") \
436 _Pragma ("GCC diagnostic ignored \"-Wuninitialized\"") \
437 _Pragma ("GCC diagnostic ignored \"-Wmaybe-uninitialized\"")
438 # define YY_IGNORE_MAYBE_UNINITIALIZED_END \
439 _Pragma ("GCC diagnostic pop")
441 # define YY_INITIAL_VALUE(Value) Value
443 #ifndef YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
444 # define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
445 # define YY_IGNORE_MAYBE_UNINITIALIZED_END
447 #ifndef YY_INITIAL_VALUE
448 # define YY_INITIAL_VALUE(Value)
451 #if defined __cplusplus && defined __GNUC__ && ! defined __ICC && 6 <= __GNUC__
452 # define YY_IGNORE_USELESS_CAST_BEGIN \
453 _Pragma ("GCC diagnostic push") \
454 _Pragma ("GCC diagnostic ignored \"-Wuseless-cast\"")
455 # define YY_IGNORE_USELESS_CAST_END \
456 _Pragma ("GCC diagnostic pop")
458 #ifndef YY_IGNORE_USELESS_CAST_BEGIN
459 # define YY_IGNORE_USELESS_CAST_BEGIN
460 # define YY_IGNORE_USELESS_CAST_END
464 #define YY_ASSERT(E) ((void) (0 && (E)))
466 #if !defined yyoverflow
470 # ifdef YYSTACK_USE_ALLOCA
471 # if YYSTACK_USE_ALLOCA
473 # define YYSTACK_ALLOC __builtin_alloca
474 # elif defined __BUILTIN_VA_ARG_INCR
477 # define YYSTACK_ALLOC __alloca
478 # elif defined _MSC_VER
480 # define alloca _alloca
482 # define YYSTACK_ALLOC alloca
483 # if ! defined _ALLOCA_H && ! defined EXIT_SUCCESS
486 # ifndef EXIT_SUCCESS
487 # define EXIT_SUCCESS 0
494 # ifdef YYSTACK_ALLOC
496 # define YYSTACK_FREE(Ptr) do { ; } while (0)
497 # ifndef YYSTACK_ALLOC_MAXIMUM
502 # define YYSTACK_ALLOC_MAXIMUM 4032
505 # define YYSTACK_ALLOC YYMALLOC
506 # define YYSTACK_FREE YYFREE
507 # ifndef YYSTACK_ALLOC_MAXIMUM
508 # define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM
510 # if (defined __cplusplus && ! defined EXIT_SUCCESS \
511 && ! ((defined YYMALLOC || defined malloc) \
512 && (defined YYFREE || defined free)))
514 # ifndef EXIT_SUCCESS
515 # define EXIT_SUCCESS 0
519 # define YYMALLOC malloc
520 # if ! defined malloc && ! defined EXIT_SUCCESS
526 # if ! defined free && ! defined EXIT_SUCCESS
533 #if (! defined yyoverflow \
534 && (! defined __cplusplus \
535 || (defined OCTAVE_TEX_STYPE_IS_TRIVIAL && OCTAVE_TEX_STYPE_IS_TRIVIAL)))
545 # define YYSTACK_GAP_MAXIMUM (YYSIZEOF (union yyalloc) - 1)
549 # define YYSTACK_BYTES(N) \
550 ((N) * (YYSIZEOF (yy_state_t) + YYSIZEOF (YYSTYPE)) \
551 + YYSTACK_GAP_MAXIMUM)
553 # define YYCOPY_NEEDED 1
560 # define YYSTACK_RELOCATE(Stack_alloc, Stack) \
563 YYPTRDIFF_T yynewbytes; \
564 YYCOPY (&yyptr->Stack_alloc, Stack, yysize); \
565 Stack = &yyptr->Stack_alloc; \
566 yynewbytes = yystacksize * YYSIZEOF (*Stack) + YYSTACK_GAP_MAXIMUM; \
567 yyptr += yynewbytes / YYSIZEOF (*yyptr); \
573 #if defined YYCOPY_NEEDED && YYCOPY_NEEDED
577 # if defined __GNUC__ && 1 < __GNUC__
578 # define YYCOPY(Dst, Src, Count) \
579 __builtin_memcpy (Dst, Src, YY_CAST (YYSIZE_T, (Count)) * sizeof (*(Src)))
581 # define YYCOPY(Dst, Src, Count) \
585 for (yyi = 0; yyi < (Count); yyi++) \
586 (Dst)[yyi] = (Src)[yyi]; \
608 #define YYMAXUTOK 274
613 #define YYTRANSLATE(YYX) \
614 (0 <= (YYX) && (YYX) <= YYMAXUTOK \
615 ? YY_CAST (yysymbol_kind_t, yytranslate[YYX]) \
622 0, 2, 2, 2, 2, 2, 2, 2, 2, 2,
623 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
624 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
625 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
626 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
627 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
628 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
629 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
630 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
631 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
632 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
633 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
634 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
635 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
636 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
637 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
638 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
639 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
640 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
641 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
642 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
643 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
644 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
645 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
646 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
647 2, 2, 2, 2, 2, 2, 1, 2, 3, 4,
648 5, 6, 7, 8, 9, 10, 11, 12, 13, 14,
656 0, 108, 108, 110, 114, 118, 120, 122, 124, 128,
657 132, 139, 144, 150, 155, 157, 158, 159, 160, 161,
658 162, 163, 164, 167, 169, 171, 175, 177, 179, 183,
659 185, 189, 191, 196, 198, 203, 204
664 #define YY_ACCESSING_SYMBOL(State) YY_CAST (yysymbol_kind_t, yystos[State])
666 #if OCTAVE_TEX_DEBUG || 0
673 static const char *
const yytname[] =
675 "\"end of file\"",
"error",
"\"invalid token\"",
"BF",
"IT",
"SL",
"RM",
676 "FONTNAME",
"FONTSIZE",
"COLOR",
"COLOR_RGB",
"START",
"END",
"SUPER",
677 "SUB",
"CH",
"NUM",
"SYM",
"SCRIPT",
"STR",
"$accept",
"simple_string",
678 "symbol_element",
"font_modifier_element",
"fontsize_element",
679 "fontname_element",
"color_element",
"string_element",
680 "superscript_element",
"subscript_element",
"combined_script_element",
681 "string_element_list",
"scoped_string_element_list",
"string",
YY_NULLPTR
687 return yytname[yysymbol];
696 0, 256, 257, 258, 259, 260, 261, 262, 263, 264,
697 265, 266, 267, 268, 269, 270, 271, 272, 273, 274
701 #define YYPACT_NINF (-4)
703 #define yypact_value_is_default(Yyn) \
704 ((Yyn) == YYPACT_NINF)
706 #define YYTABLE_NINF (-1)
708 #define yytable_value_is_error(Yyn) \
715 27, -4, -4, -4, -4, 2, 17, 32, 37, -3,
716 34, 35, -4, -4, 40, -4, -4, -4, -4, -4,
717 -4, 45, 52, -4, 27, -4, 66, 54, 55, 54,
718 56, -4, 12, -4, -4, -4, -4, -4, -4, -4,
719 -4, -4, -4, -4, 41, 58, 42, 57, -4, -4,
728 35, 5, 6, 7, 8, 0, 0, 0, 0, 0,
729 0, 0, 2, 4, 13, 15, 16, 17, 18, 19,
730 31, 20, 21, 22, 36, 14, 0, 0, 0, 0,
731 0, 34, 0, 23, 25, 24, 26, 28, 27, 3,
732 30, 29, 32, 1, 0, 0, 0, 0, 33, 10,
739 -4, 31, 51, -4, -4, -4, -4, 15, 46, 60,
746 0, 14, 15, 16, 17, 18, 19, 20, 21, 22,
755 1, 2, 3, 4, 5, 6, 7, 8, 9, 31,
756 10, 11, 12, 27, 13, 1, 2, 3, 4, 5,
757 6, 7, 8, 9, 48, 10, 11, 12, 28, 13,
758 1, 2, 3, 4, 5, 6, 7, 8, 9, 42,
759 10, 11, 12, 29, 13, 9, 9, 42, 30, 33,
760 36, 13, 13, 49, 51, 39, 39, 39, 44, 11,
761 46, 34, 37, 35, 38, 10, 43, 0, 41, 12,
762 50, 45, 47, 52, 54, 53, 32, 0, 0, 0,
768 3, 4, 5, 6, 7, 8, 9, 10, 11, 12,
769 13, 14, 15, 11, 17, 3, 4, 5, 6, 7,
770 8, 9, 10, 11, 12, 13, 14, 15, 11, 17,
771 3, 4, 5, 6, 7, 8, 9, 10, 11, 24,
772 13, 14, 15, 11, 17, 11, 11, 32, 11, 15,
773 15, 17, 17, 12, 12, 15, 15, 15, 27, 14,
774 29, 10, 11, 10, 11, 13, 0, -1, 22, 15,
775 12, 16, 16, 16, 12, 16, 9, -1, -1, -1,
783 0, 3, 4, 5, 6, 7, 8, 9, 10, 11,
784 13, 14, 15, 17, 21, 22, 23, 24, 25, 26,
785 27, 28, 29, 30, 31, 32, 33, 11, 11, 11,
786 11, 12, 31, 15, 22, 32, 15, 22, 32, 15,
787 29, 28, 27, 0, 21, 16, 21, 16, 12, 12,
794 0, 20, 21, 21, 22, 23, 23, 23, 23, 24,
795 25, 26, 26, 27, 27, 27, 27, 27, 27, 27,
796 27, 27, 27, 28, 28, 28, 29, 29, 29, 30,
797 30, 31, 31, 32, 32, 33, 33
803 0, 2, 1, 2, 1, 1, 1, 1, 1, 4,
804 4, 4, 6, 1, 1, 1, 1, 1, 1, 1,
805 1, 1, 1, 2, 2, 2, 2, 2, 2, 2,
812 #define yyerrok (yyerrstatus = 0)
813 #define yyclearin (yychar = OCTAVE_TEX_EMPTY)
815 #define YYACCEPT goto yyacceptlab
816 #define YYABORT goto yyabortlab
817 #define YYERROR goto yyerrorlab
820 #define YYRECOVERING() (!!yyerrstatus)
822 #define YYBACKUP(Token, Value) \
824 if (yychar == OCTAVE_TEX_EMPTY) \
828 YYPOPSTACK (yylen); \
834 yyerror (parser, YY_("syntax error: cannot back up")); \
841 #define YYERRCODE OCTAVE_TEX_UNDEF
849 # define YYFPRINTF fprintf
852 # define YYDPRINTF(Args) \
859 # ifndef YY_LOCATION_PRINT
860 # define YY_LOCATION_PRINT(File, Loc) ((void) 0)
864 # define YY_SYMBOL_PRINT(Title, Kind, Value, Location) \
868 YYFPRINTF (stderr, "%s ", Title); \
869 yy_symbol_print (stderr, \
870 Kind, Value, parser); \
871 YYFPRINTF (stderr, "\n"); \
881 yy_symbol_value_print (FILE *yyo,
884 FILE *yyoutput = yyo;
891 YYPRINT (yyo, yytoknum[yykind], *yyvaluep);
904 yy_symbol_print (FILE *yyo,
907 YYFPRINTF (yyo,
"%s %s (",
908 yykind <
YYNTOKENS ?
"token" :
"nterm", yysymbol_name (yykind));
910 yy_symbol_value_print (yyo, yykind, yyvaluep, parser);
911 YYFPRINTF (yyo,
")");
922 YYFPRINTF (stderr,
"Stack now");
923 for (; yybottom <= yytop; yybottom++)
925 int yybot = *yybottom;
926 YYFPRINTF (stderr,
" %d", yybot);
928 YYFPRINTF (stderr,
"\n");
931 # define YY_STACK_PRINT(Bottom, Top) \
934 yy_stack_print ((Bottom), (Top)); \
946 int yylno = yyrline[yyrule];
947 int yynrhs =
yyr2[yyrule];
949 YYFPRINTF (stderr,
"Reducing stack by rule %d (line %d):\n",
952 for (yyi = 0; yyi < yynrhs; yyi++)
954 YYFPRINTF (stderr,
" $%d = ", yyi + 1);
955 yy_symbol_print (stderr,
957 &
yyvsp[(yyi + 1) - (yynrhs)], parser);
958 YYFPRINTF (stderr,
"\n");
962 # define YY_REDUCE_PRINT(Rule) \
965 yy_reduce_print (yyssp, yyvsp, Rule, parser); \
972 # define YYDPRINTF(Args) ((void) 0)
973 # define YY_SYMBOL_PRINT(Title, Kind, Value, Location)
974 # define YY_STACK_PRINT(Bottom, Top)
975 # define YY_REDUCE_PRINT(Rule)
981 # define YYINITDEPTH 200
992 # define YYMAXDEPTH 10000
1018 #line 95 "../libinterp/corefcn/oct-tex-parser.yy"
1020 #line 1021 "libinterp/corefcn/oct-tex-parser.cc"
1024 #line 95 "../libinterp/corefcn/oct-tex-parser.yy"
1026 #line 1027 "libinterp/corefcn/oct-tex-parser.cc"
1030 #line 95 "../libinterp/corefcn/oct-tex-parser.yy"
1032 #line 1033 "libinterp/corefcn/oct-tex-parser.cc"
1036 #line 96 "../libinterp/corefcn/oct-tex-parser.yy"
1037 {
delete ((*yyvaluep).str); }
1038 #line 1039 "libinterp/corefcn/oct-tex-parser.cc"
1042 #line 96 "../libinterp/corefcn/oct-tex-parser.yy"
1043 {
delete ((*yyvaluep).e_base); }
1044 #line 1045 "libinterp/corefcn/oct-tex-parser.cc"
1048 #line 96 "../libinterp/corefcn/oct-tex-parser.yy"
1049 {
delete ((*yyvaluep).e_base); }
1050 #line 1051 "libinterp/corefcn/oct-tex-parser.cc"
1054 #line 96 "../libinterp/corefcn/oct-tex-parser.yy"
1055 {
delete ((*yyvaluep).e_base); }
1056 #line 1057 "libinterp/corefcn/oct-tex-parser.cc"
1060 #line 96 "../libinterp/corefcn/oct-tex-parser.yy"
1061 {
delete ((*yyvaluep).e_base); }
1062 #line 1063 "libinterp/corefcn/oct-tex-parser.cc"
1066 #line 96 "../libinterp/corefcn/oct-tex-parser.yy"
1067 {
delete ((*yyvaluep).e_base); }
1068 #line 1069 "libinterp/corefcn/oct-tex-parser.cc"
1072 #line 96 "../libinterp/corefcn/oct-tex-parser.yy"
1073 {
delete ((*yyvaluep).e_base); }
1074 #line 1075 "libinterp/corefcn/oct-tex-parser.cc"
1078 #line 96 "../libinterp/corefcn/oct-tex-parser.yy"
1079 {
delete ((*yyvaluep).e_base); }
1080 #line 1081 "libinterp/corefcn/oct-tex-parser.cc"
1084 #line 96 "../libinterp/corefcn/oct-tex-parser.yy"
1085 {
delete ((*yyvaluep).e_base); }
1086 #line 1087 "libinterp/corefcn/oct-tex-parser.cc"
1090 #line 96 "../libinterp/corefcn/oct-tex-parser.yy"
1091 {
delete ((*yyvaluep).e_base); }
1092 #line 1093 "libinterp/corefcn/oct-tex-parser.cc"
1096 #line 96 "../libinterp/corefcn/oct-tex-parser.yy"
1097 {
delete ((*yyvaluep).e_list); }
1098 #line 1099 "libinterp/corefcn/oct-tex-parser.cc"
1102 #line 96 "../libinterp/corefcn/oct-tex-parser.yy"
1103 {
delete ((*yyvaluep).e_list); }
1104 #line 1105 "libinterp/corefcn/oct-tex-parser.cc"
1169 #define YYPOPSTACK(N) (yyvsp -= (N), yyssp -= (N))
1175 YYDPRINTF ((stderr,
"Starting parse\n"));
1202 #if !defined yyoverflow && !defined YYSTACK_RELOCATE
1203 goto yyexhaustedlab;
1209 # if defined yyoverflow
1221 yyoverflow (
YY_(
"memory exhausted"),
1231 goto yyexhaustedlab;
1242 goto yyexhaustedlab;
1245 # undef YYSTACK_RELOCATE
1255 YYDPRINTF ((stderr,
"Stack size increased to %ld\n",
1287 YYDPRINTF ((stderr,
"Reading a token\n"));
1295 YYDPRINTF ((stderr,
"Now at end of input.\n"));
1369 yyval =
yyvsp[1-yylen];
1376 #line 109 "../libinterp/corefcn/oct-tex-parser.yy"
1377 { (yyval.str) =
new std::string (1, (
yyvsp[0].ch)); }
1378 #line 1379 "libinterp/corefcn/oct-tex-parser.cc"
1382 #line 111 "../libinterp/corefcn/oct-tex-parser.yy"
1383 { (
yyvsp[-1].str)->append (1, (
yyvsp[0].ch)); (yyval.str) = (
yyvsp[-1].str); }
1384 #line 1385 "libinterp/corefcn/oct-tex-parser.cc"
1388 #line 115 "../libinterp/corefcn/oct-tex-parser.yy"
1390 #line 1391 "libinterp/corefcn/oct-tex-parser.cc"
1394 #line 119 "../libinterp/corefcn/oct-tex-parser.yy"
1396 #line 1397 "libinterp/corefcn/oct-tex-parser.cc"
1400 #line 121 "../libinterp/corefcn/oct-tex-parser.yy"
1402 #line 1403 "libinterp/corefcn/oct-tex-parser.cc"
1406 #line 123 "../libinterp/corefcn/oct-tex-parser.yy"
1408 #line 1409 "libinterp/corefcn/oct-tex-parser.cc"
1412 #line 125 "../libinterp/corefcn/oct-tex-parser.yy"
1414 #line 1415 "libinterp/corefcn/oct-tex-parser.cc"
1418 #line 129 "../libinterp/corefcn/oct-tex-parser.yy"
1420 #line 1421 "libinterp/corefcn/oct-tex-parser.cc"
1424 #line 133 "../libinterp/corefcn/oct-tex-parser.yy"
1427 delete (
yyvsp[-1].str);
1429 #line 1430 "libinterp/corefcn/oct-tex-parser.cc"
1433 #line 140 "../libinterp/corefcn/oct-tex-parser.yy"
1436 delete (
yyvsp[-1].str);
1438 #line 1439 "libinterp/corefcn/oct-tex-parser.cc"
1442 #line 145 "../libinterp/corefcn/oct-tex-parser.yy"
1446 #line 1447 "libinterp/corefcn/oct-tex-parser.cc"
1450 #line 151 "../libinterp/corefcn/oct-tex-parser.yy"
1453 delete (
yyvsp[0].str);
1455 #line 1456 "libinterp/corefcn/oct-tex-parser.cc"
1459 #line 156 "../libinterp/corefcn/oct-tex-parser.yy"
1460 { (yyval.e_base) = (
yyvsp[0].e_list); }
1461 #line 1462 "libinterp/corefcn/oct-tex-parser.cc"
1465 #line 168 "../libinterp/corefcn/oct-tex-parser.yy"
1467 #line 1468 "libinterp/corefcn/oct-tex-parser.cc"
1471 #line 170 "../libinterp/corefcn/oct-tex-parser.yy"
1473 #line 1474 "libinterp/corefcn/oct-tex-parser.cc"
1477 #line 172 "../libinterp/corefcn/oct-tex-parser.yy"
1479 #line 1480 "libinterp/corefcn/oct-tex-parser.cc"
1483 #line 176 "../libinterp/corefcn/oct-tex-parser.yy"
1485 #line 1486 "libinterp/corefcn/oct-tex-parser.cc"
1489 #line 178 "../libinterp/corefcn/oct-tex-parser.yy"
1491 #line 1492 "libinterp/corefcn/oct-tex-parser.cc"
1495 #line 180 "../libinterp/corefcn/oct-tex-parser.yy"
1497 #line 1498 "libinterp/corefcn/oct-tex-parser.cc"
1501 #line 184 "../libinterp/corefcn/oct-tex-parser.yy"
1503 #line 1504 "libinterp/corefcn/oct-tex-parser.cc"
1507 #line 186 "../libinterp/corefcn/oct-tex-parser.yy"
1509 #line 1510 "libinterp/corefcn/oct-tex-parser.cc"
1513 #line 190 "../libinterp/corefcn/oct-tex-parser.yy"
1515 #line 1516 "libinterp/corefcn/oct-tex-parser.cc"
1519 #line 192 "../libinterp/corefcn/oct-tex-parser.yy"
1520 { (
yyvsp[-1].e_list)->push_back ((
yyvsp[0].e_base)); (yyval.e_list) = (
yyvsp[-1].e_list); }
1521 #line 1522 "libinterp/corefcn/oct-tex-parser.cc"
1525 #line 197 "../libinterp/corefcn/oct-tex-parser.yy"
1526 { (yyval.e_list) = (
yyvsp[-1].e_list); }
1527 #line 1528 "libinterp/corefcn/oct-tex-parser.cc"
1531 #line 199 "../libinterp/corefcn/oct-tex-parser.yy"
1533 #line 1534 "libinterp/corefcn/oct-tex-parser.cc"
1537 #line 203 "../libinterp/corefcn/oct-tex-parser.yy"
1539 #line 1540 "libinterp/corefcn/oct-tex-parser.cc"
1543 #line 205 "../libinterp/corefcn/oct-tex-parser.yy"
1545 #line 1546 "libinterp/corefcn/oct-tex-parser.cc"
1549 #line 1550 "libinterp/corefcn/oct-tex-parser.cc"
1613 yytoken, &
yylval, parser);
1702 #if !defined yyoverflow
1723 yytoken, &
yylval, parser);
1743 #line 208 "../libinterp/corefcn/oct-tex-parser.yy"
1746 #if defined (HAVE_PRAGMA_GCC_DIAGNOSTIC)
1748 # pragma GCC diagnostic pop
1756 octave_tex_debug = 0;
1773 fprintf (stderr,
"TeX parse error: %s\n", s);
text_element * parse(const std::string &s)
void set_parse_result(text_element *e)
bool init_lexer(const std::string &s)
#define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
static const yytype_int8 yytranslate[]
@ YYSYMBOL_string_element_list
@ YYSYMBOL_fontsize_element
@ YYSYMBOL_scoped_string_element_list
@ YYSYMBOL_subscript_element
@ YYSYMBOL_superscript_element
@ YYSYMBOL_fontname_element
@ YYSYMBOL_combined_script_element
@ YYSYMBOL_symbol_element
@ YYSYMBOL_string_element
@ YYSYMBOL_font_modifier_element
#define YY_IGNORE_MAYBE_UNINITIALIZED_END
static const yytype_int8 yydefact[]
#define YY_IGNORE_USELESS_CAST_END
static const yytype_int8 yycheck[]
#define YY_REDUCE_PRINT(Rule)
#define YY_CAST(Type, Val)
static const yytype_int8 yypact[]
#define YY_ACCESSING_SYMBOL(State)
Accessing symbol of state STATE.
#define YY_SYMBOL_PRINT(Title, Kind, Value, Location)
#define YY_INITIAL_VALUE(Value)
int octave_tex_parse(octave::text_parser_tex &parser)
unsigned char yytype_uint8
#define YY_STACK_PRINT(Bottom, Top)
#define YY_IGNORE_USELESS_CAST_BEGIN
static const yytype_int8 yyr2[]
static const yytype_int8 yytable[]
#define yytable_value_is_error(Yyn)
static const yytype_int8 yystos[]
#define YY_ATTRIBUTE_UNUSED
static const yytype_int8 yypgoto[]
static const yytype_int8 yyr1[]
int octave_tex_lex(OCTAVE_TEX_STYPE *, void *)
The main scanner function which does all the work.
unsigned short yytype_uint16
static const yytype_int8 yydefgoto[]
#define YYSTACK_RELOCATE(Stack_alloc, Stack)
#define yypact_value_is_default(Yyn)
static void yydestruct(const char *yymsg, yysymbol_kind_t yykind, OCTAVE_TEX_STYPE *yyvaluep, octave::text_parser_tex &parser)
enum octave_tex_tokentype octave_tex_token_kind_t
octave::text_element * e_base
octave::text_element_list * e_list
OCTAVE_TEX_STYPE yyvs_alloc