217
214
# if defined YYENABLE_NLS && YYENABLE_NLS
219
216
# include <libintl.h> /* INFRINGES ON USER NAME SPACE */
220
# define YY_(msgid) dgettext ("bison-runtime", msgid)
217
# define YY_(Msgid) dgettext ("bison-runtime", Msgid)
224
# define YY_(msgid) msgid
221
# define YY_(Msgid) Msgid
226
# if (defined __GNUC__ \
227
&& (2 < __GNUC__ || (__GNUC__ == 2 && 96 <= __GNUC_MINOR__))) \
228
|| defined __SUNPRO_C && 0x5110 <= __SUNPRO_C
229
# define YY_ATTRIBUTE(Spec) __attribute__(Spec)
231
# define YY_ATTRIBUTE(Spec) /* empty */
235
#ifndef YY_ATTRIBUTE_PURE
236
# define YY_ATTRIBUTE_PURE YY_ATTRIBUTE ((__pure__))
239
#ifndef YY_ATTRIBUTE_UNUSED
240
# define YY_ATTRIBUTE_UNUSED YY_ATTRIBUTE ((__unused__))
243
#if !defined _Noreturn \
244
&& (!defined __STDC_VERSION__ || __STDC_VERSION__ < 201112)
245
# if defined _MSC_VER && 1200 <= _MSC_VER
246
# define _Noreturn __declspec (noreturn)
248
# define _Noreturn YY_ATTRIBUTE ((__noreturn__))
228
252
/* Suppress unused-variable warnings by "using" E. */
229
253
#if ! defined lint || defined __GNUC__
230
# define YYUSE(e) ((void) (e))
232
# define YYUSE(e) /* empty */
235
/* Identity function, used to suppress warnings about constant conditions. */
239
#if (defined __STDC__ || defined __C99__FUNC__ \
240
|| defined __cplusplus || defined _MSC_VER)
254
# define YYUSE(E) ((void) (E))
256
# define YYUSE(E) /* empty */
259
#if defined __GNUC__ && 407 <= __GNUC__ * 100 + __GNUC_MINOR__
260
/* Suppress an incorrect diagnostic about yylval being uninitialized. */
261
# define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN \
262
_Pragma ("GCC diagnostic push") \
263
_Pragma ("GCC diagnostic ignored \"-Wuninitialized\"")\
264
_Pragma ("GCC diagnostic ignored \"-Wmaybe-uninitialized\"")
265
# define YY_IGNORE_MAYBE_UNINITIALIZED_END \
266
_Pragma ("GCC diagnostic pop")
268
# define YY_INITIAL_VALUE(Value) Value
270
#ifndef YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
271
# define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
272
# define YY_IGNORE_MAYBE_UNINITIALIZED_END
274
#ifndef YY_INITIAL_VALUE
275
# define YY_INITIAL_VALUE(Value) /* Nothing. */
253
279
#if ! defined yyoverflow || YYERROR_VERBOSE
437
/* YYPRHS[YYN] -- Index of the first RHS symbol of rule number YYN in
439
static const yytype_uint8 yyprhs[] =
441
0, 0, 3, 9, 13, 15, 17, 21, 23
444
/* YYRHS -- A `-1'-separated list of the rules' RHS. */
445
static const yytype_int8 yyrhs[] =
447
10, 0, -1, 6, 11, 8, 11, 7, -1, 11,
448
8, 11, -1, 11, -1, 12, -1, 4, 12, 5,
449
-1, 3, -1, 12, 8, 3, -1
452
/* YYRLINE[YYN] -- source line where rule number YYN was defined. */
463
/* YYRLINE[YYN] -- Source line where rule number YYN was defined. */
453
464
static const yytype_uint8 yyrline[] =
455
466
0, 50, 50, 77, 103, 120, 137, 143, 149
459
#if YYDEBUG || YYERROR_VERBOSE || YYTOKEN_TABLE
470
#if YYDEBUG || YYERROR_VERBOSE || 0
460
471
/* YYTNAME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM.
461
472
First, the terminals, then, starting at YYNTOKENS, nonterminals. */
462
473
static const char *const yytname[] =
464
475
"$end", "error", "$undefined", "CUBEFLOAT", "O_PAREN", "C_PAREN",
465
476
"O_BRACKET", "C_BRACKET", "COMMA", "$accept", "box", "paren_list",
471
/* YYTOKNUM[YYLEX-NUM] -- Internal token number corresponding to
482
/* YYTOKNUM[NUM] -- (External) token number corresponding to the
483
(internal) symbol number NUM (which must be that of a token). */
473
484
static const yytype_uint16 yytoknum[] =
475
486
0, 256, 257, 258, 259, 260, 261, 262, 263
479
/* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */
480
static const yytype_uint8 yyr1[] =
482
0, 9, 10, 10, 10, 10, 11, 12, 12
485
/* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN. */
486
static const yytype_uint8 yyr2[] =
488
0, 2, 5, 3, 1, 1, 3, 1, 3
491
/* YYDEFACT[STATE-NAME] -- Default reduction number in state STATE-NUM.
492
Performed when YYTABLE doesn't specify something else to do. Zero
493
means the default is an error. */
494
static const yytype_uint8 yydefact[] =
496
0, 7, 0, 0, 0, 4, 5, 0, 0, 1,
497
0, 0, 6, 0, 3, 8, 0, 2
500
/* YYDEFGOTO[NTERM-NUM]. */
501
static const yytype_int8 yydefgoto[] =
506
/* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing
508
490
#define YYPACT_NINF -4
492
#define yypact_value_is_default(Yystate) \
493
(!!((Yystate) == (-4)))
495
#define YYTABLE_NINF -1
497
#define yytable_value_is_error(Yytable_value) \
500
/* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing
509
502
static const yytype_int8 yypact[] =
511
504
-2, -4, 3, -1, 9, 4, 5, 0, 6, -4,
512
505
-1, 8, -4, -1, -4, -4, 10, -4
515
/* YYPGOTO[NTERM-NUM]. */
508
/* YYDEFACT[STATE-NUM] -- Default reduction number in state STATE-NUM.
509
Performed when YYTABLE does not specify something else to do. Zero
510
means the default is an error. */
511
static const yytype_uint8 yydefact[] =
513
0, 7, 0, 0, 0, 4, 5, 0, 0, 1,
514
0, 0, 6, 0, 3, 8, 0, 2
517
/* YYPGOTO[NTERM-NUM]. */
516
518
static const yytype_int8 yypgoto[] =
521
/* YYTABLE[YYPACT[STATE-NUM]]. What to do in state STATE-NUM. If
522
positive, shift that token. If negative, reduce the rule which
523
number is the opposite. If YYTABLE_NINF, syntax error. */
524
#define YYTABLE_NINF -1
523
/* YYDEFGOTO[NTERM-NUM]. */
524
static const yytype_int8 yydefgoto[] =
529
/* YYTABLE[YYPACT[STATE-NUM]] -- What to do in state STATE-NUM. If
530
positive, shift that token. If negative, reduce the rule whose
531
number is the opposite. If YYTABLE_NINF, syntax error. */
525
532
static const yytype_uint8 yytable[] =
527
534
8, 1, 2, 2, 3, 12, 1, 14, 11, 9,
528
535
16, 15, 10, 11, 13, 7, 0, 17
531
#define yypact_value_is_default(yystate) \
534
#define yytable_value_is_error(yytable_value) \
537
538
static const yytype_int8 yycheck[] =
539
540
3, 3, 4, 4, 6, 5, 3, 10, 8, 0,
540
541
13, 3, 8, 8, 8, 2, -1, 7
543
/* YYSTOS[STATE-NUM] -- The (internal number of the) accessing
544
symbol of state STATE-NUM. */
544
/* YYSTOS[STATE-NUM] -- The (internal number of the) accessing
545
symbol of state STATE-NUM. */
545
546
static const yytype_uint8 yystos[] =
547
548
0, 3, 4, 6, 10, 11, 12, 12, 11, 0,
548
549
8, 8, 5, 8, 11, 3, 11, 7
551
#define yyerrok (yyerrstatus = 0)
552
#define yyclearin (yychar = YYEMPTY)
556
#define YYACCEPT goto yyacceptlab
557
#define YYABORT goto yyabortlab
558
#define YYERROR goto yyerrorlab
561
/* Like YYERROR except do call yyerror. This remains here temporarily
562
to ease the transition to the new meaning of YYERROR, for GCC.
563
Once GCC version 2 has supplanted version 1, this can go. However,
564
YYFAIL appears to be in use. Nevertheless, it is formally deprecated
565
in Bison 2.4.2's NEWS entry, where a plan to phase it out is
568
#define YYFAIL goto yyerrlab
570
/* This is here to suppress warnings from the GCC cpp's
571
-Wunused-macros. Normally we don't worry about that warning, but
572
some users do, and we want to make it easy for users to remove
573
YYFAIL uses, which will produce warnings from Bison 2.5. */
552
/* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */
553
static const yytype_uint8 yyr1[] =
555
0, 9, 10, 10, 10, 10, 11, 12, 12
558
/* YYR2[YYN] -- Number of symbols on the right hand side of rule YYN. */
559
static const yytype_uint8 yyr2[] =
561
0, 2, 5, 3, 1, 1, 3, 1, 3
565
#define yyerrok (yyerrstatus = 0)
566
#define yyclearin (yychar = YYEMPTY)
570
#define YYACCEPT goto yyacceptlab
571
#define YYABORT goto yyabortlab
572
#define YYERROR goto yyerrorlab
576
575
#define YYRECOVERING() (!!yyerrstatus)
578
#define YYBACKUP(Token, Value) \
580
if (yychar == YYEMPTY && yylen == 1) \
577
#define YYBACKUP(Token, Value) \
579
if (yychar == YYEMPTY) \
583
YYPOPSTACK (yylen); \
589
589
yyerror (result, YY_("syntax error: cannot back up")); \
596
#define YYERRCODE 256
599
/* YYLLOC_DEFAULT -- Set CURRENT to span from RHS[1] to RHS[N].
600
If N is 0, then set CURRENT to the empty location which ends
601
the previous symbol: RHS[0] (always defined). */
603
#define YYRHSLOC(Rhs, K) ((Rhs)[K])
604
#ifndef YYLLOC_DEFAULT
605
# define YYLLOC_DEFAULT(Current, Rhs, N) \
609
(Current).first_line = YYRHSLOC (Rhs, 1).first_line; \
610
(Current).first_column = YYRHSLOC (Rhs, 1).first_column; \
611
(Current).last_line = YYRHSLOC (Rhs, N).last_line; \
612
(Current).last_column = YYRHSLOC (Rhs, N).last_column; \
616
(Current).first_line = (Current).last_line = \
617
YYRHSLOC (Rhs, 0).last_line; \
618
(Current).first_column = (Current).last_column = \
619
YYRHSLOC (Rhs, 0).last_column; \
625
/* This macro is provided for backward compatibility. */
627
#ifndef YY_LOCATION_PRINT
628
# define YY_LOCATION_PRINT(File, Loc) ((void) 0)
632
/* YYLEX -- calling `yylex' with the right arguments. */
635
# define YYLEX yylex (YYLEX_PARAM)
637
# define YYLEX yylex ()
594
/* Error token number */
596
#define YYERRCODE 256
640
600
/* Enable debugging if requested. */
749
680
YYFPRINTF (stderr, "\n");
752
# define YY_STACK_PRINT(Bottom, Top) \
755
yy_stack_print ((Bottom), (Top)); \
683
# define YY_STACK_PRINT(Bottom, Top) \
686
yy_stack_print ((Bottom), (Top)); \
759
690
/*------------------------------------------------.
760
691
| Report that the YYRULE is going to be reduced. |
761
692
`------------------------------------------------*/
763
#if (defined __STDC__ || defined __C99__FUNC__ \
764
|| defined __cplusplus || defined _MSC_VER)
766
yy_reduce_print (YYSTYPE *yyvsp, int yyrule, NDBOX **result)
769
yy_reduce_print (yyvsp, yyrule, result)
695
yy_reduce_print (yytype_int16 *yyssp, YYSTYPE *yyvsp, int yyrule, NDBOX **result)
697
unsigned long int yylno = yyrline[yyrule];
775
698
int yynrhs = yyr2[yyrule];
777
unsigned long int yylno = yyrline[yyrule];
778
700
YYFPRINTF (stderr, "Reducing stack by rule %d (line %lu):\n",
780
702
/* The symbols being reduced. */
781
703
for (yyi = 0; yyi < yynrhs; yyi++)
783
705
YYFPRINTF (stderr, " $%d = ", yyi + 1);
784
yy_symbol_print (stderr, yyrhs[yyprhs[yyrule] + yyi],
785
&(yyvsp[(yyi + 1) - (yynrhs)])
706
yy_symbol_print (stderr,
707
yystos[yyssp[yyi + 1 - yynrhs]],
708
&(yyvsp[(yyi + 1) - (yynrhs)])
787
710
YYFPRINTF (stderr, "\n");
791
# define YY_REDUCE_PRINT(Rule) \
794
yy_reduce_print (yyvsp, Rule, result); \
714
# define YY_REDUCE_PRINT(Rule) \
717
yy_reduce_print (yyssp, yyvsp, Rule, result); \
797
720
/* Nonzero means print parse trace. It is left uninitialized so that
798
721
multiple parsers can coexist. */