47 #define YYBISON_VERSION "2.7.12-4996"
50 #define YYSKELETON_NAME "yacc.c"
63 #define yyparse octave_tex_parse
64 #define yylex octave_tex_lex
65 #define yyerror octave_tex_error
66 #define yylval octave_tex_lval
67 #define yychar octave_tex_char
68 #define yydebug octave_tex_debug
69 #define yynerrs octave_tex_nerrs
73 #line 23 "../../libinterp/corefcn/oct-tex-parser.yy"
87 #if defined (GNULIB_NAMESPACE)
91 #define fclose GNULIB_NAMESPACE::fclose
92 #define fprintf GNULIB_NAMESPACE::fprintf
93 #define malloc GNULIB_NAMESPACE::malloc
96 #define scanner parser.get_scanner ()
99 #line 100 "corefcn/oct-tex-parser.cc"
102 # if defined __cplusplus && 201103L <= __cplusplus
103 # define YY_NULL nullptr
110 #ifdef YYERROR_VERBOSE
111 # undef YYERROR_VERBOSE
112 # define YYERROR_VERBOSE 1
114 # define YYERROR_VERBOSE 0
119 #ifndef YY_OCTAVE_TEX_COREFCN_OCT_TEX_PARSER_H_INCLUDED
120 # define YY_OCTAVE_TEX_COREFCN_OCT_TEX_PARSER_H_INCLUDED
126 extern int octave_tex_debug;
130 #line 53 "../../libinterp/corefcn/oct-tex-parser.yy"
134 #line 135 "corefcn/oct-tex-parser.cc"
169 #define COLOR_RGB 265
182 #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
186 #line 55 "../../libinterp/corefcn/oct-tex-parser.yy"
202 #line 203 "corefcn/oct-tex-parser.cc"
204 # define YYSTYPE_IS_TRIVIAL 1
205 # define yystype YYSTYPE
206 # define YYSTYPE_IS_DECLARED 1
211 #if defined __STDC__ || defined __cplusplus
217 #if defined __STDC__ || defined __cplusplus
229 #line 230 "corefcn/oct-tex-parser.cc"
243 #elif (defined __STDC__ || defined __C99__FUNC__ \
244 || defined __cplusplus || defined _MSC_VER)
263 # ifdef __SIZE_TYPE__
264 # define YYSIZE_T __SIZE_TYPE__
265 # elif defined size_t
266 # define YYSIZE_T size_t
267 # elif ! defined YYSIZE_T && (defined __STDC__ || defined __C99__FUNC__ \
268 || defined __cplusplus || defined _MSC_VER)
270 # define YYSIZE_T size_t
272 # define YYSIZE_T unsigned int
276 #define YYSIZE_MAXIMUM ((YYSIZE_T) -1)
279 # if defined YYENABLE_NLS && YYENABLE_NLS
281 # include <libintl.h>
282 # define YY_(Msgid) dgettext ("bison-runtime", Msgid)
286 # define YY_(Msgid) Msgid
290 #ifndef __attribute__
292 # if (! defined __GNUC__ || __GNUC__ < 2 \
293 || (__GNUC__ == 2 && __GNUC_MINOR__ < 5))
294 # define __attribute__(Spec)
299 #if ! defined lint || defined __GNUC__
300 # define YYUSE(E) ((void) (E))
310 #if (defined __STDC__ || defined __C99__FUNC__ \
311 || defined __cplusplus || defined _MSC_VER)
324 #if ! defined yyoverflow || YYERROR_VERBOSE
328 # ifdef YYSTACK_USE_ALLOCA
329 # if YYSTACK_USE_ALLOCA
331 # define YYSTACK_ALLOC __builtin_alloca
332 # elif defined __BUILTIN_VA_ARG_INCR
335 # define YYSTACK_ALLOC __alloca
336 # elif defined _MSC_VER
338 # define alloca _alloca
340 # define YYSTACK_ALLOC alloca
341 # if ! defined _ALLOCA_H && ! defined EXIT_SUCCESS && (defined __STDC__ || defined __C99__FUNC__ \
342 || defined __cplusplus || defined _MSC_VER)
345 # ifndef EXIT_SUCCESS
346 # define EXIT_SUCCESS 0
353 # ifdef YYSTACK_ALLOC
355 # define YYSTACK_FREE(Ptr) do { ; } while (YYID (0))
356 # ifndef YYSTACK_ALLOC_MAXIMUM
361 # define YYSTACK_ALLOC_MAXIMUM 4032
364 # define YYSTACK_ALLOC YYMALLOC
365 # define YYSTACK_FREE YYFREE
366 # ifndef YYSTACK_ALLOC_MAXIMUM
367 # define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM
369 # if (defined __cplusplus && ! defined EXIT_SUCCESS \
370 && ! ((defined YYMALLOC || defined malloc) \
371 && (defined YYFREE || defined free)))
373 # ifndef EXIT_SUCCESS
374 # define EXIT_SUCCESS 0
378 # define YYMALLOC malloc
379 # if ! defined malloc && ! defined EXIT_SUCCESS && (defined __STDC__ || defined __C99__FUNC__ \
380 || defined __cplusplus || defined _MSC_VER)
386 # if ! defined free && ! defined EXIT_SUCCESS && (defined __STDC__ || defined __C99__FUNC__ \
387 || defined __cplusplus || defined _MSC_VER)
395 #if (! defined yyoverflow \
396 && (! defined __cplusplus \
397 || (defined YYSTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL)))
407 # define YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1)
411 # define YYSTACK_BYTES(N) \
412 ((N) * (sizeof (yytype_int16) + sizeof (YYSTYPE)) \
413 + YYSTACK_GAP_MAXIMUM)
415 # define YYCOPY_NEEDED 1
422 # define YYSTACK_RELOCATE(Stack_alloc, Stack) \
425 YYSIZE_T yynewbytes; \
426 YYCOPY (&yyptr->Stack_alloc, Stack, yysize); \
427 Stack = &yyptr->Stack_alloc; \
428 yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \
429 yyptr += yynewbytes / sizeof (*yyptr); \
435 #if defined YYCOPY_NEEDED && YYCOPY_NEEDED
439 # if defined __GNUC__ && 1 < __GNUC__
440 # define YYCOPY(Dst, Src, Count) \
441 __builtin_memcpy (Dst, Src, (Count) * sizeof (*(Src)))
443 # define YYCOPY(Dst, Src, Count) \
447 for (yyi = 0; yyi < (Count); yyi++) \
448 (Dst)[yyi] = (Src)[yyi]; \
471 #define YYMAXUTOK 274
473 #define YYTRANSLATE(YYX) \
474 ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)
479 0, 2, 2, 2, 2, 2, 2, 2, 2, 2,
480 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
481 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
482 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
483 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
484 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
485 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
486 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
487 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
488 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
489 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
490 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
491 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
492 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
493 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
494 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
495 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
496 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
497 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
498 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
499 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
500 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
501 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
502 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
503 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
504 2, 2, 2, 2, 2, 2, 1, 2, 3, 4,
505 5, 6, 7, 8, 9, 10, 11, 12, 13, 14,
514 0, 0, 3, 5, 8, 10, 12, 14, 16, 18,
515 23, 28, 33, 40, 42, 44, 46, 48, 50, 52,
516 54, 56, 58, 60, 63, 66, 69, 72, 75, 78,
517 81, 84, 86, 89, 93, 96, 97
523 33, 0, -1, 15, -1, 21, 15, -1, 17, -1,
524 3, -1, 4, -1, 5, -1, 6, -1, 8, 11,
525 16, 12, -1, 7, 11, 21, 12, -1, 9, 11,
526 21, 12, -1, 10, 11, 16, 16, 16, 12, -1,
527 21, -1, 32, -1, 22, -1, 23, -1, 24, -1,
528 25, -1, 26, -1, 28, -1, 29, -1, 30, -1,
529 13, 15, -1, 13, 32, -1, 13, 22, -1, 14,
530 15, -1, 14, 32, -1, 14, 22, -1, 29, 28,
531 -1, 28, 29, -1, 27, -1, 31, 27, -1, 11,
532 31, 12, -1, 11, 12, -1, -1, 31, -1
538 0, 97, 97, 99, 103, 107, 109, 111, 113, 117,
539 121, 128, 133, 139, 144, 147, 148, 149, 150, 151,
540 152, 153, 154, 157, 159, 161, 165, 167, 169, 173,
541 175, 179, 181, 185, 187, 192, 193
545 #if YYDEBUG || YYERROR_VERBOSE || 0
548 static const char *
const yytname[] =
550 "$end",
"error",
"$undefined",
"BF",
"IT",
"SL",
"RM",
"FONTNAME",
551 "FONTSIZE",
"COLOR",
"COLOR_RGB",
"START",
"END",
"SUPER",
"SUB",
"CH",
552 "NUM",
"SYM",
"SCRIPT",
"STR",
"$accept",
"simple_string",
553 "symbol_element",
"font_modifier_element",
"fontsize_element",
554 "fontname_element",
"color_element",
"string_element",
555 "superscript_element",
"subscript_element",
"combined_script_element",
556 "string_element_list",
"scoped_string_element_list",
"string",
YY_NULL
565 0, 256, 257, 258, 259, 260, 261, 262, 263, 264,
566 265, 266, 267, 268, 269, 270, 271, 272, 273, 274
573 0, 20, 21, 21, 22, 23, 23, 23, 23, 24,
574 25, 26, 26, 27, 27, 27, 27, 27, 27, 27,
575 27, 27, 27, 28, 28, 28, 29, 29, 29, 30,
576 30, 31, 31, 32, 32, 33, 33
582 0, 2, 1, 2, 1, 1, 1, 1, 1, 4,
583 4, 4, 6, 1, 1, 1, 1, 1, 1, 1,
584 1, 1, 1, 2, 2, 2, 2, 2, 2, 2,
593 35, 5, 6, 7, 8, 0, 0, 0, 0, 0,
594 0, 0, 2, 4, 13, 15, 16, 17, 18, 19,
595 31, 20, 21, 22, 36, 14, 0, 0, 0, 0,
596 0, 34, 0, 23, 25, 24, 26, 28, 27, 3,
597 30, 29, 32, 1, 0, 0, 0, 0, 33, 10,
604 -1, 14, 15, 16, 17, 18, 19, 20, 21, 22,
610 #define YYPACT_NINF -4
613 27, -4, -4, -4, -4, 2, 17, 32, 37, -3,
614 34, 35, -4, -4, 40, -4, -4, -4, -4, -4,
615 -4, 45, 52, -4, 27, -4, 66, 54, 55, 54,
616 56, -4, 12, -4, -4, -4, -4, -4, -4, -4,
617 -4, -4, -4, -4, 41, 58, 42, 57, -4, -4,
624 -4, 31, 51, -4, -4, -4, -4, 15, 46, 60,
631 #define YYTABLE_NINF -1
634 1, 2, 3, 4, 5, 6, 7, 8, 9, 31,
635 10, 11, 12, 27, 13, 1, 2, 3, 4, 5,
636 6, 7, 8, 9, 48, 10, 11, 12, 28, 13,
637 1, 2, 3, 4, 5, 6, 7, 8, 9, 42,
638 10, 11, 12, 29, 13, 9, 9, 42, 30, 33,
639 36, 13, 13, 49, 51, 39, 39, 39, 44, 11,
640 46, 34, 37, 35, 38, 10, 43, 0, 41, 12,
641 50, 45, 47, 52, 54, 53, 32, 0, 0, 0,
645 #define yypact_value_is_default(Yystate) \
646 (!!((Yystate) == (-4)))
648 #define yytable_value_is_error(Yytable_value) \
653 3, 4, 5, 6, 7, 8, 9, 10, 11, 12,
654 13, 14, 15, 11, 17, 3, 4, 5, 6, 7,
655 8, 9, 10, 11, 12, 13, 14, 15, 11, 17,
656 3, 4, 5, 6, 7, 8, 9, 10, 11, 24,
657 13, 14, 15, 11, 17, 11, 11, 32, 11, 15,
658 15, 17, 17, 12, 12, 15, 15, 15, 27, 14,
659 29, 10, 11, 10, 11, 13, 0, -1, 22, 15,
660 12, 16, 16, 16, 12, 16, 9, -1, -1, -1,
668 0, 3, 4, 5, 6, 7, 8, 9, 10, 11,
669 13, 14, 15, 17, 21, 22, 23, 24, 25, 26,
670 27, 28, 29, 30, 31, 32, 33, 11, 11, 11,
671 11, 12, 31, 15, 22, 32, 15, 22, 32, 15,
672 29, 28, 27, 0, 21, 16, 21, 16, 12, 12,
676 #define yyerrok (yyerrstatus = 0)
677 #define yyclearin (yychar = YYEMPTY)
681 #define YYACCEPT goto yyacceptlab
682 #define YYABORT goto yyabortlab
683 #define YYERROR goto yyerrorlab
693 #define YYFAIL goto yyerrlab
701 #define YYRECOVERING() (!!yyerrstatus)
703 #define YYBACKUP(Token, Value) \
705 if (yychar == YYEMPTY) \
709 YYPOPSTACK (yylen); \
715 yyerror (parser, YY_("syntax error: cannot back up")); \
722 #define YYERRCODE 256
726 #ifndef YY_LOCATION_PRINT
727 # define YY_LOCATION_PRINT(File, Loc) ((void) 0)
733 # define YYLEX yylex (&yylval, YYLEX_PARAM)
735 # define YYLEX yylex (&yylval, scanner)
743 # define YYFPRINTF fprintf
746 # define YYDPRINTF(Args) \
752 # define YY_SYMBOL_PRINT(Title, Type, Value, Location) \
756 YYFPRINTF (stderr, "%s ", Title); \
757 yy_symbol_print (stderr, \
758 Type, Value, parser); \
759 YYFPRINTF (stderr, "\n"); \
769 #if (defined __STDC__ || defined __C99__FUNC__ \
770 || defined __cplusplus || defined _MSC_VER)
778 YYSTYPE const * const yyvaluep;
782 FILE *yyo = yyoutput;
789 YYPRINT (yyoutput, yytoknum[yytype], *yyvaluep);
801 #if (defined __STDC__ || defined __C99__FUNC__ \
802 || defined __cplusplus || defined _MSC_VER)
807 yy_symbol_print (yyoutput, yytype, yyvaluep, parser)
810 YYSTYPE const * const yyvaluep;
815 YYFPRINTF (yyoutput,
"token %s (", yytname[yytype]);
817 YYFPRINTF (yyoutput,
"nterm %s (", yytname[yytype]);
828 #if (defined __STDC__ || defined __C99__FUNC__ \
829 || defined __cplusplus || defined _MSC_VER)
834 yy_stack_print (yybottom, yytop)
840 for (; yybottom <=
yytop; yybottom++)
842 int yybot = *yybottom;
848 # define YY_STACK_PRINT(Bottom, Top) \
851 yy_stack_print ((Bottom), (Top)); \
859 #if (defined __STDC__ || defined __C99__FUNC__ \
860 || defined __cplusplus || defined _MSC_VER)
865 yy_reduce_print (yyvsp, yyrule, parser)
871 int yynrhs = yyr2[
yyrule];
873 unsigned long int yylno = yyrline[
yyrule];
874 YYFPRINTF (stderr,
"Reducing stack by rule %d (line %lu):\n",
877 for (yyi = 0; yyi < yynrhs; yyi++)
880 yy_symbol_print (stderr, yyrhs[yyprhs[yyrule] + yyi],
881 &(yyvsp[(yyi + 1) - (yynrhs)])
887 # define YY_REDUCE_PRINT(Rule) \
890 yy_reduce_print (yyvsp, Rule, parser); \
897 # define YYDPRINTF(Args)
898 # define YY_SYMBOL_PRINT(Title, Type, Value, Location)
899 # define YY_STACK_PRINT(Bottom, Top)
900 # define YY_REDUCE_PRINT(Rule)
906 # define YYINITDEPTH 200
917 # define YYMAXDEPTH 10000
924 # if defined __GLIBC__ && defined _STRING_H
925 # define yystrlen strlen
928 #if (defined __STDC__ || defined __C99__FUNC__ \
929 || defined __cplusplus || defined _MSC_VER)
931 yystrlen (
const char *yystr)
939 for (yylen = 0; yystr[yylen]; yylen++)
947 # if defined __GLIBC__ && defined _STRING_H && defined _GNU_SOURCE
948 # define yystpcpy stpcpy
952 #if (defined __STDC__ || defined __C99__FUNC__ \
953 || defined __cplusplus || defined _MSC_VER)
955 yystpcpy (
char *yydest,
const char *yysrc)
958 yystpcpy (yydest, yysrc)
964 const char *yys = yysrc;
966 while ((*yyd++ = *yys++) !=
'\0')
983 yytnamerr (
char *yyres,
const char *yystr)
988 char const *yyp = yystr;
995 goto do_not_strip_quotes;
999 goto do_not_strip_quotes;
1012 do_not_strip_quotes: ;
1016 return yystrlen (yystr);
1018 return yystpcpy (yyres, yystr) - yyres;
1031 yysyntax_error (
YYSIZE_T *yymsg_alloc,
char **yymsg,
1036 enum { YYERROR_VERBOSE_ARGS_MAXIMUM = 5 };
1038 const char *yyformat =
YY_NULL;
1040 char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM];
1074 int yyn = yypact[*yyssp];
1075 yyarg[yycount++] = yytname[yytoken];
1081 int yyxbegin = yyn < 0 ? -yyn : 0;
1083 int yychecklim =
YYLAST - yyn + 1;
1087 for (yyx = yyxbegin; yyx < yyxend; ++yyx)
1088 if (yycheck[yyx + yyn] == yyx && yyx !=
YYTERROR
1091 if (yycount == YYERROR_VERBOSE_ARGS_MAXIMUM)
1097 yyarg[yycount++] = yytname[yyx];
1100 if (! (yysize <= yysize1
1111 # define YYCASE_(N, S) \
1115 YYCASE_(0,
YY_(
"syntax error"));
1116 YYCASE_(1,
YY_(
"syntax error, unexpected %s"));
1117 YYCASE_(2,
YY_(
"syntax error, unexpected %s, expecting %s"));
1118 YYCASE_(3,
YY_(
"syntax error, unexpected %s, expecting %s or %s"));
1119 YYCASE_(4,
YY_(
"syntax error, unexpected %s, expecting %s or %s or %s"));
1120 YYCASE_(5,
YY_(
"syntax error, unexpected %s, expecting %s or %s or %s or %s"));
1125 YYSIZE_T yysize1 = yysize + yystrlen (yyformat);
1131 if (*yymsg_alloc < yysize)
1133 *yymsg_alloc = 2 * yysize;
1134 if (! (yysize <= *yymsg_alloc
1146 while ((*yyp = *yyformat) !=
'\0')
1147 if (*yyp ==
'%' && yyformat[1] ==
's' && yyi < yycount)
1149 yyp += yytnamerr (yyp, yyarg[yyi++]);
1167 #if (defined __STDC__ || defined __C99__FUNC__ \
1168 || defined __cplusplus || defined _MSC_VER)
1191 #line 84 "../../libinterp/corefcn/oct-tex-parser.yy"
1194 #line 1195 "corefcn/oct-tex-parser.cc"
1198 #line 84 "../../libinterp/corefcn/oct-tex-parser.yy"
1201 #line 1202 "corefcn/oct-tex-parser.cc"
1205 #line 84 "../../libinterp/corefcn/oct-tex-parser.yy"
1208 #line 1209 "corefcn/oct-tex-parser.cc"
1212 #line 85 "../../libinterp/corefcn/oct-tex-parser.yy"
1213 {
delete ((*yyvaluep).str); };
1215 #line 1216 "corefcn/oct-tex-parser.cc"
1219 #line 85 "../../libinterp/corefcn/oct-tex-parser.yy"
1220 {
delete ((*yyvaluep).e_base); };
1222 #line 1223 "corefcn/oct-tex-parser.cc"
1226 #line 85 "../../libinterp/corefcn/oct-tex-parser.yy"
1227 {
delete ((*yyvaluep).e_base); };
1229 #line 1230 "corefcn/oct-tex-parser.cc"
1233 #line 85 "../../libinterp/corefcn/oct-tex-parser.yy"
1234 {
delete ((*yyvaluep).e_base); };
1236 #line 1237 "corefcn/oct-tex-parser.cc"
1240 #line 85 "../../libinterp/corefcn/oct-tex-parser.yy"
1241 {
delete ((*yyvaluep).e_base); };
1243 #line 1244 "corefcn/oct-tex-parser.cc"
1247 #line 85 "../../libinterp/corefcn/oct-tex-parser.yy"
1248 {
delete ((*yyvaluep).e_base); };
1250 #line 1251 "corefcn/oct-tex-parser.cc"
1254 #line 85 "../../libinterp/corefcn/oct-tex-parser.yy"
1255 {
delete ((*yyvaluep).e_base); };
1257 #line 1258 "corefcn/oct-tex-parser.cc"
1261 #line 85 "../../libinterp/corefcn/oct-tex-parser.yy"
1262 {
delete ((*yyvaluep).e_base); };
1264 #line 1265 "corefcn/oct-tex-parser.cc"
1268 #line 85 "../../libinterp/corefcn/oct-tex-parser.yy"
1269 {
delete ((*yyvaluep).e_base); };
1271 #line 1272 "corefcn/oct-tex-parser.cc"
1275 #line 85 "../../libinterp/corefcn/oct-tex-parser.yy"
1276 {
delete ((*yyvaluep).e_base); };
1278 #line 1279 "corefcn/oct-tex-parser.cc"
1282 #line 85 "../../libinterp/corefcn/oct-tex-parser.yy"
1283 {
delete ((*yyvaluep).e_list); };
1285 #line 1286 "corefcn/oct-tex-parser.cc"
1289 #line 85 "../../libinterp/corefcn/oct-tex-parser.yy"
1290 {
delete ((*yyvaluep).e_list); };
1292 #line 1293 "corefcn/oct-tex-parser.cc"
1307 #ifdef YYPARSE_PARAM
1308 #if (defined __STDC__ || defined __C99__FUNC__ \
1309 || defined __cplusplus || defined _MSC_VER)
1315 void *YYPARSE_PARAM;
1318 #if (defined __STDC__ || defined __C99__FUNC__ \
1319 || defined __cplusplus || defined _MSC_VER)
1333 #if defined __GNUC__ && 407 <= __GNUC__ * 100 + __GNUC_MINOR__
1335 # define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN \
1336 _Pragma ("GCC diagnostic push") \
1337 _Pragma ("GCC diagnostic ignored \"-Wuninitialized\"")\
1338 _Pragma ("GCC diagnostic ignored \"-Wmaybe-uninitialized\"")
1339 # define YY_IGNORE_MAYBE_UNINITIALIZED_END \
1340 _Pragma ("GCC diagnostic pop")
1345 # define YY_INITIAL_VALUE(Value) = Value
1347 #ifndef YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
1348 # define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
1349 # define YY_IGNORE_MAYBE_UNINITIALIZED_END
1351 #ifndef YY_INITIAL_VALUE
1352 # define YY_INITIAL_VALUE(Value)
1395 char *yymsg = yymsgbuf;
1396 YYSIZE_T yymsg_alloc =
sizeof yymsgbuf;
1399 #define YYPOPSTACK(N) (yyvsp -= (N), yyssp -= (N))
1405 yyssp = yyss = yyssa;
1406 yyvsp = yyvs = yyvsa;
1409 YYDPRINTF ((stderr,
"Starting parse\n"));
1428 if (yyss + yystacksize - 1 <= yyssp)
1431 YYSIZE_T yysize = yyssp - yyss + 1;
1445 yyoverflow (
YY_(
"memory exhausted"),
1446 &yyss1, yysize *
sizeof (*yyssp),
1447 &yyvs1, yysize *
sizeof (*yyvsp),
1454 # ifndef YYSTACK_RELOCATE
1455 goto yyexhaustedlab;
1459 goto yyexhaustedlab;
1469 goto yyexhaustedlab;
1472 # undef YYSTACK_RELOCATE
1479 yyssp = yyss + yysize - 1;
1480 yyvsp = yyvs + yysize - 1;
1482 YYDPRINTF ((stderr,
"Stack size increased to %lu\n",
1483 (
unsigned long int) yystacksize));
1485 if (yyss + yystacksize - 1 <= yyssp)
1489 YYDPRINTF ((stderr,
"Entering state %d\n", yystate));
1505 yyn = yypact[yystate];
1514 YYDPRINTF ((stderr,
"Reading a token: "));
1518 if (yychar <=
YYEOF)
1520 yychar = yytoken =
YYEOF;
1521 YYDPRINTF ((stderr,
"Now at end of input.\n"));
1532 if (yyn < 0 ||
YYLAST < yyn || yycheck[yyn] != yytoken)
1566 yyn = yydefact[yystate];
1587 yyval = yyvsp[1-yylen];
1595 #line 98 "../../libinterp/corefcn/oct-tex-parser.yy"
1596 { (yyval.
str) =
new std::string (1, (yyvsp[(1) - (1)].ch)); }
1601 #line 100 "../../libinterp/corefcn/oct-tex-parser.yy"
1602 { (yyvsp[(1) - (2)].str)->append (1, (yyvsp[(2) - (2)].ch)); (yyval.
str) = (yyvsp[(1) - (2)].str); }
1607 #line 104 "../../libinterp/corefcn/oct-tex-parser.yy"
1613 #line 108 "../../libinterp/corefcn/oct-tex-parser.yy"
1619 #line 110 "../../libinterp/corefcn/oct-tex-parser.yy"
1625 #line 112 "../../libinterp/corefcn/oct-tex-parser.yy"
1631 #line 114 "../../libinterp/corefcn/oct-tex-parser.yy"
1637 #line 118 "../../libinterp/corefcn/oct-tex-parser.yy"
1643 #line 122 "../../libinterp/corefcn/oct-tex-parser.yy"
1646 delete (yyvsp[(3) - (4)].str);
1652 #line 129 "../../libinterp/corefcn/oct-tex-parser.yy"
1655 delete (yyvsp[(3) - (4)].str);
1661 #line 134 "../../libinterp/corefcn/oct-tex-parser.yy"
1669 #line 140 "../../libinterp/corefcn/oct-tex-parser.yy"
1672 delete (yyvsp[(1) - (1)].str);
1678 #line 146 "../../libinterp/corefcn/oct-tex-parser.yy"
1679 { (yyval.
e_base) = (yyvsp[(1) - (1)].e_list); }
1684 #line 158 "../../libinterp/corefcn/oct-tex-parser.yy"
1690 #line 160 "../../libinterp/corefcn/oct-tex-parser.yy"
1696 #line 162 "../../libinterp/corefcn/oct-tex-parser.yy"
1702 #line 166 "../../libinterp/corefcn/oct-tex-parser.yy"
1708 #line 168 "../../libinterp/corefcn/oct-tex-parser.yy"
1714 #line 170 "../../libinterp/corefcn/oct-tex-parser.yy"
1720 #line 174 "../../libinterp/corefcn/oct-tex-parser.yy"
1726 #line 176 "../../libinterp/corefcn/oct-tex-parser.yy"
1732 #line 180 "../../libinterp/corefcn/oct-tex-parser.yy"
1738 #line 182 "../../libinterp/corefcn/oct-tex-parser.yy"
1739 { (yyvsp[(1) - (2)].e_list)->push_back ((yyvsp[(2) - (2)].e_base)); (yyval.
e_list) = (yyvsp[(1) - (2)].e_list); }
1744 #line 186 "../../libinterp/corefcn/oct-tex-parser.yy"
1745 { (yyval.
e_list) = (yyvsp[(2) - (3)].e_list); }
1750 #line 188 "../../libinterp/corefcn/oct-tex-parser.yy"
1756 #line 192 "../../libinterp/corefcn/oct-tex-parser.yy"
1762 #line 194 "../../libinterp/corefcn/oct-tex-parser.yy"
1763 { parser.set_parse_result ((yyvsp[(1) - (1)].e_list)); }
1768 #line 1769 "corefcn/oct-tex-parser.cc"
1796 yystate = yypgoto[yyn -
YYNTOKENS] + *yyssp;
1797 if (0 <= yystate && yystate <=
YYLAST && yycheck[yystate] == *yyssp)
1798 yystate = yytable[yystate];
1817 #if ! YYERROR_VERBOSE
1820 # define YYSYNTAX_ERROR yysyntax_error (&yymsg_alloc, &yymsg, \
1823 char const *yymsgp =
YY_(
"syntax error");
1824 int yysyntax_error_status;
1825 yysyntax_error_status = YYSYNTAX_ERROR;
1826 if (yysyntax_error_status == 0)
1828 else if (yysyntax_error_status == 1)
1830 if (yymsg != yymsgbuf)
1836 yymsg_alloc =
sizeof yymsgbuf;
1837 yysyntax_error_status = 2;
1841 yysyntax_error_status = YYSYNTAX_ERROR;
1846 if (yysyntax_error_status == 2)
1847 goto yyexhaustedlab;
1849 # undef YYSYNTAX_ERROR
1855 if (yyerrstatus == 3)
1860 if (yychar <=
YYEOF)
1863 if (yychar ==
YYEOF)
1869 yytoken, &
yylval, parser);
1907 yyn = yypact[yystate];
1925 yystos[yystate], yyvsp, parser);
1957 #if !defined yyoverflow || YYERROR_VERBOSE
1974 yytoken, &
yylval, parser);
1980 while (yyssp != yyss)
1983 yystos[*yyssp], yyvsp, parser);
1991 if (yymsg != yymsgbuf)
1995 return YYID (yyresult);
2000 #line 197 "../../libinterp/corefcn/oct-tex-parser.yy"
2006 octave_tex_debug = 0;
2022 fprintf (stderr,
"TeX parse error: %s\n", s);