40 #define YYSKELETON_NAME "yacc.c"
46 #define YYLSP_NEEDED 0
50 #define yyparse tdeprint_ppdparse
51 #define yylex tdeprint_ppdlex
52 #define yyerror tdeprint_ppderror
53 #define yylval tdeprint_ppdlval
54 #define yychar tdeprint_ppdchar
55 #define yydebug tdeprint_ppddebug
56 #define yynerrs tdeprint_ppdnerrs
82 #define TRANSLATION 258
86 #define CLOSEGROUP 262
90 #define STRINGPART 266
92 #define CONSTRAINT 268
102 #line 1 "./ppdparser.y"
123 #define YYSTYPE TQStringList
124 #define YYPARSE_PARAM ppdloader
126 #define YYERROR_VERBOSE 1
128 #include <tqstringlist.h>
130 #include "ppdloader.h"
132 #define builder static_cast<PPDLoader*>( ppdloader )
134 int tdeprint_ppdlex();
135 #define tdeprint_ppderror(msg) static_cast<PPDLoader*>( ppdloader )->setErrorMsg( msg )
144 #ifdef YYERROR_VERBOSE
145 # undef YYERROR_VERBOSE
146 # define YYERROR_VERBOSE 1
148 # define YYERROR_VERBOSE 0
151 #if ! defined (YYSTYPE) && ! defined (YYSTYPE_IS_DECLARED)
153 # define yystype YYSTYPE
154 # define YYSTYPE_IS_DECLARED 1
155 # define YYSTYPE_IS_TRIVIAL 1
164 #line 164 "./ppdparser.cpp"
166 #if ! defined (yyoverflow) || YYERROR_VERBOSE
170 # if YYSTACK_USE_ALLOCA
171 # define YYSTACK_ALLOC alloca
173 # ifndef YYSTACK_USE_ALLOCA
174 # if defined (alloca) || defined (_ALLOCA_H)
175 # define YYSTACK_ALLOC alloca
178 # define YYSTACK_ALLOC __builtin_alloca
184 # ifdef YYSTACK_ALLOC
186 # define YYSTACK_FREE(Ptr) do { ; } while (0)
188 # if defined (__STDC__) || defined (__cplusplus)
190 # define YYSIZE_T size_t
192 # define YYSTACK_ALLOC malloc
193 # define YYSTACK_FREE free
198 #if (! defined (yyoverflow) \
199 && (! defined (__cplusplus) \
200 || (YYSTYPE_IS_TRIVIAL)))
210 # define YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1)
214 # define YYSTACK_BYTES(N) \
215 ((N) * (sizeof (short) + sizeof (YYSTYPE)) \
216 + YYSTACK_GAP_MAXIMUM)
222 # define YYCOPY(To, From, Count) \
223 __builtin_memcpy (To, From, (Count) * sizeof (*(From)))
225 # define YYCOPY(To, From, Count) \
229 for (yyi = 0; yyi < (Count); yyi++) \
230 (To)[yyi] = (From)[yyi]; \
241 # define YYSTACK_RELOCATE(Stack) \
244 YYSIZE_T yynewbytes; \
245 YYCOPY (&yyptr->Stack, Stack, yysize); \
246 Stack = &yyptr->Stack; \
247 yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \
248 yyptr += yynewbytes / sizeof (*yyptr); \
254 #if defined (__STDC__) || defined (__cplusplus)
255 typedef signed char yysigned_char;
257 typedef short yysigned_char;
276 #define YYMAXUTOK 272
278 #define YYTRANSLATE(YYX) \
279 ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)
282 static const unsigned char yytranslate[] =
284 0, 2, 2, 2, 2, 2, 2, 2, 2, 2,
285 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
286 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
287 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
288 2, 2, 2, 2, 2, 2, 2, 18, 2, 2,
289 2, 2, 2, 2, 2, 2, 2, 2, 19, 2,
290 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
291 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
292 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
293 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
294 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
295 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
296 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
297 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
298 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
299 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
300 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
301 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
302 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
303 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
304 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
305 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
306 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
307 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
308 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
309 2, 2, 2, 2, 2, 2, 1, 2, 3, 4,
310 5, 6, 7, 8, 9, 10, 11, 12, 13, 14,
317 static const unsigned char yyprhs[] =
319 0, 0, 3, 5, 8, 10, 13, 16, 18, 20,
320 24, 28, 33, 40, 45, 52, 57, 64, 68, 71,
321 75, 81, 85, 91, 98, 104, 110, 115, 119, 124,
322 131, 137, 141, 147, 149, 151, 153, 155, 157, 159,
327 static const yysigned_char yyrhs[] =
329 21, 0, -1, 31, -1, 21, 31, -1, 11, -1,
330 22, 11, -1, 22, 12, -1, 22, -1, 12, -1,
331 12, 18, 3, -1, 22, 18, 3, -1, 14, 10,
332 19, 12, -1, 14, 10, 18, 3, 19, 12, -1,
333 15, 10, 19, 12, -1, 15, 10, 18, 3, 19,
334 12, -1, 4, 10, 19, 22, -1, 4, 10, 18,
335 3, 19, 22, -1, 5, 19, 22, -1, 5, 22,
336 -1, 6, 19, 22, -1, 6, 19, 22, 18, 3,
337 -1, 7, 19, 22, -1, 7, 19, 22, 18, 3,
338 -1, 13, 19, 9, 10, 9, 10, -1, 13, 19,
339 9, 10, 9, -1, 13, 19, 9, 9, 10, -1,
340 13, 19, 9, 9, -1, 9, 19, 23, -1, 9,
341 10, 19, 23, -1, 9, 10, 18, 3, 19, 23,
342 -1, 9, 10, 18, 19, 23, -1, 8, 19, 22,
343 -1, 8, 19, 22, 18, 3, -1, 26, -1, 27,
344 -1, 28, -1, 29, -1, 24, -1, 25, -1, 30,
349 static const unsigned char yyrline[] =
351 0, 54, 54, 55, 58, 59, 60, 63, 64, 65,
352 66, 69, 70, 73, 74, 77, 78, 81, 82, 85,
353 86, 89, 90, 93, 94, 95, 96, 99, 100, 101,
354 102, 103, 104, 105, 106, 107, 108, 109, 110, 111,
359 #if YYDEBUG || YYERROR_VERBOSE
362 static const char *
const yytname[] =
364 "$end",
"error",
"$undefined",
"TRANSLATION",
"OPENUI",
"CLOSEUI",
365 "OPENGROUP",
"CLOSEGROUP",
"DEFAULT",
"KEYWORD",
"OPTION",
"STRINGPART",
366 "QUOTED",
"CONSTRAINT",
"PAPERDIM",
"IMGAREA",
"FOODATA",
"COMMENT",
367 "'/'",
"':'",
"$accept",
"ppdfile",
"string",
"value",
"paperdim",
368 "imgarea",
"openui",
"endui",
"opengroup",
"endgroup",
"constraint",
376 static const unsigned short yytoknum[] =
378 0, 256, 257, 258, 259, 260, 261, 262, 263, 264,
379 265, 266, 267, 268, 269, 270, 271, 272, 47, 58
384 static const unsigned char yyr1[] =
386 0, 20, 21, 21, 22, 22, 22, 23, 23, 23,
387 23, 24, 24, 25, 25, 26, 26, 27, 27, 28,
388 28, 29, 29, 30, 30, 30, 30, 31, 31, 31,
389 31, 31, 31, 31, 31, 31, 31, 31, 31, 31,
394 static const unsigned char yyr2[] =
396 0, 2, 1, 2, 1, 2, 2, 1, 1, 3,
397 3, 4, 6, 4, 6, 4, 6, 3, 2, 3,
398 5, 3, 5, 6, 5, 5, 4, 3, 4, 6,
399 5, 3, 5, 1, 1, 1, 1, 1, 1, 1,
406 static const unsigned char yydefact[] =
408 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
409 41, 40, 0, 37, 38, 33, 34, 35, 36, 39,
410 2, 0, 4, 0, 18, 0, 0, 0, 0, 0,
411 0, 0, 0, 1, 3, 0, 0, 17, 5, 6,
412 19, 21, 31, 0, 0, 8, 7, 27, 0, 0,
413 0, 0, 0, 0, 15, 0, 0, 0, 0, 0,
414 28, 0, 0, 26, 0, 0, 11, 0, 13, 0,
415 20, 22, 32, 0, 30, 9, 10, 25, 24, 0,
416 0, 16, 29, 23, 12, 14
420 static const yysigned_char yydefgoto[] =
422 -1, 12, 46, 47, 13, 14, 15, 16, 17, 18,
428 #define YYPACT_NINF -44
429 static const yysigned_char yypact[] =
431 45, 1, -6, -15, -13, 3, -7, 10, 5, 7,
432 -44, -44, 31, -44, -44, -44, -44, -44, -44, -44,
433 -44, -9, -44, 32, 16, 32, 32, 32, 14, 30,
434 48, 37, 50, -44, -44, 68, 32, 16, -44, -44,
435 -4, 8, 52, -1, 30, 57, 54, -44, 64, 73,
436 65, 75, 67, 61, 16, 78, 79, 80, 66, 30,
437 -44, 81, 83, 77, 82, 69, -44, 70, -44, 32,
438 -44, -44, -44, 30, -44, -44, -44, -44, 84, 85,
439 86, 16, -44, -44, -44, -44
443 static const yysigned_char yypgoto[] =
445 -44, -44, -2, -43, -44, -44, -44, -44, -44, -44,
453 #define YYTABLE_NINF -1
454 static const unsigned char yytable[] =
456 24, 60, 58, 28, 25, 22, 26, 38, 39, 35,
457 36, 21, 29, 23, 55, 31, 74, 32, 59, 38,
458 39, 37, 27, 40, 41, 42, 56, 38, 39, 30,
459 82, 33, 43, 44, 54, 1, 2, 3, 4, 5,
460 6, 22, 45, 22, 7, 8, 9, 10, 11, 1,
461 2, 3, 4, 5, 6, 49, 50, 48, 7, 8,
462 9, 10, 11, 38, 39, 38, 39, 81, 51, 52,
463 57, 53, 62, 63, 64, 61, 65, 66, 67, 68,
464 69, 70, 71, 72, 75, 73, 76, 77, 79, 80,
465 0, 78, 0, 0, 83, 0, 0, 84, 85, 34
468 static const yysigned_char yycheck[] =
470 2, 44, 3, 10, 19, 11, 19, 11, 12, 18,
471 19, 10, 19, 19, 18, 10, 59, 10, 19, 11,
472 12, 23, 19, 25, 26, 27, 18, 11, 12, 19,
473 73, 0, 18, 19, 36, 4, 5, 6, 7, 8,
474 9, 11, 12, 11, 13, 14, 15, 16, 17, 4,
475 5, 6, 7, 8, 9, 18, 19, 9, 13, 14,
476 15, 16, 17, 11, 12, 11, 12, 69, 18, 19,
477 18, 3, 18, 9, 10, 18, 3, 12, 3, 12,
478 19, 3, 3, 3, 3, 19, 3, 10, 19, 19,
479 -1, 9, -1, -1, 10, -1, -1, 12, 12, 12
484 static const unsigned char yystos[] =
486 0, 4, 5, 6, 7, 8, 9, 13, 14, 15,
487 16, 17, 21, 24, 25, 26, 27, 28, 29, 30,
488 31, 10, 11, 19, 22, 19, 19, 19, 10, 19,
489 19, 10, 10, 0, 31, 18, 19, 22, 11, 12,
490 22, 22, 22, 18, 19, 12, 22, 23, 9, 18,
491 19, 18, 19, 3, 22, 18, 18, 18, 3, 19,
492 23, 18, 18, 9, 10, 3, 12, 3, 12, 19,
493 3, 3, 3, 19, 23, 3, 3, 10, 9, 19,
494 19, 22, 23, 10, 12, 12
497 #if ! defined (YYSIZE_T) && defined (__SIZE_TYPE__)
498 # define YYSIZE_T __SIZE_TYPE__
500 #if ! defined (YYSIZE_T) && defined (size_t)
501 # define YYSIZE_T size_t
503 #if ! defined (YYSIZE_T)
504 # if defined (__STDC__) || defined (__cplusplus)
506 # define YYSIZE_T size_t
509 #if ! defined (YYSIZE_T)
510 # define YYSIZE_T unsigned int
513 #define yyerrok (yyerrstatus = 0)
514 #define yyclearin (yychar = YYEMPTY)
518 #define YYACCEPT goto yyacceptlab
519 #define YYABORT goto yyabortlab
520 #define YYERROR goto yyerrlab1
527 #define YYFAIL goto yyerrlab
529 #define YYRECOVERING() (!!yyerrstatus)
531 #define YYBACKUP(Token, Value) \
533 if (yychar == YYEMPTY && yylen == 1) \
537 yytoken = YYTRANSLATE (yychar); \
543 yyerror ("syntax error: cannot back up");\
549 #define YYERRCODE 256
554 #ifndef YYLLOC_DEFAULT
555 # define YYLLOC_DEFAULT(Current, Rhs, N) \
556 Current.first_line = Rhs[1].first_line; \
557 Current.first_column = Rhs[1].first_column; \
558 Current.last_line = Rhs[N].last_line; \
559 Current.last_column = Rhs[N].last_column;
565 # define YYLEX yylex (YYLEX_PARAM)
567 # define YYLEX yylex ()
575 # define YYFPRINTF fprintf
578 # define YYDPRINTF(Args) \
586 # define YYDSYMPRINT(Args) \
594 # define YYDSYMPRINTF(Title, Token, Value, Location) \
598 YYFPRINTF (stderr, "%s ", Title); \
599 yysymprint (stderr, \
601 YYFPRINTF (stderr, "\n"); \
610 #if defined (__STDC__) || defined (__cplusplus)
612 yy_stack_print (
short *bottom,
short *top)
615 yy_stack_print (bottom, top)
620 YYFPRINTF (stderr,
"Stack now");
621 for (; bottom <= top; ++bottom)
622 YYFPRINTF (stderr,
" %d", *bottom);
623 YYFPRINTF (stderr,
"\n");
626 # define YY_STACK_PRINT(Bottom, Top) \
629 yy_stack_print ((Bottom), (Top)); \
637 #if defined (__STDC__) || defined (__cplusplus)
639 yy_reduce_print (
int yyrule)
642 yy_reduce_print (yyrule)
647 unsigned int yylineno = yyrline[yyrule];
648 YYFPRINTF (stderr,
"Reducing stack by rule %d (line %u), ",
649 yyrule - 1, yylineno);
651 for (yyi = yyprhs[yyrule]; 0 <= yyrhs[yyi]; yyi++)
652 YYFPRINTF (stderr,
"%s ", yytname [yyrhs[yyi]]);
653 YYFPRINTF (stderr,
"-> %s\n", yytname [yyr1[yyrule]]);
656 # define YY_REDUCE_PRINT(Rule) \
659 yy_reduce_print (Rule); \
666 # define YYDPRINTF(Args)
667 # define YYDSYMPRINT(Args)
668 # define YYDSYMPRINTF(Title, Token, Value, Location)
669 # define YY_STACK_PRINT(Bottom, Top)
670 # define YY_REDUCE_PRINT(Rule)
676 # define YYINITDEPTH 200
691 # define YYMAXDEPTH 10000
699 # if defined (__GLIBC__) && defined (_STRING_H)
700 # define yystrlen strlen
704 # if defined (__STDC__) || defined (__cplusplus)
705 yystrlen (
const char *yystr)
711 const char *yys = yystr;
713 while (*yys++ !=
'\0')
716 return yys - yystr - 1;
722 # if defined (__GLIBC__) && defined (_STRING_H) && defined (_GNU_SOURCE)
723 # define yystpcpy stpcpy
728 # if defined (__STDC__) || defined (__cplusplus)
729 yystpcpy (
char *yydest,
const char *yysrc)
731 yystpcpy (yydest, yysrc)
737 const char *yys = yysrc;
739 while ((*yyd++ = *yys++) !=
'\0')
756 #if defined (__STDC__) || defined (__cplusplus)
758 yysymprint (FILE *yyoutput,
int yytype, YYSTYPE *yyvaluep)
761 yysymprint (yyoutput, yytype, yyvaluep)
770 if (yytype < YYNTOKENS)
772 YYFPRINTF (yyoutput,
"token %s (", yytname[yytype]);
774 YYPRINT (yyoutput, yytoknum[yytype], *yyvaluep);
778 YYFPRINTF (yyoutput,
"nterm %s (", yytname[yytype]);
785 YYFPRINTF (yyoutput,
")");
793 #if defined (__STDC__) || defined (__cplusplus)
795 yydestruct (
int yytype, YYSTYPE *yyvaluep)
798 yydestruct (yytype, yyvaluep)
818 # if defined (__STDC__) || defined (__cplusplus)
819 int yyparse (
void *YYPARSE_PARAM);
824 #if defined (__STDC__) || defined (__cplusplus)
849 # if defined (__STDC__) || defined (__cplusplus)
850 int yyparse (
void *YYPARSE_PARAM)
852 int yyparse (YYPARSE_PARAM)
856 #if defined (__STDC__) || defined (__cplusplus)
884 short yyssa[YYINITDEPTH];
889 YYSTYPE yyvsa[YYINITDEPTH];
890 YYSTYPE *yyvs = yyvsa;
895 #define YYPOPSTACK (yyvsp--, yyssp--)
897 YYSIZE_T yystacksize = YYINITDEPTH;
908 YYDPRINTF ((stderr,
"Starting parse\n"));
937 if (yyss + yystacksize - 1 <= yyssp)
940 YYSIZE_T yysize = yyssp - yyss + 1;
947 YYSTYPE *yyvs1 = yyvs;
955 yyoverflow (
"parser stack overflow",
956 &yyss1, yysize *
sizeof (*yyssp),
957 &yyvs1, yysize *
sizeof (*yyvsp),
965 # ifndef YYSTACK_RELOCATE
969 if (YYMAXDEPTH <= yystacksize)
972 if (YYMAXDEPTH < yystacksize)
973 yystacksize = YYMAXDEPTH;
977 union yyalloc *yyptr =
978 (
union yyalloc *) YYSTACK_ALLOC (YYSTACK_BYTES (yystacksize));
981 YYSTACK_RELOCATE (yyss);
982 YYSTACK_RELOCATE (yyvs);
984 # undef YYSTACK_RELOCATE
986 YYSTACK_FREE (yyss1);
991 yyssp = yyss + yysize - 1;
992 yyvsp = yyvs + yysize - 1;
995 YYDPRINTF ((stderr,
"Stack size increased to %lu\n",
996 (
unsigned long int) yystacksize));
998 if (yyss + yystacksize - 1 <= yyssp)
1002 YYDPRINTF ((stderr,
"Entering state %d\n", yystate));
1017 yyn = yypact[yystate];
1018 if (yyn == YYPACT_NINF)
1024 if (yychar == YYEMPTY)
1026 YYDPRINTF ((stderr,
"Reading a token: "));
1030 if (yychar <= YYEOF)
1032 yychar = yytoken = YYEOF;
1033 YYDPRINTF ((stderr,
"Now at end of input.\n"));
1037 yytoken = YYTRANSLATE (yychar);
1038 YYDSYMPRINTF (
"Next token is", yytoken, &yylval, &yylloc);
1044 if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken)
1049 if (yyn == 0 || yyn == YYTABLE_NINF)
1059 YYDPRINTF ((stderr,
"Shifting token %s, ", yytname[yytoken]));
1062 if (yychar != YYEOF)
1081 yyn = yydefact[yystate];
1102 yyval = yyvsp[1-yylen];
1105 YY_REDUCE_PRINT (yyn);
1109 #line 58 "./ppdparser.y"
1110 { yyval = yyvsp[0]; ;}
1114 #line 59 "./ppdparser.y"
1115 { yyvsp[-1] += yyvsp[0]; yyval = yyvsp[-1]; ;}
1119 #line 60 "./ppdparser.y"
1120 { yyvsp[-1] += yyvsp[0]; yyval = yyvsp[-1]; ;}
1124 #line 63 "./ppdparser.y"
1125 { yyval = yyvsp[0]; ;}
1129 #line 64 "./ppdparser.y"
1130 { yyval = yyvsp[0][0].mid(1,yyvsp[0][0].length()-2); ;}
1134 #line 65 "./ppdparser.y"
1135 { yyval = yyvsp[-2][0].mid(1,yyvsp[-2][0].length()-2); ;}
1139 #line 66 "./ppdparser.y"
1140 { yyval = yyvsp[-2]; ;}
1144 #line 69 "./ppdparser.y"
1145 { builder->putPaperDimension(yyvsp[-2][0], yyvsp[0][0]); ;}
1149 #line 70 "./ppdparser.y"
1150 { builder->putPaperDimension(yyvsp[-4][0], yyvsp[0][0]); ;}
1154 #line 73 "./ppdparser.y"
1155 { builder->putImageableArea(yyvsp[-2][0], yyvsp[0][0]); ;}
1159 #line 74 "./ppdparser.y"
1160 { builder->putImageableArea(yyvsp[-4][0], yyvsp[0][0]); ;}
1164 #line 77 "./ppdparser.y"
1165 { builder->openUi(yyvsp[-2][0], TQString::null, yyvsp[0][0]); ;}
1169 #line 78 "./ppdparser.y"
1170 { builder->openUi(yyvsp[-4][0], yyvsp[-2][0], yyvsp[0][0]); ;}
1174 #line 81 "./ppdparser.y"
1175 { builder->endUi(yyvsp[0][0]); ;}
1179 #line 82 "./ppdparser.y"
1180 { builder->endUi(yyvsp[0][0]); ;}
1184 #line 85 "./ppdparser.y"
1185 { builder->openGroup(yyvsp[0].join(
" "), TQString::null); ;}
1189 #line 86 "./ppdparser.y"
1190 { builder->openGroup(yyvsp[-2].join(
" "), yyvsp[0][0]); ;}
1194 #line 89 "./ppdparser.y"
1195 { builder->endGroup(yyvsp[0].join(
" ")); ;}
1199 #line 90 "./ppdparser.y"
1200 { builder->endGroup(yyvsp[-2].join(
" ")); ;}
1204 #line 93 "./ppdparser.y"
1205 { builder->putConstraint(yyvsp[-3][0], yyvsp[-1][0], yyvsp[-2][0], yyvsp[0][0]); ;}
1209 #line 94 "./ppdparser.y"
1210 { builder->putConstraint(yyvsp[-2][0], yyvsp[0][0], yyvsp[-1][0], TQString::null); ;}
1214 #line 95 "./ppdparser.y"
1215 { builder->putConstraint(yyvsp[-2][0], yyvsp[-1][0], TQString::null, yyvsp[0][0]); ;}
1219 #line 96 "./ppdparser.y"
1220 { builder->putConstraint(yyvsp[-1][0], yyvsp[0][0], TQString::null, TQString::null); ;}
1224 #line 99 "./ppdparser.y"
1225 { builder->putStatement2(yyvsp[-2][0], yyvsp[0][0]); ;}
1229 #line 100 "./ppdparser.y"
1230 { builder->putStatement(yyvsp[-3][0], yyvsp[-2][0], TQString::null, yyvsp[0]); ;}
1234 #line 101 "./ppdparser.y"
1235 { builder->putStatement(yyvsp[-5][0], yyvsp[-4][0], yyvsp[-2][0], yyvsp[0]); ;}
1239 #line 102 "./ppdparser.y"
1240 { builder->putStatement(yyvsp[-4][0], yyvsp[-3][0], TQString::null, yyvsp[-1]); ;}
1244 #line 103 "./ppdparser.y"
1245 { builder->putDefault(yyvsp[-2][0], yyvsp[0][0]); ;}
1249 #line 104 "./ppdparser.y"
1250 { builder->putDefault(yyvsp[-4][0], yyvsp[-2][0]); ;}
1254 #line 113 "./ppdparser.y"
1255 { builder->putFooData(yyvsp[0][0]); ;}
1262 #line 1258 "./ppdparser.cpp"
1268 YY_STACK_PRINT (yyss, yyssp);
1279 yystate = yypgoto[yyn - YYNTOKENS] + *yyssp;
1280 if (0 <= yystate && yystate <= YYLAST && yycheck[yystate] == *yyssp)
1281 yystate = yytable[yystate];
1283 yystate = yydefgoto[yyn - YYNTOKENS];
1297 yyn = yypact[yystate];
1299 if (YYPACT_NINF < yyn && yyn < YYLAST)
1301 YYSIZE_T yysize = 0;
1302 int yytype = YYTRANSLATE (yychar);
1309 for (yyx = yyn < 0 ? -yyn : 0;
1310 yyx < (int) (
sizeof (yytname) /
sizeof (
char *)); yyx++)
1311 if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR)
1312 yysize += yystrlen (yytname[yyx]) + 15, yycount++;
1313 yysize += yystrlen (
"syntax error, unexpected ") + 1;
1314 yysize += yystrlen (yytname[yytype]);
1315 yymsg = (
char *) YYSTACK_ALLOC (yysize);
1318 char *yyp = yystpcpy (yymsg,
"syntax error, unexpected ");
1319 yyp = yystpcpy (yyp, yytname[yytype]);
1324 for (yyx = yyn < 0 ? -yyn : 0;
1325 yyx < (int) (
sizeof (yytname) /
sizeof (
char *));
1327 if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR)
1329 const char *yyq = ! yycount ?
", expecting " :
" or ";
1330 yyp = yystpcpy (yyp, yyq);
1331 yyp = yystpcpy (yyp, yytname[yyx]);
1336 YYSTACK_FREE (yymsg);
1339 yyerror (
"syntax error; also virtual memory exhausted");
1343 yyerror (
"syntax error");
1348 if (yyerrstatus == 3)
1354 if (yychar == YYEOF)
1359 while (yyss < yyssp)
1361 YYDSYMPRINTF (
"Error: popping", yystos[*yyssp], yyvsp, yylsp);
1362 yydestruct (yystos[*yyssp], yyvsp);
1368 YYDSYMPRINTF (
"Error: discarding", yytoken, &yylval, &yylloc);
1369 yydestruct (yytoken, &yylval);
1387 yyn = yypact[yystate];
1388 if (yyn != YYPACT_NINF)
1391 if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYTERROR)
1403 YYDSYMPRINTF (
"Error: popping", yystos[*yyssp], yyvsp, yylsp);
1404 yydestruct (yystos[yystate], yyvsp);
1408 YY_STACK_PRINT (yyss, yyssp);
1414 YYDPRINTF ((stderr,
"Shifting error token, "));
1442 yyerror (
"parser stack overflow");
1450 YYSTACK_FREE (yyss);
1456 #line 116 "./ppdparser.y"