xref: /OK3568_Linux_fs/external/xserver/hw/dmx/config/parser.c (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun /* A Bison parser, made by GNU Bison 3.7.3.  */
2*4882a593Smuzhiyun 
3*4882a593Smuzhiyun /* Bison implementation for Yacc-like parsers in C
4*4882a593Smuzhiyun 
5*4882a593Smuzhiyun    Copyright (C) 1984, 1989-1990, 2000-2015, 2018-2020 Free Software Foundation,
6*4882a593Smuzhiyun    Inc.
7*4882a593Smuzhiyun 
8*4882a593Smuzhiyun    This program is free software: you can redistribute it and/or modify
9*4882a593Smuzhiyun    it under the terms of the GNU General Public License as published by
10*4882a593Smuzhiyun    the Free Software Foundation, either version 3 of the License, or
11*4882a593Smuzhiyun    (at your option) any later version.
12*4882a593Smuzhiyun 
13*4882a593Smuzhiyun    This program is distributed in the hope that it will be useful,
14*4882a593Smuzhiyun    but WITHOUT ANY WARRANTY; without even the implied warranty of
15*4882a593Smuzhiyun    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16*4882a593Smuzhiyun    GNU General Public License for more details.
17*4882a593Smuzhiyun 
18*4882a593Smuzhiyun    You should have received a copy of the GNU General Public License
19*4882a593Smuzhiyun    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
20*4882a593Smuzhiyun 
21*4882a593Smuzhiyun /* As a special exception, you may create a larger work that contains
22*4882a593Smuzhiyun    part or all of the Bison parser skeleton and distribute that work
23*4882a593Smuzhiyun    under terms of your choice, so long as that work isn't itself a
24*4882a593Smuzhiyun    parser generator using the skeleton or a modified version thereof
25*4882a593Smuzhiyun    as a parser skeleton.  Alternatively, if you modify or redistribute
26*4882a593Smuzhiyun    the parser skeleton itself, you may (at your option) remove this
27*4882a593Smuzhiyun    special exception, which will cause the skeleton and the resulting
28*4882a593Smuzhiyun    Bison output files to be licensed under the GNU General Public
29*4882a593Smuzhiyun    License without this special exception.
30*4882a593Smuzhiyun 
31*4882a593Smuzhiyun    This special exception was added by the Free Software Foundation in
32*4882a593Smuzhiyun    version 2.2 of Bison.  */
33*4882a593Smuzhiyun 
34*4882a593Smuzhiyun /* C LALR(1) parser skeleton written by Richard Stallman, by
35*4882a593Smuzhiyun    simplifying the original so-called "semantic" parser.  */
36*4882a593Smuzhiyun 
37*4882a593Smuzhiyun /* DO NOT RELY ON FEATURES THAT ARE NOT DOCUMENTED in the manual,
38*4882a593Smuzhiyun    especially those whose name start with YY_ or yy_.  They are
39*4882a593Smuzhiyun    private implementation details that can be changed or removed.  */
40*4882a593Smuzhiyun 
41*4882a593Smuzhiyun /* All symbols defined below should begin with yy or YY, to avoid
42*4882a593Smuzhiyun    infringing on user name space.  This should be done even for local
43*4882a593Smuzhiyun    variables, as they might otherwise be expanded by user macros.
44*4882a593Smuzhiyun    There are some unavoidable exceptions within include files to
45*4882a593Smuzhiyun    define necessary library symbols; they are noted "INFRINGES ON
46*4882a593Smuzhiyun    USER NAME SPACE" below.  */
47*4882a593Smuzhiyun 
48*4882a593Smuzhiyun /* Identify Bison output.  */
49*4882a593Smuzhiyun #define YYBISON 1
50*4882a593Smuzhiyun 
51*4882a593Smuzhiyun /* Bison version.  */
52*4882a593Smuzhiyun #define YYBISON_VERSION "3.7.3"
53*4882a593Smuzhiyun 
54*4882a593Smuzhiyun /* Skeleton name.  */
55*4882a593Smuzhiyun #define YYSKELETON_NAME "yacc.c"
56*4882a593Smuzhiyun 
57*4882a593Smuzhiyun /* Pure parsers.  */
58*4882a593Smuzhiyun #define YYPURE 0
59*4882a593Smuzhiyun 
60*4882a593Smuzhiyun /* Push parsers.  */
61*4882a593Smuzhiyun #define YYPUSH 0
62*4882a593Smuzhiyun 
63*4882a593Smuzhiyun /* Pull parsers.  */
64*4882a593Smuzhiyun #define YYPULL 1
65*4882a593Smuzhiyun 
66*4882a593Smuzhiyun 
67*4882a593Smuzhiyun 
68*4882a593Smuzhiyun 
69*4882a593Smuzhiyun /* First part of user prologue.  */
70*4882a593Smuzhiyun #line 35 "parser.y"
71*4882a593Smuzhiyun 
72*4882a593Smuzhiyun #ifdef HAVE_DMX_CONFIG_H
73*4882a593Smuzhiyun #include <dmx-config.h>
74*4882a593Smuzhiyun #endif
75*4882a593Smuzhiyun 
76*4882a593Smuzhiyun #include "dmxparse.h"
77*4882a593Smuzhiyun #include <string.h>
78*4882a593Smuzhiyun #include <stdlib.h>
79*4882a593Smuzhiyun #define YYDEBUG 1
80*4882a593Smuzhiyun #define YYERROR_VERBOSE
81*4882a593Smuzhiyun #define YY_USE_PROTOS
82*4882a593Smuzhiyun 
83*4882a593Smuzhiyun extern int yylex(void);
84*4882a593Smuzhiyun DMXConfigEntryPtr dmxConfigEntry = NULL;
85*4882a593Smuzhiyun #define APPEND(type, h, t)                 \
86*4882a593Smuzhiyun {                                          \
87*4882a593Smuzhiyun     type pt;                               \
88*4882a593Smuzhiyun     for (pt = h; pt->next; pt = pt->next); \
89*4882a593Smuzhiyun     pt->next = t;                          \
90*4882a593Smuzhiyun }
91*4882a593Smuzhiyun 
92*4882a593Smuzhiyun #line 93 "parser.c"
93*4882a593Smuzhiyun 
94*4882a593Smuzhiyun # ifndef YY_CAST
95*4882a593Smuzhiyun #  ifdef __cplusplus
96*4882a593Smuzhiyun #   define YY_CAST(Type, Val) static_cast<Type> (Val)
97*4882a593Smuzhiyun #   define YY_REINTERPRET_CAST(Type, Val) reinterpret_cast<Type> (Val)
98*4882a593Smuzhiyun #  else
99*4882a593Smuzhiyun #   define YY_CAST(Type, Val) ((Type) (Val))
100*4882a593Smuzhiyun #   define YY_REINTERPRET_CAST(Type, Val) ((Type) (Val))
101*4882a593Smuzhiyun #  endif
102*4882a593Smuzhiyun # endif
103*4882a593Smuzhiyun # ifndef YY_NULLPTR
104*4882a593Smuzhiyun #  if defined __cplusplus
105*4882a593Smuzhiyun #   if 201103L <= __cplusplus
106*4882a593Smuzhiyun #    define YY_NULLPTR nullptr
107*4882a593Smuzhiyun #   else
108*4882a593Smuzhiyun #    define YY_NULLPTR 0
109*4882a593Smuzhiyun #   endif
110*4882a593Smuzhiyun #  else
111*4882a593Smuzhiyun #   define YY_NULLPTR ((void*)0)
112*4882a593Smuzhiyun #  endif
113*4882a593Smuzhiyun # endif
114*4882a593Smuzhiyun 
115*4882a593Smuzhiyun /* Use api.header.include to #include this header
116*4882a593Smuzhiyun    instead of duplicating it here.  */
117*4882a593Smuzhiyun #ifndef YY_YY_PARSER_H_INCLUDED
118*4882a593Smuzhiyun # define YY_YY_PARSER_H_INCLUDED
119*4882a593Smuzhiyun /* Debug traces.  */
120*4882a593Smuzhiyun #ifndef YYDEBUG
121*4882a593Smuzhiyun # define YYDEBUG 0
122*4882a593Smuzhiyun #endif
123*4882a593Smuzhiyun #if YYDEBUG
124*4882a593Smuzhiyun extern int yydebug;
125*4882a593Smuzhiyun #endif
126*4882a593Smuzhiyun 
127*4882a593Smuzhiyun /* Token kinds.  */
128*4882a593Smuzhiyun #ifndef YYTOKENTYPE
129*4882a593Smuzhiyun # define YYTOKENTYPE
130*4882a593Smuzhiyun   enum yytokentype
131*4882a593Smuzhiyun   {
132*4882a593Smuzhiyun     YYEMPTY = -2,
133*4882a593Smuzhiyun     YYEOF = 0,                     /* "end of file"  */
134*4882a593Smuzhiyun     YYerror = 256,                 /* error  */
135*4882a593Smuzhiyun     YYUNDEF = 257,                 /* "invalid token"  */
136*4882a593Smuzhiyun     T_VIRTUAL = 258,               /* T_VIRTUAL  */
137*4882a593Smuzhiyun     T_DISPLAY = 259,               /* T_DISPLAY  */
138*4882a593Smuzhiyun     T_WALL = 260,                  /* T_WALL  */
139*4882a593Smuzhiyun     T_OPTION = 261,                /* T_OPTION  */
140*4882a593Smuzhiyun     T_PARAM = 262,                 /* T_PARAM  */
141*4882a593Smuzhiyun     T_STRING = 263,                /* T_STRING  */
142*4882a593Smuzhiyun     T_DIMENSION = 264,             /* T_DIMENSION  */
143*4882a593Smuzhiyun     T_OFFSET = 265,                /* T_OFFSET  */
144*4882a593Smuzhiyun     T_ORIGIN = 266,                /* T_ORIGIN  */
145*4882a593Smuzhiyun     T_COMMENT = 267,               /* T_COMMENT  */
146*4882a593Smuzhiyun     T_LINE_COMMENT = 268           /* T_LINE_COMMENT  */
147*4882a593Smuzhiyun   };
148*4882a593Smuzhiyun   typedef enum yytokentype yytoken_kind_t;
149*4882a593Smuzhiyun #endif
150*4882a593Smuzhiyun /* Token kinds.  */
151*4882a593Smuzhiyun #define YYEOF 0
152*4882a593Smuzhiyun #define YYerror 256
153*4882a593Smuzhiyun #define YYUNDEF 257
154*4882a593Smuzhiyun #define T_VIRTUAL 258
155*4882a593Smuzhiyun #define T_DISPLAY 259
156*4882a593Smuzhiyun #define T_WALL 260
157*4882a593Smuzhiyun #define T_OPTION 261
158*4882a593Smuzhiyun #define T_PARAM 262
159*4882a593Smuzhiyun #define T_STRING 263
160*4882a593Smuzhiyun #define T_DIMENSION 264
161*4882a593Smuzhiyun #define T_OFFSET 265
162*4882a593Smuzhiyun #define T_ORIGIN 266
163*4882a593Smuzhiyun #define T_COMMENT 267
164*4882a593Smuzhiyun #define T_LINE_COMMENT 268
165*4882a593Smuzhiyun 
166*4882a593Smuzhiyun /* Value type.  */
167*4882a593Smuzhiyun #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
168*4882a593Smuzhiyun union YYSTYPE
169*4882a593Smuzhiyun {
170*4882a593Smuzhiyun #line 57 "parser.y"
171*4882a593Smuzhiyun 
172*4882a593Smuzhiyun     DMXConfigTokenPtr      token;
173*4882a593Smuzhiyun     DMXConfigStringPtr     string;
174*4882a593Smuzhiyun     DMXConfigNumberPtr     number;
175*4882a593Smuzhiyun     DMXConfigPairPtr       pair;
176*4882a593Smuzhiyun     DMXConfigFullDimPtr    fdim;
177*4882a593Smuzhiyun     DMXConfigPartDimPtr    pdim;
178*4882a593Smuzhiyun     DMXConfigDisplayPtr    display;
179*4882a593Smuzhiyun     DMXConfigWallPtr       wall;
180*4882a593Smuzhiyun     DMXConfigOptionPtr     option;
181*4882a593Smuzhiyun     DMXConfigParamPtr      param;
182*4882a593Smuzhiyun     DMXConfigCommentPtr    comment;
183*4882a593Smuzhiyun     DMXConfigSubPtr        subentry;
184*4882a593Smuzhiyun     DMXConfigVirtualPtr    virtual;
185*4882a593Smuzhiyun     DMXConfigEntryPtr      entry;
186*4882a593Smuzhiyun 
187*4882a593Smuzhiyun #line 188 "parser.c"
188*4882a593Smuzhiyun 
189*4882a593Smuzhiyun };
190*4882a593Smuzhiyun typedef union YYSTYPE YYSTYPE;
191*4882a593Smuzhiyun # define YYSTYPE_IS_TRIVIAL 1
192*4882a593Smuzhiyun # define YYSTYPE_IS_DECLARED 1
193*4882a593Smuzhiyun #endif
194*4882a593Smuzhiyun 
195*4882a593Smuzhiyun 
196*4882a593Smuzhiyun extern YYSTYPE yylval;
197*4882a593Smuzhiyun 
198*4882a593Smuzhiyun int yyparse (void);
199*4882a593Smuzhiyun 
200*4882a593Smuzhiyun #endif /* !YY_YY_PARSER_H_INCLUDED  */
201*4882a593Smuzhiyun /* Symbol kind.  */
202*4882a593Smuzhiyun enum yysymbol_kind_t
203*4882a593Smuzhiyun {
204*4882a593Smuzhiyun   YYSYMBOL_YYEMPTY = -2,
205*4882a593Smuzhiyun   YYSYMBOL_YYEOF = 0,                      /* "end of file"  */
206*4882a593Smuzhiyun   YYSYMBOL_YYerror = 1,                    /* error  */
207*4882a593Smuzhiyun   YYSYMBOL_YYUNDEF = 2,                    /* "invalid token"  */
208*4882a593Smuzhiyun   YYSYMBOL_3_ = 3,                         /* '{'  */
209*4882a593Smuzhiyun   YYSYMBOL_4_ = 4,                         /* '}'  */
210*4882a593Smuzhiyun   YYSYMBOL_5_ = 5,                         /* ';'  */
211*4882a593Smuzhiyun   YYSYMBOL_6_ = 6,                         /* '/'  */
212*4882a593Smuzhiyun   YYSYMBOL_T_VIRTUAL = 7,                  /* T_VIRTUAL  */
213*4882a593Smuzhiyun   YYSYMBOL_T_DISPLAY = 8,                  /* T_DISPLAY  */
214*4882a593Smuzhiyun   YYSYMBOL_T_WALL = 9,                     /* T_WALL  */
215*4882a593Smuzhiyun   YYSYMBOL_T_OPTION = 10,                  /* T_OPTION  */
216*4882a593Smuzhiyun   YYSYMBOL_T_PARAM = 11,                   /* T_PARAM  */
217*4882a593Smuzhiyun   YYSYMBOL_T_STRING = 12,                  /* T_STRING  */
218*4882a593Smuzhiyun   YYSYMBOL_T_DIMENSION = 13,               /* T_DIMENSION  */
219*4882a593Smuzhiyun   YYSYMBOL_T_OFFSET = 14,                  /* T_OFFSET  */
220*4882a593Smuzhiyun   YYSYMBOL_T_ORIGIN = 15,                  /* T_ORIGIN  */
221*4882a593Smuzhiyun   YYSYMBOL_T_COMMENT = 16,                 /* T_COMMENT  */
222*4882a593Smuzhiyun   YYSYMBOL_T_LINE_COMMENT = 17,            /* T_LINE_COMMENT  */
223*4882a593Smuzhiyun   YYSYMBOL_YYACCEPT = 18,                  /* $accept  */
224*4882a593Smuzhiyun   YYSYMBOL_Program = 19,                   /* Program  */
225*4882a593Smuzhiyun   YYSYMBOL_EntryList = 20,                 /* EntryList  */
226*4882a593Smuzhiyun   YYSYMBOL_Entry = 21,                     /* Entry  */
227*4882a593Smuzhiyun   YYSYMBOL_Virtual = 22,                   /* Virtual  */
228*4882a593Smuzhiyun   YYSYMBOL_SubList = 23,                   /* SubList  */
229*4882a593Smuzhiyun   YYSYMBOL_Sub = 24,                       /* Sub  */
230*4882a593Smuzhiyun   YYSYMBOL_OptionEntry = 25,               /* OptionEntry  */
231*4882a593Smuzhiyun   YYSYMBOL_ParamEntry = 26,                /* ParamEntry  */
232*4882a593Smuzhiyun   YYSYMBOL_ParamList = 27,                 /* ParamList  */
233*4882a593Smuzhiyun   YYSYMBOL_Param = 28,                     /* Param  */
234*4882a593Smuzhiyun   YYSYMBOL_PartialDim = 29,                /* PartialDim  */
235*4882a593Smuzhiyun   YYSYMBOL_FullDim = 30,                   /* FullDim  */
236*4882a593Smuzhiyun   YYSYMBOL_DisplayEntry = 31,              /* DisplayEntry  */
237*4882a593Smuzhiyun   YYSYMBOL_WallEntry = 32,                 /* WallEntry  */
238*4882a593Smuzhiyun   YYSYMBOL_Display = 33,                   /* Display  */
239*4882a593Smuzhiyun   YYSYMBOL_Name = 34,                      /* Name  */
240*4882a593Smuzhiyun   YYSYMBOL_Dimension = 35,                 /* Dimension  */
241*4882a593Smuzhiyun   YYSYMBOL_Offset = 36,                    /* Offset  */
242*4882a593Smuzhiyun   YYSYMBOL_Origin = 37,                    /* Origin  */
243*4882a593Smuzhiyun   YYSYMBOL_Terminal = 38,                  /* Terminal  */
244*4882a593Smuzhiyun   YYSYMBOL_Open = 39,                      /* Open  */
245*4882a593Smuzhiyun   YYSYMBOL_Close = 40,                     /* Close  */
246*4882a593Smuzhiyun   YYSYMBOL_Wall = 41,                      /* Wall  */
247*4882a593Smuzhiyun   YYSYMBOL_NameList = 42                   /* NameList  */
248*4882a593Smuzhiyun };
249*4882a593Smuzhiyun typedef enum yysymbol_kind_t yysymbol_kind_t;
250*4882a593Smuzhiyun 
251*4882a593Smuzhiyun 
252*4882a593Smuzhiyun 
253*4882a593Smuzhiyun 
254*4882a593Smuzhiyun #ifdef short
255*4882a593Smuzhiyun # undef short
256*4882a593Smuzhiyun #endif
257*4882a593Smuzhiyun 
258*4882a593Smuzhiyun /* On compilers that do not define __PTRDIFF_MAX__ etc., make sure
259*4882a593Smuzhiyun    <limits.h> and (if available) <stdint.h> are included
260*4882a593Smuzhiyun    so that the code can choose integer types of a good width.  */
261*4882a593Smuzhiyun 
262*4882a593Smuzhiyun #ifndef __PTRDIFF_MAX__
263*4882a593Smuzhiyun # include <limits.h> /* INFRINGES ON USER NAME SPACE */
264*4882a593Smuzhiyun # if defined __STDC_VERSION__ && 199901 <= __STDC_VERSION__
265*4882a593Smuzhiyun #  include <stdint.h> /* INFRINGES ON USER NAME SPACE */
266*4882a593Smuzhiyun #  define YY_STDINT_H
267*4882a593Smuzhiyun # endif
268*4882a593Smuzhiyun #endif
269*4882a593Smuzhiyun 
270*4882a593Smuzhiyun /* Narrow types that promote to a signed type and that can represent a
271*4882a593Smuzhiyun    signed or unsigned integer of at least N bits.  In tables they can
272*4882a593Smuzhiyun    save space and decrease cache pressure.  Promoting to a signed type
273*4882a593Smuzhiyun    helps avoid bugs in integer arithmetic.  */
274*4882a593Smuzhiyun 
275*4882a593Smuzhiyun #ifdef __INT_LEAST8_MAX__
276*4882a593Smuzhiyun typedef __INT_LEAST8_TYPE__ yytype_int8;
277*4882a593Smuzhiyun #elif defined YY_STDINT_H
278*4882a593Smuzhiyun typedef int_least8_t yytype_int8;
279*4882a593Smuzhiyun #else
280*4882a593Smuzhiyun typedef signed char yytype_int8;
281*4882a593Smuzhiyun #endif
282*4882a593Smuzhiyun 
283*4882a593Smuzhiyun #ifdef __INT_LEAST16_MAX__
284*4882a593Smuzhiyun typedef __INT_LEAST16_TYPE__ yytype_int16;
285*4882a593Smuzhiyun #elif defined YY_STDINT_H
286*4882a593Smuzhiyun typedef int_least16_t yytype_int16;
287*4882a593Smuzhiyun #else
288*4882a593Smuzhiyun typedef short yytype_int16;
289*4882a593Smuzhiyun #endif
290*4882a593Smuzhiyun 
291*4882a593Smuzhiyun #if defined __UINT_LEAST8_MAX__ && __UINT_LEAST8_MAX__ <= __INT_MAX__
292*4882a593Smuzhiyun typedef __UINT_LEAST8_TYPE__ yytype_uint8;
293*4882a593Smuzhiyun #elif (!defined __UINT_LEAST8_MAX__ && defined YY_STDINT_H \
294*4882a593Smuzhiyun        && UINT_LEAST8_MAX <= INT_MAX)
295*4882a593Smuzhiyun typedef uint_least8_t yytype_uint8;
296*4882a593Smuzhiyun #elif !defined __UINT_LEAST8_MAX__ && UCHAR_MAX <= INT_MAX
297*4882a593Smuzhiyun typedef unsigned char yytype_uint8;
298*4882a593Smuzhiyun #else
299*4882a593Smuzhiyun typedef short yytype_uint8;
300*4882a593Smuzhiyun #endif
301*4882a593Smuzhiyun 
302*4882a593Smuzhiyun #if defined __UINT_LEAST16_MAX__ && __UINT_LEAST16_MAX__ <= __INT_MAX__
303*4882a593Smuzhiyun typedef __UINT_LEAST16_TYPE__ yytype_uint16;
304*4882a593Smuzhiyun #elif (!defined __UINT_LEAST16_MAX__ && defined YY_STDINT_H \
305*4882a593Smuzhiyun        && UINT_LEAST16_MAX <= INT_MAX)
306*4882a593Smuzhiyun typedef uint_least16_t yytype_uint16;
307*4882a593Smuzhiyun #elif !defined __UINT_LEAST16_MAX__ && USHRT_MAX <= INT_MAX
308*4882a593Smuzhiyun typedef unsigned short yytype_uint16;
309*4882a593Smuzhiyun #else
310*4882a593Smuzhiyun typedef int yytype_uint16;
311*4882a593Smuzhiyun #endif
312*4882a593Smuzhiyun 
313*4882a593Smuzhiyun #ifndef YYPTRDIFF_T
314*4882a593Smuzhiyun # if defined __PTRDIFF_TYPE__ && defined __PTRDIFF_MAX__
315*4882a593Smuzhiyun #  define YYPTRDIFF_T __PTRDIFF_TYPE__
316*4882a593Smuzhiyun #  define YYPTRDIFF_MAXIMUM __PTRDIFF_MAX__
317*4882a593Smuzhiyun # elif defined PTRDIFF_MAX
318*4882a593Smuzhiyun #  ifndef ptrdiff_t
319*4882a593Smuzhiyun #   include <stddef.h> /* INFRINGES ON USER NAME SPACE */
320*4882a593Smuzhiyun #  endif
321*4882a593Smuzhiyun #  define YYPTRDIFF_T ptrdiff_t
322*4882a593Smuzhiyun #  define YYPTRDIFF_MAXIMUM PTRDIFF_MAX
323*4882a593Smuzhiyun # else
324*4882a593Smuzhiyun #  define YYPTRDIFF_T long
325*4882a593Smuzhiyun #  define YYPTRDIFF_MAXIMUM LONG_MAX
326*4882a593Smuzhiyun # endif
327*4882a593Smuzhiyun #endif
328*4882a593Smuzhiyun 
329*4882a593Smuzhiyun #ifndef YYSIZE_T
330*4882a593Smuzhiyun # ifdef __SIZE_TYPE__
331*4882a593Smuzhiyun #  define YYSIZE_T __SIZE_TYPE__
332*4882a593Smuzhiyun # elif defined size_t
333*4882a593Smuzhiyun #  define YYSIZE_T size_t
334*4882a593Smuzhiyun # elif defined __STDC_VERSION__ && 199901 <= __STDC_VERSION__
335*4882a593Smuzhiyun #  include <stddef.h> /* INFRINGES ON USER NAME SPACE */
336*4882a593Smuzhiyun #  define YYSIZE_T size_t
337*4882a593Smuzhiyun # else
338*4882a593Smuzhiyun #  define YYSIZE_T unsigned
339*4882a593Smuzhiyun # endif
340*4882a593Smuzhiyun #endif
341*4882a593Smuzhiyun 
342*4882a593Smuzhiyun #define YYSIZE_MAXIMUM                                  \
343*4882a593Smuzhiyun   YY_CAST (YYPTRDIFF_T,                                 \
344*4882a593Smuzhiyun            (YYPTRDIFF_MAXIMUM < YY_CAST (YYSIZE_T, -1)  \
345*4882a593Smuzhiyun             ? YYPTRDIFF_MAXIMUM                         \
346*4882a593Smuzhiyun             : YY_CAST (YYSIZE_T, -1)))
347*4882a593Smuzhiyun 
348*4882a593Smuzhiyun #define YYSIZEOF(X) YY_CAST (YYPTRDIFF_T, sizeof (X))
349*4882a593Smuzhiyun 
350*4882a593Smuzhiyun 
351*4882a593Smuzhiyun /* Stored state numbers (used for stacks). */
352*4882a593Smuzhiyun typedef yytype_int8 yy_state_t;
353*4882a593Smuzhiyun 
354*4882a593Smuzhiyun /* State numbers in computations.  */
355*4882a593Smuzhiyun typedef int yy_state_fast_t;
356*4882a593Smuzhiyun 
357*4882a593Smuzhiyun #ifndef YY_
358*4882a593Smuzhiyun # if defined YYENABLE_NLS && YYENABLE_NLS
359*4882a593Smuzhiyun #  if ENABLE_NLS
360*4882a593Smuzhiyun #   include <libintl.h> /* INFRINGES ON USER NAME SPACE */
361*4882a593Smuzhiyun #   define YY_(Msgid) dgettext ("bison-runtime", Msgid)
362*4882a593Smuzhiyun #  endif
363*4882a593Smuzhiyun # endif
364*4882a593Smuzhiyun # ifndef YY_
365*4882a593Smuzhiyun #  define YY_(Msgid) Msgid
366*4882a593Smuzhiyun # endif
367*4882a593Smuzhiyun #endif
368*4882a593Smuzhiyun 
369*4882a593Smuzhiyun 
370*4882a593Smuzhiyun #ifndef YY_ATTRIBUTE_PURE
371*4882a593Smuzhiyun # if defined __GNUC__ && 2 < __GNUC__ + (96 <= __GNUC_MINOR__)
372*4882a593Smuzhiyun #  define YY_ATTRIBUTE_PURE __attribute__ ((__pure__))
373*4882a593Smuzhiyun # else
374*4882a593Smuzhiyun #  define YY_ATTRIBUTE_PURE
375*4882a593Smuzhiyun # endif
376*4882a593Smuzhiyun #endif
377*4882a593Smuzhiyun 
378*4882a593Smuzhiyun #ifndef YY_ATTRIBUTE_UNUSED
379*4882a593Smuzhiyun # if defined __GNUC__ && 2 < __GNUC__ + (7 <= __GNUC_MINOR__)
380*4882a593Smuzhiyun #  define YY_ATTRIBUTE_UNUSED __attribute__ ((__unused__))
381*4882a593Smuzhiyun # else
382*4882a593Smuzhiyun #  define YY_ATTRIBUTE_UNUSED
383*4882a593Smuzhiyun # endif
384*4882a593Smuzhiyun #endif
385*4882a593Smuzhiyun 
386*4882a593Smuzhiyun /* Suppress unused-variable warnings by "using" E.  */
387*4882a593Smuzhiyun #if ! defined lint || defined __GNUC__
388*4882a593Smuzhiyun # define YYUSE(E) ((void) (E))
389*4882a593Smuzhiyun #else
390*4882a593Smuzhiyun # define YYUSE(E) /* empty */
391*4882a593Smuzhiyun #endif
392*4882a593Smuzhiyun 
393*4882a593Smuzhiyun #if defined __GNUC__ && ! defined __ICC && 407 <= __GNUC__ * 100 + __GNUC_MINOR__
394*4882a593Smuzhiyun /* Suppress an incorrect diagnostic about yylval being uninitialized.  */
395*4882a593Smuzhiyun # define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN                            \
396*4882a593Smuzhiyun     _Pragma ("GCC diagnostic push")                                     \
397*4882a593Smuzhiyun     _Pragma ("GCC diagnostic ignored \"-Wuninitialized\"")              \
398*4882a593Smuzhiyun     _Pragma ("GCC diagnostic ignored \"-Wmaybe-uninitialized\"")
399*4882a593Smuzhiyun # define YY_IGNORE_MAYBE_UNINITIALIZED_END      \
400*4882a593Smuzhiyun     _Pragma ("GCC diagnostic pop")
401*4882a593Smuzhiyun #else
402*4882a593Smuzhiyun # define YY_INITIAL_VALUE(Value) Value
403*4882a593Smuzhiyun #endif
404*4882a593Smuzhiyun #ifndef YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
405*4882a593Smuzhiyun # define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
406*4882a593Smuzhiyun # define YY_IGNORE_MAYBE_UNINITIALIZED_END
407*4882a593Smuzhiyun #endif
408*4882a593Smuzhiyun #ifndef YY_INITIAL_VALUE
409*4882a593Smuzhiyun # define YY_INITIAL_VALUE(Value) /* Nothing. */
410*4882a593Smuzhiyun #endif
411*4882a593Smuzhiyun 
412*4882a593Smuzhiyun #if defined __cplusplus && defined __GNUC__ && ! defined __ICC && 6 <= __GNUC__
413*4882a593Smuzhiyun # define YY_IGNORE_USELESS_CAST_BEGIN                          \
414*4882a593Smuzhiyun     _Pragma ("GCC diagnostic push")                            \
415*4882a593Smuzhiyun     _Pragma ("GCC diagnostic ignored \"-Wuseless-cast\"")
416*4882a593Smuzhiyun # define YY_IGNORE_USELESS_CAST_END            \
417*4882a593Smuzhiyun     _Pragma ("GCC diagnostic pop")
418*4882a593Smuzhiyun #endif
419*4882a593Smuzhiyun #ifndef YY_IGNORE_USELESS_CAST_BEGIN
420*4882a593Smuzhiyun # define YY_IGNORE_USELESS_CAST_BEGIN
421*4882a593Smuzhiyun # define YY_IGNORE_USELESS_CAST_END
422*4882a593Smuzhiyun #endif
423*4882a593Smuzhiyun 
424*4882a593Smuzhiyun 
425*4882a593Smuzhiyun #define YY_ASSERT(E) ((void) (0 && (E)))
426*4882a593Smuzhiyun 
427*4882a593Smuzhiyun #if !defined yyoverflow
428*4882a593Smuzhiyun 
429*4882a593Smuzhiyun /* The parser invokes alloca or malloc; define the necessary symbols.  */
430*4882a593Smuzhiyun 
431*4882a593Smuzhiyun # ifdef YYSTACK_USE_ALLOCA
432*4882a593Smuzhiyun #  if YYSTACK_USE_ALLOCA
433*4882a593Smuzhiyun #   ifdef __GNUC__
434*4882a593Smuzhiyun #    define YYSTACK_ALLOC __builtin_alloca
435*4882a593Smuzhiyun #   elif defined __BUILTIN_VA_ARG_INCR
436*4882a593Smuzhiyun #    include <alloca.h> /* INFRINGES ON USER NAME SPACE */
437*4882a593Smuzhiyun #   elif defined _AIX
438*4882a593Smuzhiyun #    define YYSTACK_ALLOC __alloca
439*4882a593Smuzhiyun #   elif defined _MSC_VER
440*4882a593Smuzhiyun #    include <malloc.h> /* INFRINGES ON USER NAME SPACE */
441*4882a593Smuzhiyun #    define alloca _alloca
442*4882a593Smuzhiyun #   else
443*4882a593Smuzhiyun #    define YYSTACK_ALLOC alloca
444*4882a593Smuzhiyun #    if ! defined _ALLOCA_H && ! defined EXIT_SUCCESS
445*4882a593Smuzhiyun #     include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
446*4882a593Smuzhiyun       /* Use EXIT_SUCCESS as a witness for stdlib.h.  */
447*4882a593Smuzhiyun #     ifndef EXIT_SUCCESS
448*4882a593Smuzhiyun #      define EXIT_SUCCESS 0
449*4882a593Smuzhiyun #     endif
450*4882a593Smuzhiyun #    endif
451*4882a593Smuzhiyun #   endif
452*4882a593Smuzhiyun #  endif
453*4882a593Smuzhiyun # endif
454*4882a593Smuzhiyun 
455*4882a593Smuzhiyun # ifdef YYSTACK_ALLOC
456*4882a593Smuzhiyun    /* Pacify GCC's 'empty if-body' warning.  */
457*4882a593Smuzhiyun #  define YYSTACK_FREE(Ptr) do { /* empty */; } while (0)
458*4882a593Smuzhiyun #  ifndef YYSTACK_ALLOC_MAXIMUM
459*4882a593Smuzhiyun     /* The OS might guarantee only one guard page at the bottom of the stack,
460*4882a593Smuzhiyun        and a page size can be as small as 4096 bytes.  So we cannot safely
461*4882a593Smuzhiyun        invoke alloca (N) if N exceeds 4096.  Use a slightly smaller number
462*4882a593Smuzhiyun        to allow for a few compiler-allocated temporary stack slots.  */
463*4882a593Smuzhiyun #   define YYSTACK_ALLOC_MAXIMUM 4032 /* reasonable circa 2006 */
464*4882a593Smuzhiyun #  endif
465*4882a593Smuzhiyun # else
466*4882a593Smuzhiyun #  define YYSTACK_ALLOC YYMALLOC
467*4882a593Smuzhiyun #  define YYSTACK_FREE YYFREE
468*4882a593Smuzhiyun #  ifndef YYSTACK_ALLOC_MAXIMUM
469*4882a593Smuzhiyun #   define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM
470*4882a593Smuzhiyun #  endif
471*4882a593Smuzhiyun #  if (defined __cplusplus && ! defined EXIT_SUCCESS \
472*4882a593Smuzhiyun        && ! ((defined YYMALLOC || defined malloc) \
473*4882a593Smuzhiyun              && (defined YYFREE || defined free)))
474*4882a593Smuzhiyun #   include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
475*4882a593Smuzhiyun #   ifndef EXIT_SUCCESS
476*4882a593Smuzhiyun #    define EXIT_SUCCESS 0
477*4882a593Smuzhiyun #   endif
478*4882a593Smuzhiyun #  endif
479*4882a593Smuzhiyun #  ifndef YYMALLOC
480*4882a593Smuzhiyun #   define YYMALLOC malloc
481*4882a593Smuzhiyun #   if ! defined malloc && ! defined EXIT_SUCCESS
482*4882a593Smuzhiyun void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */
483*4882a593Smuzhiyun #   endif
484*4882a593Smuzhiyun #  endif
485*4882a593Smuzhiyun #  ifndef YYFREE
486*4882a593Smuzhiyun #   define YYFREE free
487*4882a593Smuzhiyun #   if ! defined free && ! defined EXIT_SUCCESS
488*4882a593Smuzhiyun void free (void *); /* INFRINGES ON USER NAME SPACE */
489*4882a593Smuzhiyun #   endif
490*4882a593Smuzhiyun #  endif
491*4882a593Smuzhiyun # endif
492*4882a593Smuzhiyun #endif /* !defined yyoverflow */
493*4882a593Smuzhiyun 
494*4882a593Smuzhiyun #if (! defined yyoverflow \
495*4882a593Smuzhiyun      && (! defined __cplusplus \
496*4882a593Smuzhiyun          || (defined YYSTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL)))
497*4882a593Smuzhiyun 
498*4882a593Smuzhiyun /* A type that is properly aligned for any stack member.  */
499*4882a593Smuzhiyun union yyalloc
500*4882a593Smuzhiyun {
501*4882a593Smuzhiyun   yy_state_t yyss_alloc;
502*4882a593Smuzhiyun   YYSTYPE yyvs_alloc;
503*4882a593Smuzhiyun };
504*4882a593Smuzhiyun 
505*4882a593Smuzhiyun /* The size of the maximum gap between one aligned stack and the next.  */
506*4882a593Smuzhiyun # define YYSTACK_GAP_MAXIMUM (YYSIZEOF (union yyalloc) - 1)
507*4882a593Smuzhiyun 
508*4882a593Smuzhiyun /* The size of an array large to enough to hold all stacks, each with
509*4882a593Smuzhiyun    N elements.  */
510*4882a593Smuzhiyun # define YYSTACK_BYTES(N) \
511*4882a593Smuzhiyun      ((N) * (YYSIZEOF (yy_state_t) + YYSIZEOF (YYSTYPE)) \
512*4882a593Smuzhiyun       + YYSTACK_GAP_MAXIMUM)
513*4882a593Smuzhiyun 
514*4882a593Smuzhiyun # define YYCOPY_NEEDED 1
515*4882a593Smuzhiyun 
516*4882a593Smuzhiyun /* Relocate STACK from its old location to the new one.  The
517*4882a593Smuzhiyun    local variables YYSIZE and YYSTACKSIZE give the old and new number of
518*4882a593Smuzhiyun    elements in the stack, and YYPTR gives the new location of the
519*4882a593Smuzhiyun    stack.  Advance YYPTR to a properly aligned location for the next
520*4882a593Smuzhiyun    stack.  */
521*4882a593Smuzhiyun # define YYSTACK_RELOCATE(Stack_alloc, Stack)                           \
522*4882a593Smuzhiyun     do                                                                  \
523*4882a593Smuzhiyun       {                                                                 \
524*4882a593Smuzhiyun         YYPTRDIFF_T yynewbytes;                                         \
525*4882a593Smuzhiyun         YYCOPY (&yyptr->Stack_alloc, Stack, yysize);                    \
526*4882a593Smuzhiyun         Stack = &yyptr->Stack_alloc;                                    \
527*4882a593Smuzhiyun         yynewbytes = yystacksize * YYSIZEOF (*Stack) + YYSTACK_GAP_MAXIMUM; \
528*4882a593Smuzhiyun         yyptr += yynewbytes / YYSIZEOF (*yyptr);                        \
529*4882a593Smuzhiyun       }                                                                 \
530*4882a593Smuzhiyun     while (0)
531*4882a593Smuzhiyun 
532*4882a593Smuzhiyun #endif
533*4882a593Smuzhiyun 
534*4882a593Smuzhiyun #if defined YYCOPY_NEEDED && YYCOPY_NEEDED
535*4882a593Smuzhiyun /* Copy COUNT objects from SRC to DST.  The source and destination do
536*4882a593Smuzhiyun    not overlap.  */
537*4882a593Smuzhiyun # ifndef YYCOPY
538*4882a593Smuzhiyun #  if defined __GNUC__ && 1 < __GNUC__
539*4882a593Smuzhiyun #   define YYCOPY(Dst, Src, Count) \
540*4882a593Smuzhiyun       __builtin_memcpy (Dst, Src, YY_CAST (YYSIZE_T, (Count)) * sizeof (*(Src)))
541*4882a593Smuzhiyun #  else
542*4882a593Smuzhiyun #   define YYCOPY(Dst, Src, Count)              \
543*4882a593Smuzhiyun       do                                        \
544*4882a593Smuzhiyun         {                                       \
545*4882a593Smuzhiyun           YYPTRDIFF_T yyi;                      \
546*4882a593Smuzhiyun           for (yyi = 0; yyi < (Count); yyi++)   \
547*4882a593Smuzhiyun             (Dst)[yyi] = (Src)[yyi];            \
548*4882a593Smuzhiyun         }                                       \
549*4882a593Smuzhiyun       while (0)
550*4882a593Smuzhiyun #  endif
551*4882a593Smuzhiyun # endif
552*4882a593Smuzhiyun #endif /* !YYCOPY_NEEDED */
553*4882a593Smuzhiyun 
554*4882a593Smuzhiyun /* YYFINAL -- State number of the termination state.  */
555*4882a593Smuzhiyun #define YYFINAL  13
556*4882a593Smuzhiyun /* YYLAST -- Last index in YYTABLE.  */
557*4882a593Smuzhiyun #define YYLAST   106
558*4882a593Smuzhiyun 
559*4882a593Smuzhiyun /* YYNTOKENS -- Number of terminals.  */
560*4882a593Smuzhiyun #define YYNTOKENS  18
561*4882a593Smuzhiyun /* YYNNTS -- Number of nonterminals.  */
562*4882a593Smuzhiyun #define YYNNTS  25
563*4882a593Smuzhiyun /* YYNRULES -- Number of rules.  */
564*4882a593Smuzhiyun #define YYNRULES  59
565*4882a593Smuzhiyun /* YYNSTATES -- Number of states.  */
566*4882a593Smuzhiyun #define YYNSTATES  95
567*4882a593Smuzhiyun 
568*4882a593Smuzhiyun /* YYMAXUTOK -- Last valid token kind.  */
569*4882a593Smuzhiyun #define YYMAXUTOK   268
570*4882a593Smuzhiyun 
571*4882a593Smuzhiyun 
572*4882a593Smuzhiyun /* YYTRANSLATE(TOKEN-NUM) -- Symbol number corresponding to TOKEN-NUM
573*4882a593Smuzhiyun    as returned by yylex, with out-of-bounds checking.  */
574*4882a593Smuzhiyun #define YYTRANSLATE(YYX)                                \
575*4882a593Smuzhiyun   (0 <= (YYX) && (YYX) <= YYMAXUTOK                     \
576*4882a593Smuzhiyun    ? YY_CAST (yysymbol_kind_t, yytranslate[YYX])        \
577*4882a593Smuzhiyun    : YYSYMBOL_YYUNDEF)
578*4882a593Smuzhiyun 
579*4882a593Smuzhiyun /* YYTRANSLATE[TOKEN-NUM] -- Symbol number corresponding to TOKEN-NUM
580*4882a593Smuzhiyun    as returned by yylex.  */
581*4882a593Smuzhiyun static const yytype_int8 yytranslate[] =
582*4882a593Smuzhiyun {
583*4882a593Smuzhiyun        0,     2,     2,     2,     2,     2,     2,     2,     2,     2,
584*4882a593Smuzhiyun        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
585*4882a593Smuzhiyun        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
586*4882a593Smuzhiyun        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
587*4882a593Smuzhiyun        2,     2,     2,     2,     2,     2,     2,     6,     2,     2,
588*4882a593Smuzhiyun        2,     2,     2,     2,     2,     2,     2,     2,     2,     5,
589*4882a593Smuzhiyun        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
590*4882a593Smuzhiyun        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
591*4882a593Smuzhiyun        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
592*4882a593Smuzhiyun        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
593*4882a593Smuzhiyun        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
594*4882a593Smuzhiyun        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
595*4882a593Smuzhiyun        2,     2,     2,     3,     2,     4,     2,     2,     2,     2,
596*4882a593Smuzhiyun        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
597*4882a593Smuzhiyun        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
598*4882a593Smuzhiyun        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
599*4882a593Smuzhiyun        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
600*4882a593Smuzhiyun        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
601*4882a593Smuzhiyun        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
602*4882a593Smuzhiyun        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
603*4882a593Smuzhiyun        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
604*4882a593Smuzhiyun        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
605*4882a593Smuzhiyun        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
606*4882a593Smuzhiyun        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
607*4882a593Smuzhiyun        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
608*4882a593Smuzhiyun        2,     2,     2,     2,     2,     2,     1,     2,     7,     8,
609*4882a593Smuzhiyun        9,    10,    11,    12,    13,    14,    15,    16,    17
610*4882a593Smuzhiyun };
611*4882a593Smuzhiyun 
612*4882a593Smuzhiyun #if YYDEBUG
613*4882a593Smuzhiyun   /* YYRLINE[YYN] -- Source line where rule number YYN was defined.  */
614*4882a593Smuzhiyun static const yytype_uint8 yyrline[] =
615*4882a593Smuzhiyun {
616*4882a593Smuzhiyun        0,    96,    96,    99,   100,   103,   104,   107,   109,   111,
617*4882a593Smuzhiyun      113,   117,   118,   121,   122,   123,   124,   125,   128,   132,
618*4882a593Smuzhiyun      134,   140,   141,   144,   148,   150,   152,   156,   158,   160,
619*4882a593Smuzhiyun      164,   166,   168,   171,   173,   175,   177,   181,   183,   185,
620*4882a593Smuzhiyun      189,   190,   193,   194,   197,   198,   201,   202,   205,   206,
621*4882a593Smuzhiyun      209,   210,   213,   214,   217,   218,   221,   222,   225,   226
622*4882a593Smuzhiyun };
623*4882a593Smuzhiyun #endif
624*4882a593Smuzhiyun 
625*4882a593Smuzhiyun /** Accessing symbol of state STATE.  */
626*4882a593Smuzhiyun #define YY_ACCESSING_SYMBOL(State) YY_CAST (yysymbol_kind_t, yystos[State])
627*4882a593Smuzhiyun 
628*4882a593Smuzhiyun #if YYDEBUG || 0
629*4882a593Smuzhiyun /* The user-facing name of the symbol whose (internal) number is
630*4882a593Smuzhiyun    YYSYMBOL.  No bounds checking.  */
631*4882a593Smuzhiyun static const char *yysymbol_name (yysymbol_kind_t yysymbol) YY_ATTRIBUTE_UNUSED;
632*4882a593Smuzhiyun 
633*4882a593Smuzhiyun /* YYTNAME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM.
634*4882a593Smuzhiyun    First, the terminals, then, starting at YYNTOKENS, nonterminals.  */
635*4882a593Smuzhiyun static const char *const yytname[] =
636*4882a593Smuzhiyun {
637*4882a593Smuzhiyun   "\"end of file\"", "error", "\"invalid token\"", "'{'", "'}'", "';'",
638*4882a593Smuzhiyun   "'/'", "T_VIRTUAL", "T_DISPLAY", "T_WALL", "T_OPTION", "T_PARAM",
639*4882a593Smuzhiyun   "T_STRING", "T_DIMENSION", "T_OFFSET", "T_ORIGIN", "T_COMMENT",
640*4882a593Smuzhiyun   "T_LINE_COMMENT", "$accept", "Program", "EntryList", "Entry", "Virtual",
641*4882a593Smuzhiyun   "SubList", "Sub", "OptionEntry", "ParamEntry", "ParamList", "Param",
642*4882a593Smuzhiyun   "PartialDim", "FullDim", "DisplayEntry", "WallEntry", "Display", "Name",
643*4882a593Smuzhiyun   "Dimension", "Offset", "Origin", "Terminal", "Open", "Close", "Wall",
644*4882a593Smuzhiyun   "NameList", YY_NULLPTR
645*4882a593Smuzhiyun };
646*4882a593Smuzhiyun 
647*4882a593Smuzhiyun static const char *
yysymbol_name(yysymbol_kind_t yysymbol)648*4882a593Smuzhiyun yysymbol_name (yysymbol_kind_t yysymbol)
649*4882a593Smuzhiyun {
650*4882a593Smuzhiyun   return yytname[yysymbol];
651*4882a593Smuzhiyun }
652*4882a593Smuzhiyun #endif
653*4882a593Smuzhiyun 
654*4882a593Smuzhiyun #ifdef YYPRINT
655*4882a593Smuzhiyun /* YYTOKNUM[NUM] -- (External) token number corresponding to the
656*4882a593Smuzhiyun    (internal) symbol number NUM (which must be that of a token).  */
657*4882a593Smuzhiyun static const yytype_int16 yytoknum[] =
658*4882a593Smuzhiyun {
659*4882a593Smuzhiyun        0,   256,   257,   123,   125,    59,    47,   258,   259,   260,
660*4882a593Smuzhiyun      261,   262,   263,   264,   265,   266,   267,   268
661*4882a593Smuzhiyun };
662*4882a593Smuzhiyun #endif
663*4882a593Smuzhiyun 
664*4882a593Smuzhiyun #define YYPACT_NINF (-32)
665*4882a593Smuzhiyun 
666*4882a593Smuzhiyun #define yypact_value_is_default(Yyn) \
667*4882a593Smuzhiyun   ((Yyn) == YYPACT_NINF)
668*4882a593Smuzhiyun 
669*4882a593Smuzhiyun #define YYTABLE_NINF (-1)
670*4882a593Smuzhiyun 
671*4882a593Smuzhiyun #define yytable_value_is_error(Yyn) \
672*4882a593Smuzhiyun   0
673*4882a593Smuzhiyun 
674*4882a593Smuzhiyun   /* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing
675*4882a593Smuzhiyun      STATE-NUM.  */
676*4882a593Smuzhiyun static const yytype_int8 yypact[] =
677*4882a593Smuzhiyun {
678*4882a593Smuzhiyun       -3,    41,   -32,    22,    -3,   -32,   -32,    12,    35,    46,
679*4882a593Smuzhiyun        5,    62,    75,   -32,   -32,   -32,   -32,   -32,    62,    75,
680*4882a593Smuzhiyun       75,    51,    54,    59,    18,   -32,    65,   -32,   -32,   -32,
681*4882a593Smuzhiyun      -32,   -32,    88,    37,    75,    65,    65,   -32,   -32,   -32,
682*4882a593Smuzhiyun       86,    59,    86,    61,   -32,   -32,    79,    -4,    80,    28,
683*4882a593Smuzhiyun       31,    74,    67,   -32,   -32,    37,    86,    65,   -32,   -32,
684*4882a593Smuzhiyun      -32,   -32,    56,   -32,    86,   -32,   -32,   -32,   -32,   -32,
685*4882a593Smuzhiyun       -4,    81,    94,   -32,    31,    94,   -32,   -32,    59,    86,
686*4882a593Smuzhiyun      -32,   -32,   -32,   -32,   -32,   -32,   -32,   -32,    94,   -32,
687*4882a593Smuzhiyun      -32,    86,   -32,   -32,   -32
688*4882a593Smuzhiyun };
689*4882a593Smuzhiyun 
690*4882a593Smuzhiyun   /* YYDEFACT[STATE-NUM] -- Default reduction number in state STATE-NUM.
691*4882a593Smuzhiyun      Performed when YYTABLE does not specify something else to do.  Zero
692*4882a593Smuzhiyun      means the default is an error.  */
693*4882a593Smuzhiyun static const yytype_int8 yydefact[] =
694*4882a593Smuzhiyun {
695*4882a593Smuzhiyun        0,     0,     6,     0,     2,     3,     5,    52,    42,    44,
696*4882a593Smuzhiyun        0,     0,     0,     1,     4,    53,    43,    45,     0,     0,
697*4882a593Smuzhiyun        0,    40,    56,     0,     0,    13,     0,    11,    16,    17,
698*4882a593Smuzhiyun       14,    15,     0,     0,     0,     0,     0,    41,    57,    58,
699*4882a593Smuzhiyun        0,     0,     0,    54,    12,     7,    50,     0,    46,    29,
700*4882a593Smuzhiyun        0,     0,    25,    26,    36,     0,     0,     0,     9,     8,
701*4882a593Smuzhiyun       59,    18,     0,    21,     0,    19,    55,    51,    28,    47,
702*4882a593Smuzhiyun        0,    48,     0,    34,     0,     0,    35,    24,     0,     0,
703*4882a593Smuzhiyun       39,    10,    22,    20,    23,    27,    49,    31,     0,    33,
704*4882a593Smuzhiyun       32,     0,    38,    30,    37
705*4882a593Smuzhiyun };
706*4882a593Smuzhiyun 
707*4882a593Smuzhiyun   /* YYPGOTO[NTERM-NUM].  */
708*4882a593Smuzhiyun static const yytype_int8 yypgoto[] =
709*4882a593Smuzhiyun {
710*4882a593Smuzhiyun      -32,   -32,   -32,    99,   -32,     6,   -19,   -32,   -32,   -32,
711*4882a593Smuzhiyun       42,   -28,    55,   -32,   -32,   -32,    -1,     2,    53,   -31,
712*4882a593Smuzhiyun      -27,    48,   -30,   -32,   -22
713*4882a593Smuzhiyun };
714*4882a593Smuzhiyun 
715*4882a593Smuzhiyun   /* YYDEFGOTO[NTERM-NUM].  */
716*4882a593Smuzhiyun static const yytype_int8 yydefgoto[] =
717*4882a593Smuzhiyun {
718*4882a593Smuzhiyun       -1,     3,     4,     5,     6,    26,    27,    28,    29,    62,
719*4882a593Smuzhiyun       63,    49,    50,    30,    31,    32,    39,    52,    53,    72,
720*4882a593Smuzhiyun       54,    12,    45,    33,    64
721*4882a593Smuzhiyun };
722*4882a593Smuzhiyun 
723*4882a593Smuzhiyun   /* YYTABLE[YYPACT[STATE-NUM]] -- What to do in state STATE-NUM.  If
724*4882a593Smuzhiyun      positive, shift that token.  If negative, reduce the rule whose
725*4882a593Smuzhiyun      number is the opposite.  If YYTABLE_NINF, syntax error.  */
726*4882a593Smuzhiyun static const yytype_int8 yytable[] =
727*4882a593Smuzhiyun {
728*4882a593Smuzhiyun       10,    40,    42,    11,     1,    58,    59,    44,     7,     9,
729*4882a593Smuzhiyun       48,    56,    18,    61,     2,    65,    44,    44,     9,    68,
730*4882a593Smuzhiyun       75,     7,    13,    73,    76,    35,    36,    81,    15,    80,
731*4882a593Smuzhiyun        8,    51,    83,    79,    70,    55,    46,    84,    44,    60,
732*4882a593Smuzhiyun       57,    60,    85,    88,     7,    87,    71,    89,    90,     8,
733*4882a593Smuzhiyun        9,    16,    92,     8,     9,    60,    91,    78,    19,    20,
734*4882a593Smuzhiyun       43,    93,    17,    60,    94,     7,    34,    37,     8,    43,
735*4882a593Smuzhiyun       38,     8,    41,    21,    22,    23,    24,    66,    60,    46,
736*4882a593Smuzhiyun       47,    48,    25,    21,    22,    23,    24,     9,    48,    71,
737*4882a593Smuzhiyun       60,    46,    25,    46,    47,    67,    69,    86,     8,    46,
738*4882a593Smuzhiyun        8,     9,    48,    14,    82,    77,    74
739*4882a593Smuzhiyun };
740*4882a593Smuzhiyun 
741*4882a593Smuzhiyun static const yytype_int8 yycheck[] =
742*4882a593Smuzhiyun {
743*4882a593Smuzhiyun        1,    23,    24,     1,     7,    35,    36,    26,     3,    13,
744*4882a593Smuzhiyun       14,    33,    10,    40,    17,    42,    35,    36,    13,    47,
745*4882a593Smuzhiyun       51,     3,     0,    50,    51,    19,    20,    57,    16,    56,
746*4882a593Smuzhiyun       12,    32,    62,    55,     6,    33,     5,    64,    57,    40,
747*4882a593Smuzhiyun       34,    42,    70,    74,     3,    72,    15,    74,    75,    12,
748*4882a593Smuzhiyun       13,    16,    79,    12,    13,    56,    78,    55,    10,    11,
749*4882a593Smuzhiyun        4,    88,    16,    64,    91,     3,    18,    16,    12,     4,
750*4882a593Smuzhiyun       16,    12,    24,     8,     9,    10,    11,    16,    79,     5,
751*4882a593Smuzhiyun        6,    14,    17,     8,     9,    10,    11,    13,    14,    15,
752*4882a593Smuzhiyun       91,     5,    17,     5,     6,    16,    16,    16,    12,     5,
753*4882a593Smuzhiyun       12,    13,    14,     4,    62,    52,    51
754*4882a593Smuzhiyun };
755*4882a593Smuzhiyun 
756*4882a593Smuzhiyun   /* YYSTOS[STATE-NUM] -- The (internal number of the) accessing
757*4882a593Smuzhiyun      symbol of state STATE-NUM.  */
758*4882a593Smuzhiyun static const yytype_int8 yystos[] =
759*4882a593Smuzhiyun {
760*4882a593Smuzhiyun        0,     7,    17,    19,    20,    21,    22,     3,    12,    13,
761*4882a593Smuzhiyun       34,    35,    39,     0,    21,    16,    16,    16,    35,    39,
762*4882a593Smuzhiyun       39,     8,     9,    10,    11,    17,    23,    24,    25,    26,
763*4882a593Smuzhiyun       31,    32,    33,    41,    39,    23,    23,    16,    16,    34,
764*4882a593Smuzhiyun       42,    39,    42,     4,    24,    40,     5,     6,    14,    29,
765*4882a593Smuzhiyun       30,    34,    35,    36,    38,    35,    42,    23,    40,    40,
766*4882a593Smuzhiyun       34,    38,    27,    28,    42,    38,    16,    16,    29,    16,
767*4882a593Smuzhiyun        6,    15,    37,    38,    30,    37,    38,    36,    35,    42,
768*4882a593Smuzhiyun       38,    40,    28,    40,    38,    29,    16,    38,    37,    38,
769*4882a593Smuzhiyun       38,    42,    38,    38,    38
770*4882a593Smuzhiyun };
771*4882a593Smuzhiyun 
772*4882a593Smuzhiyun   /* YYR1[YYN] -- Symbol number of symbol that rule YYN derives.  */
773*4882a593Smuzhiyun static const yytype_int8 yyr1[] =
774*4882a593Smuzhiyun {
775*4882a593Smuzhiyun        0,    18,    19,    20,    20,    21,    21,    22,    22,    22,
776*4882a593Smuzhiyun       22,    23,    23,    24,    24,    24,    24,    24,    25,    26,
777*4882a593Smuzhiyun       26,    27,    27,    28,    29,    29,    29,    30,    30,    30,
778*4882a593Smuzhiyun       31,    31,    31,    31,    31,    31,    31,    32,    32,    32,
779*4882a593Smuzhiyun       33,    33,    34,    34,    35,    35,    36,    36,    37,    37,
780*4882a593Smuzhiyun       38,    38,    39,    39,    40,    40,    41,    41,    42,    42
781*4882a593Smuzhiyun };
782*4882a593Smuzhiyun 
783*4882a593Smuzhiyun   /* YYR2[YYN] -- Number of symbols on the right hand side of rule YYN.  */
784*4882a593Smuzhiyun static const yytype_int8 yyr2[] =
785*4882a593Smuzhiyun {
786*4882a593Smuzhiyun        0,     2,     1,     1,     2,     1,     1,     4,     5,     5,
787*4882a593Smuzhiyun        6,     1,     2,     1,     1,     1,     1,     1,     3,     3,
788*4882a593Smuzhiyun        4,     1,     2,     2,     2,     1,     1,     3,     2,     1,
789*4882a593Smuzhiyun        5,     4,     4,     4,     3,     3,     2,     5,     4,     3,
790*4882a593Smuzhiyun        1,     2,     1,     2,     1,     2,     1,     2,     1,     2,
791*4882a593Smuzhiyun        1,     2,     1,     2,     1,     2,     1,     2,     1,     2
792*4882a593Smuzhiyun };
793*4882a593Smuzhiyun 
794*4882a593Smuzhiyun 
795*4882a593Smuzhiyun enum { YYENOMEM = -2 };
796*4882a593Smuzhiyun 
797*4882a593Smuzhiyun #define yyerrok         (yyerrstatus = 0)
798*4882a593Smuzhiyun #define yyclearin       (yychar = YYEMPTY)
799*4882a593Smuzhiyun 
800*4882a593Smuzhiyun #define YYACCEPT        goto yyacceptlab
801*4882a593Smuzhiyun #define YYABORT         goto yyabortlab
802*4882a593Smuzhiyun #define YYERROR         goto yyerrorlab
803*4882a593Smuzhiyun 
804*4882a593Smuzhiyun 
805*4882a593Smuzhiyun #define YYRECOVERING()  (!!yyerrstatus)
806*4882a593Smuzhiyun 
807*4882a593Smuzhiyun #define YYBACKUP(Token, Value)                                    \
808*4882a593Smuzhiyun   do                                                              \
809*4882a593Smuzhiyun     if (yychar == YYEMPTY)                                        \
810*4882a593Smuzhiyun       {                                                           \
811*4882a593Smuzhiyun         yychar = (Token);                                         \
812*4882a593Smuzhiyun         yylval = (Value);                                         \
813*4882a593Smuzhiyun         YYPOPSTACK (yylen);                                       \
814*4882a593Smuzhiyun         yystate = *yyssp;                                         \
815*4882a593Smuzhiyun         goto yybackup;                                            \
816*4882a593Smuzhiyun       }                                                           \
817*4882a593Smuzhiyun     else                                                          \
818*4882a593Smuzhiyun       {                                                           \
819*4882a593Smuzhiyun         yyerror (YY_("syntax error: cannot back up")); \
820*4882a593Smuzhiyun         YYERROR;                                                  \
821*4882a593Smuzhiyun       }                                                           \
822*4882a593Smuzhiyun   while (0)
823*4882a593Smuzhiyun 
824*4882a593Smuzhiyun /* Backward compatibility with an undocumented macro.
825*4882a593Smuzhiyun    Use YYerror or YYUNDEF. */
826*4882a593Smuzhiyun #define YYERRCODE YYUNDEF
827*4882a593Smuzhiyun 
828*4882a593Smuzhiyun 
829*4882a593Smuzhiyun /* Enable debugging if requested.  */
830*4882a593Smuzhiyun #if YYDEBUG
831*4882a593Smuzhiyun 
832*4882a593Smuzhiyun # ifndef YYFPRINTF
833*4882a593Smuzhiyun #  include <stdio.h> /* INFRINGES ON USER NAME SPACE */
834*4882a593Smuzhiyun #  define YYFPRINTF fprintf
835*4882a593Smuzhiyun # endif
836*4882a593Smuzhiyun 
837*4882a593Smuzhiyun # define YYDPRINTF(Args)                        \
838*4882a593Smuzhiyun do {                                            \
839*4882a593Smuzhiyun   if (yydebug)                                  \
840*4882a593Smuzhiyun     YYFPRINTF Args;                             \
841*4882a593Smuzhiyun } while (0)
842*4882a593Smuzhiyun 
843*4882a593Smuzhiyun /* This macro is provided for backward compatibility. */
844*4882a593Smuzhiyun # ifndef YY_LOCATION_PRINT
845*4882a593Smuzhiyun #  define YY_LOCATION_PRINT(File, Loc) ((void) 0)
846*4882a593Smuzhiyun # endif
847*4882a593Smuzhiyun 
848*4882a593Smuzhiyun 
849*4882a593Smuzhiyun # define YY_SYMBOL_PRINT(Title, Kind, Value, Location)                    \
850*4882a593Smuzhiyun do {                                                                      \
851*4882a593Smuzhiyun   if (yydebug)                                                            \
852*4882a593Smuzhiyun     {                                                                     \
853*4882a593Smuzhiyun       YYFPRINTF (stderr, "%s ", Title);                                   \
854*4882a593Smuzhiyun       yy_symbol_print (stderr,                                            \
855*4882a593Smuzhiyun                   Kind, Value); \
856*4882a593Smuzhiyun       YYFPRINTF (stderr, "\n");                                           \
857*4882a593Smuzhiyun     }                                                                     \
858*4882a593Smuzhiyun } while (0)
859*4882a593Smuzhiyun 
860*4882a593Smuzhiyun 
861*4882a593Smuzhiyun /*-----------------------------------.
862*4882a593Smuzhiyun | Print this symbol's value on YYO.  |
863*4882a593Smuzhiyun `-----------------------------------*/
864*4882a593Smuzhiyun 
865*4882a593Smuzhiyun static void
yy_symbol_value_print(FILE * yyo,yysymbol_kind_t yykind,YYSTYPE const * const yyvaluep)866*4882a593Smuzhiyun yy_symbol_value_print (FILE *yyo,
867*4882a593Smuzhiyun                        yysymbol_kind_t yykind, YYSTYPE const * const yyvaluep)
868*4882a593Smuzhiyun {
869*4882a593Smuzhiyun   FILE *yyoutput = yyo;
870*4882a593Smuzhiyun   YYUSE (yyoutput);
871*4882a593Smuzhiyun   if (!yyvaluep)
872*4882a593Smuzhiyun     return;
873*4882a593Smuzhiyun # ifdef YYPRINT
874*4882a593Smuzhiyun   if (yykind < YYNTOKENS)
875*4882a593Smuzhiyun     YYPRINT (yyo, yytoknum[yykind], *yyvaluep);
876*4882a593Smuzhiyun # endif
877*4882a593Smuzhiyun   YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
878*4882a593Smuzhiyun   YYUSE (yykind);
879*4882a593Smuzhiyun   YY_IGNORE_MAYBE_UNINITIALIZED_END
880*4882a593Smuzhiyun }
881*4882a593Smuzhiyun 
882*4882a593Smuzhiyun 
883*4882a593Smuzhiyun /*---------------------------.
884*4882a593Smuzhiyun | Print this symbol on YYO.  |
885*4882a593Smuzhiyun `---------------------------*/
886*4882a593Smuzhiyun 
887*4882a593Smuzhiyun static void
yy_symbol_print(FILE * yyo,yysymbol_kind_t yykind,YYSTYPE const * const yyvaluep)888*4882a593Smuzhiyun yy_symbol_print (FILE *yyo,
889*4882a593Smuzhiyun                  yysymbol_kind_t yykind, YYSTYPE const * const yyvaluep)
890*4882a593Smuzhiyun {
891*4882a593Smuzhiyun   YYFPRINTF (yyo, "%s %s (",
892*4882a593Smuzhiyun              yykind < YYNTOKENS ? "token" : "nterm", yysymbol_name (yykind));
893*4882a593Smuzhiyun 
894*4882a593Smuzhiyun   yy_symbol_value_print (yyo, yykind, yyvaluep);
895*4882a593Smuzhiyun   YYFPRINTF (yyo, ")");
896*4882a593Smuzhiyun }
897*4882a593Smuzhiyun 
898*4882a593Smuzhiyun /*------------------------------------------------------------------.
899*4882a593Smuzhiyun | yy_stack_print -- Print the state stack from its BOTTOM up to its |
900*4882a593Smuzhiyun | TOP (included).                                                   |
901*4882a593Smuzhiyun `------------------------------------------------------------------*/
902*4882a593Smuzhiyun 
903*4882a593Smuzhiyun static void
yy_stack_print(yy_state_t * yybottom,yy_state_t * yytop)904*4882a593Smuzhiyun yy_stack_print (yy_state_t *yybottom, yy_state_t *yytop)
905*4882a593Smuzhiyun {
906*4882a593Smuzhiyun   YYFPRINTF (stderr, "Stack now");
907*4882a593Smuzhiyun   for (; yybottom <= yytop; yybottom++)
908*4882a593Smuzhiyun     {
909*4882a593Smuzhiyun       int yybot = *yybottom;
910*4882a593Smuzhiyun       YYFPRINTF (stderr, " %d", yybot);
911*4882a593Smuzhiyun     }
912*4882a593Smuzhiyun   YYFPRINTF (stderr, "\n");
913*4882a593Smuzhiyun }
914*4882a593Smuzhiyun 
915*4882a593Smuzhiyun # define YY_STACK_PRINT(Bottom, Top)                            \
916*4882a593Smuzhiyun do {                                                            \
917*4882a593Smuzhiyun   if (yydebug)                                                  \
918*4882a593Smuzhiyun     yy_stack_print ((Bottom), (Top));                           \
919*4882a593Smuzhiyun } while (0)
920*4882a593Smuzhiyun 
921*4882a593Smuzhiyun 
922*4882a593Smuzhiyun /*------------------------------------------------.
923*4882a593Smuzhiyun | Report that the YYRULE is going to be reduced.  |
924*4882a593Smuzhiyun `------------------------------------------------*/
925*4882a593Smuzhiyun 
926*4882a593Smuzhiyun static void
yy_reduce_print(yy_state_t * yyssp,YYSTYPE * yyvsp,int yyrule)927*4882a593Smuzhiyun yy_reduce_print (yy_state_t *yyssp, YYSTYPE *yyvsp,
928*4882a593Smuzhiyun                  int yyrule)
929*4882a593Smuzhiyun {
930*4882a593Smuzhiyun   int yylno = yyrline[yyrule];
931*4882a593Smuzhiyun   int yynrhs = yyr2[yyrule];
932*4882a593Smuzhiyun   int yyi;
933*4882a593Smuzhiyun   YYFPRINTF (stderr, "Reducing stack by rule %d (line %d):\n",
934*4882a593Smuzhiyun              yyrule - 1, yylno);
935*4882a593Smuzhiyun   /* The symbols being reduced.  */
936*4882a593Smuzhiyun   for (yyi = 0; yyi < yynrhs; yyi++)
937*4882a593Smuzhiyun     {
938*4882a593Smuzhiyun       YYFPRINTF (stderr, "   $%d = ", yyi + 1);
939*4882a593Smuzhiyun       yy_symbol_print (stderr,
940*4882a593Smuzhiyun                        YY_ACCESSING_SYMBOL (+yyssp[yyi + 1 - yynrhs]),
941*4882a593Smuzhiyun                        &yyvsp[(yyi + 1) - (yynrhs)]);
942*4882a593Smuzhiyun       YYFPRINTF (stderr, "\n");
943*4882a593Smuzhiyun     }
944*4882a593Smuzhiyun }
945*4882a593Smuzhiyun 
946*4882a593Smuzhiyun # define YY_REDUCE_PRINT(Rule)          \
947*4882a593Smuzhiyun do {                                    \
948*4882a593Smuzhiyun   if (yydebug)                          \
949*4882a593Smuzhiyun     yy_reduce_print (yyssp, yyvsp, Rule); \
950*4882a593Smuzhiyun } while (0)
951*4882a593Smuzhiyun 
952*4882a593Smuzhiyun /* Nonzero means print parse trace.  It is left uninitialized so that
953*4882a593Smuzhiyun    multiple parsers can coexist.  */
954*4882a593Smuzhiyun int yydebug;
955*4882a593Smuzhiyun #else /* !YYDEBUG */
956*4882a593Smuzhiyun # define YYDPRINTF(Args) ((void) 0)
957*4882a593Smuzhiyun # define YY_SYMBOL_PRINT(Title, Kind, Value, Location)
958*4882a593Smuzhiyun # define YY_STACK_PRINT(Bottom, Top)
959*4882a593Smuzhiyun # define YY_REDUCE_PRINT(Rule)
960*4882a593Smuzhiyun #endif /* !YYDEBUG */
961*4882a593Smuzhiyun 
962*4882a593Smuzhiyun 
963*4882a593Smuzhiyun /* YYINITDEPTH -- initial size of the parser's stacks.  */
964*4882a593Smuzhiyun #ifndef YYINITDEPTH
965*4882a593Smuzhiyun # define YYINITDEPTH 200
966*4882a593Smuzhiyun #endif
967*4882a593Smuzhiyun 
968*4882a593Smuzhiyun /* YYMAXDEPTH -- maximum size the stacks can grow to (effective only
969*4882a593Smuzhiyun    if the built-in stack extension method is used).
970*4882a593Smuzhiyun 
971*4882a593Smuzhiyun    Do not make this value too large; the results are undefined if
972*4882a593Smuzhiyun    YYSTACK_ALLOC_MAXIMUM < YYSTACK_BYTES (YYMAXDEPTH)
973*4882a593Smuzhiyun    evaluated with infinite-precision integer arithmetic.  */
974*4882a593Smuzhiyun 
975*4882a593Smuzhiyun #ifndef YYMAXDEPTH
976*4882a593Smuzhiyun # define YYMAXDEPTH 10000
977*4882a593Smuzhiyun #endif
978*4882a593Smuzhiyun 
979*4882a593Smuzhiyun 
980*4882a593Smuzhiyun 
981*4882a593Smuzhiyun 
982*4882a593Smuzhiyun 
983*4882a593Smuzhiyun 
984*4882a593Smuzhiyun /*-----------------------------------------------.
985*4882a593Smuzhiyun | Release the memory associated to this symbol.  |
986*4882a593Smuzhiyun `-----------------------------------------------*/
987*4882a593Smuzhiyun 
988*4882a593Smuzhiyun static void
yydestruct(const char * yymsg,yysymbol_kind_t yykind,YYSTYPE * yyvaluep)989*4882a593Smuzhiyun yydestruct (const char *yymsg,
990*4882a593Smuzhiyun             yysymbol_kind_t yykind, YYSTYPE *yyvaluep)
991*4882a593Smuzhiyun {
992*4882a593Smuzhiyun   YYUSE (yyvaluep);
993*4882a593Smuzhiyun   if (!yymsg)
994*4882a593Smuzhiyun     yymsg = "Deleting";
995*4882a593Smuzhiyun   YY_SYMBOL_PRINT (yymsg, yykind, yyvaluep, yylocationp);
996*4882a593Smuzhiyun 
997*4882a593Smuzhiyun   YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
998*4882a593Smuzhiyun   YYUSE (yykind);
999*4882a593Smuzhiyun   YY_IGNORE_MAYBE_UNINITIALIZED_END
1000*4882a593Smuzhiyun }
1001*4882a593Smuzhiyun 
1002*4882a593Smuzhiyun 
1003*4882a593Smuzhiyun /* Lookahead token kind.  */
1004*4882a593Smuzhiyun int yychar;
1005*4882a593Smuzhiyun 
1006*4882a593Smuzhiyun /* The semantic value of the lookahead symbol.  */
1007*4882a593Smuzhiyun YYSTYPE yylval;
1008*4882a593Smuzhiyun /* Number of syntax errors so far.  */
1009*4882a593Smuzhiyun int yynerrs;
1010*4882a593Smuzhiyun 
1011*4882a593Smuzhiyun 
1012*4882a593Smuzhiyun 
1013*4882a593Smuzhiyun 
1014*4882a593Smuzhiyun /*----------.
1015*4882a593Smuzhiyun | yyparse.  |
1016*4882a593Smuzhiyun `----------*/
1017*4882a593Smuzhiyun 
1018*4882a593Smuzhiyun int
yyparse(void)1019*4882a593Smuzhiyun yyparse (void)
1020*4882a593Smuzhiyun {
1021*4882a593Smuzhiyun     yy_state_fast_t yystate = 0;
1022*4882a593Smuzhiyun     /* Number of tokens to shift before error messages enabled.  */
1023*4882a593Smuzhiyun     int yyerrstatus = 0;
1024*4882a593Smuzhiyun 
1025*4882a593Smuzhiyun     /* Refer to the stacks through separate pointers, to allow yyoverflow
1026*4882a593Smuzhiyun        to reallocate them elsewhere.  */
1027*4882a593Smuzhiyun 
1028*4882a593Smuzhiyun     /* Their size.  */
1029*4882a593Smuzhiyun     YYPTRDIFF_T yystacksize = YYINITDEPTH;
1030*4882a593Smuzhiyun 
1031*4882a593Smuzhiyun     /* The state stack: array, bottom, top.  */
1032*4882a593Smuzhiyun     yy_state_t yyssa[YYINITDEPTH];
1033*4882a593Smuzhiyun     yy_state_t *yyss = yyssa;
1034*4882a593Smuzhiyun     yy_state_t *yyssp = yyss;
1035*4882a593Smuzhiyun 
1036*4882a593Smuzhiyun     /* The semantic value stack: array, bottom, top.  */
1037*4882a593Smuzhiyun     YYSTYPE yyvsa[YYINITDEPTH];
1038*4882a593Smuzhiyun     YYSTYPE *yyvs = yyvsa;
1039*4882a593Smuzhiyun     YYSTYPE *yyvsp = yyvs;
1040*4882a593Smuzhiyun 
1041*4882a593Smuzhiyun   int yyn;
1042*4882a593Smuzhiyun   /* The return value of yyparse.  */
1043*4882a593Smuzhiyun   int yyresult;
1044*4882a593Smuzhiyun   /* Lookahead symbol kind.  */
1045*4882a593Smuzhiyun   yysymbol_kind_t yytoken = YYSYMBOL_YYEMPTY;
1046*4882a593Smuzhiyun   /* The variables used to return semantic value and location from the
1047*4882a593Smuzhiyun      action routines.  */
1048*4882a593Smuzhiyun   YYSTYPE yyval;
1049*4882a593Smuzhiyun 
1050*4882a593Smuzhiyun 
1051*4882a593Smuzhiyun 
1052*4882a593Smuzhiyun #define YYPOPSTACK(N)   (yyvsp -= (N), yyssp -= (N))
1053*4882a593Smuzhiyun 
1054*4882a593Smuzhiyun   /* The number of symbols on the RHS of the reduced rule.
1055*4882a593Smuzhiyun      Keep to zero when no symbol should be popped.  */
1056*4882a593Smuzhiyun   int yylen = 0;
1057*4882a593Smuzhiyun 
1058*4882a593Smuzhiyun   YYDPRINTF ((stderr, "Starting parse\n"));
1059*4882a593Smuzhiyun 
1060*4882a593Smuzhiyun   yychar = YYEMPTY; /* Cause a token to be read.  */
1061*4882a593Smuzhiyun   goto yysetstate;
1062*4882a593Smuzhiyun 
1063*4882a593Smuzhiyun 
1064*4882a593Smuzhiyun /*------------------------------------------------------------.
1065*4882a593Smuzhiyun | yynewstate -- push a new state, which is found in yystate.  |
1066*4882a593Smuzhiyun `------------------------------------------------------------*/
1067*4882a593Smuzhiyun yynewstate:
1068*4882a593Smuzhiyun   /* In all cases, when you get here, the value and location stacks
1069*4882a593Smuzhiyun      have just been pushed.  So pushing a state here evens the stacks.  */
1070*4882a593Smuzhiyun   yyssp++;
1071*4882a593Smuzhiyun 
1072*4882a593Smuzhiyun 
1073*4882a593Smuzhiyun /*--------------------------------------------------------------------.
1074*4882a593Smuzhiyun | yysetstate -- set current state (the top of the stack) to yystate.  |
1075*4882a593Smuzhiyun `--------------------------------------------------------------------*/
1076*4882a593Smuzhiyun yysetstate:
1077*4882a593Smuzhiyun   YYDPRINTF ((stderr, "Entering state %d\n", yystate));
1078*4882a593Smuzhiyun   YY_ASSERT (0 <= yystate && yystate < YYNSTATES);
1079*4882a593Smuzhiyun   YY_IGNORE_USELESS_CAST_BEGIN
1080*4882a593Smuzhiyun   *yyssp = YY_CAST (yy_state_t, yystate);
1081*4882a593Smuzhiyun   YY_IGNORE_USELESS_CAST_END
1082*4882a593Smuzhiyun   YY_STACK_PRINT (yyss, yyssp);
1083*4882a593Smuzhiyun 
1084*4882a593Smuzhiyun   if (yyss + yystacksize - 1 <= yyssp)
1085*4882a593Smuzhiyun #if !defined yyoverflow && !defined YYSTACK_RELOCATE
1086*4882a593Smuzhiyun     goto yyexhaustedlab;
1087*4882a593Smuzhiyun #else
1088*4882a593Smuzhiyun     {
1089*4882a593Smuzhiyun       /* Get the current used size of the three stacks, in elements.  */
1090*4882a593Smuzhiyun       YYPTRDIFF_T yysize = yyssp - yyss + 1;
1091*4882a593Smuzhiyun 
1092*4882a593Smuzhiyun # if defined yyoverflow
1093*4882a593Smuzhiyun       {
1094*4882a593Smuzhiyun         /* Give user a chance to reallocate the stack.  Use copies of
1095*4882a593Smuzhiyun            these so that the &'s don't force the real ones into
1096*4882a593Smuzhiyun            memory.  */
1097*4882a593Smuzhiyun         yy_state_t *yyss1 = yyss;
1098*4882a593Smuzhiyun         YYSTYPE *yyvs1 = yyvs;
1099*4882a593Smuzhiyun 
1100*4882a593Smuzhiyun         /* Each stack pointer address is followed by the size of the
1101*4882a593Smuzhiyun            data in use in that stack, in bytes.  This used to be a
1102*4882a593Smuzhiyun            conditional around just the two extra args, but that might
1103*4882a593Smuzhiyun            be undefined if yyoverflow is a macro.  */
1104*4882a593Smuzhiyun         yyoverflow (YY_("memory exhausted"),
1105*4882a593Smuzhiyun                     &yyss1, yysize * YYSIZEOF (*yyssp),
1106*4882a593Smuzhiyun                     &yyvs1, yysize * YYSIZEOF (*yyvsp),
1107*4882a593Smuzhiyun                     &yystacksize);
1108*4882a593Smuzhiyun         yyss = yyss1;
1109*4882a593Smuzhiyun         yyvs = yyvs1;
1110*4882a593Smuzhiyun       }
1111*4882a593Smuzhiyun # else /* defined YYSTACK_RELOCATE */
1112*4882a593Smuzhiyun       /* Extend the stack our own way.  */
1113*4882a593Smuzhiyun       if (YYMAXDEPTH <= yystacksize)
1114*4882a593Smuzhiyun         goto yyexhaustedlab;
1115*4882a593Smuzhiyun       yystacksize *= 2;
1116*4882a593Smuzhiyun       if (YYMAXDEPTH < yystacksize)
1117*4882a593Smuzhiyun         yystacksize = YYMAXDEPTH;
1118*4882a593Smuzhiyun 
1119*4882a593Smuzhiyun       {
1120*4882a593Smuzhiyun         yy_state_t *yyss1 = yyss;
1121*4882a593Smuzhiyun         union yyalloc *yyptr =
1122*4882a593Smuzhiyun           YY_CAST (union yyalloc *,
1123*4882a593Smuzhiyun                    YYSTACK_ALLOC (YY_CAST (YYSIZE_T, YYSTACK_BYTES (yystacksize))));
1124*4882a593Smuzhiyun         if (! yyptr)
1125*4882a593Smuzhiyun           goto yyexhaustedlab;
1126*4882a593Smuzhiyun         YYSTACK_RELOCATE (yyss_alloc, yyss);
1127*4882a593Smuzhiyun         YYSTACK_RELOCATE (yyvs_alloc, yyvs);
1128*4882a593Smuzhiyun #  undef YYSTACK_RELOCATE
1129*4882a593Smuzhiyun         if (yyss1 != yyssa)
1130*4882a593Smuzhiyun           YYSTACK_FREE (yyss1);
1131*4882a593Smuzhiyun       }
1132*4882a593Smuzhiyun # endif
1133*4882a593Smuzhiyun 
1134*4882a593Smuzhiyun       yyssp = yyss + yysize - 1;
1135*4882a593Smuzhiyun       yyvsp = yyvs + yysize - 1;
1136*4882a593Smuzhiyun 
1137*4882a593Smuzhiyun       YY_IGNORE_USELESS_CAST_BEGIN
1138*4882a593Smuzhiyun       YYDPRINTF ((stderr, "Stack size increased to %ld\n",
1139*4882a593Smuzhiyun                   YY_CAST (long, yystacksize)));
1140*4882a593Smuzhiyun       YY_IGNORE_USELESS_CAST_END
1141*4882a593Smuzhiyun 
1142*4882a593Smuzhiyun       if (yyss + yystacksize - 1 <= yyssp)
1143*4882a593Smuzhiyun         YYABORT;
1144*4882a593Smuzhiyun     }
1145*4882a593Smuzhiyun #endif /* !defined yyoverflow && !defined YYSTACK_RELOCATE */
1146*4882a593Smuzhiyun 
1147*4882a593Smuzhiyun   if (yystate == YYFINAL)
1148*4882a593Smuzhiyun     YYACCEPT;
1149*4882a593Smuzhiyun 
1150*4882a593Smuzhiyun   goto yybackup;
1151*4882a593Smuzhiyun 
1152*4882a593Smuzhiyun 
1153*4882a593Smuzhiyun /*-----------.
1154*4882a593Smuzhiyun | yybackup.  |
1155*4882a593Smuzhiyun `-----------*/
1156*4882a593Smuzhiyun yybackup:
1157*4882a593Smuzhiyun   /* Do appropriate processing given the current state.  Read a
1158*4882a593Smuzhiyun      lookahead token if we need one and don't already have one.  */
1159*4882a593Smuzhiyun 
1160*4882a593Smuzhiyun   /* First try to decide what to do without reference to lookahead token.  */
1161*4882a593Smuzhiyun   yyn = yypact[yystate];
1162*4882a593Smuzhiyun   if (yypact_value_is_default (yyn))
1163*4882a593Smuzhiyun     goto yydefault;
1164*4882a593Smuzhiyun 
1165*4882a593Smuzhiyun   /* Not known => get a lookahead token if don't already have one.  */
1166*4882a593Smuzhiyun 
1167*4882a593Smuzhiyun   /* YYCHAR is either empty, or end-of-input, or a valid lookahead.  */
1168*4882a593Smuzhiyun   if (yychar == YYEMPTY)
1169*4882a593Smuzhiyun     {
1170*4882a593Smuzhiyun       YYDPRINTF ((stderr, "Reading a token\n"));
1171*4882a593Smuzhiyun       yychar = yylex ();
1172*4882a593Smuzhiyun     }
1173*4882a593Smuzhiyun 
1174*4882a593Smuzhiyun   if (yychar <= YYEOF)
1175*4882a593Smuzhiyun     {
1176*4882a593Smuzhiyun       yychar = YYEOF;
1177*4882a593Smuzhiyun       yytoken = YYSYMBOL_YYEOF;
1178*4882a593Smuzhiyun       YYDPRINTF ((stderr, "Now at end of input.\n"));
1179*4882a593Smuzhiyun     }
1180*4882a593Smuzhiyun   else if (yychar == YYerror)
1181*4882a593Smuzhiyun     {
1182*4882a593Smuzhiyun       /* The scanner already issued an error message, process directly
1183*4882a593Smuzhiyun          to error recovery.  But do not keep the error token as
1184*4882a593Smuzhiyun          lookahead, it is too special and may lead us to an endless
1185*4882a593Smuzhiyun          loop in error recovery. */
1186*4882a593Smuzhiyun       yychar = YYUNDEF;
1187*4882a593Smuzhiyun       yytoken = YYSYMBOL_YYerror;
1188*4882a593Smuzhiyun       goto yyerrlab1;
1189*4882a593Smuzhiyun     }
1190*4882a593Smuzhiyun   else
1191*4882a593Smuzhiyun     {
1192*4882a593Smuzhiyun       yytoken = YYTRANSLATE (yychar);
1193*4882a593Smuzhiyun       YY_SYMBOL_PRINT ("Next token is", yytoken, &yylval, &yylloc);
1194*4882a593Smuzhiyun     }
1195*4882a593Smuzhiyun 
1196*4882a593Smuzhiyun   /* If the proper action on seeing token YYTOKEN is to reduce or to
1197*4882a593Smuzhiyun      detect an error, take that action.  */
1198*4882a593Smuzhiyun   yyn += yytoken;
1199*4882a593Smuzhiyun   if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken)
1200*4882a593Smuzhiyun     goto yydefault;
1201*4882a593Smuzhiyun   yyn = yytable[yyn];
1202*4882a593Smuzhiyun   if (yyn <= 0)
1203*4882a593Smuzhiyun     {
1204*4882a593Smuzhiyun       if (yytable_value_is_error (yyn))
1205*4882a593Smuzhiyun         goto yyerrlab;
1206*4882a593Smuzhiyun       yyn = -yyn;
1207*4882a593Smuzhiyun       goto yyreduce;
1208*4882a593Smuzhiyun     }
1209*4882a593Smuzhiyun 
1210*4882a593Smuzhiyun   /* Count tokens shifted since error; after three, turn off error
1211*4882a593Smuzhiyun      status.  */
1212*4882a593Smuzhiyun   if (yyerrstatus)
1213*4882a593Smuzhiyun     yyerrstatus--;
1214*4882a593Smuzhiyun 
1215*4882a593Smuzhiyun   /* Shift the lookahead token.  */
1216*4882a593Smuzhiyun   YY_SYMBOL_PRINT ("Shifting", yytoken, &yylval, &yylloc);
1217*4882a593Smuzhiyun   yystate = yyn;
1218*4882a593Smuzhiyun   YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
1219*4882a593Smuzhiyun   *++yyvsp = yylval;
1220*4882a593Smuzhiyun   YY_IGNORE_MAYBE_UNINITIALIZED_END
1221*4882a593Smuzhiyun 
1222*4882a593Smuzhiyun   /* Discard the shifted token.  */
1223*4882a593Smuzhiyun   yychar = YYEMPTY;
1224*4882a593Smuzhiyun   goto yynewstate;
1225*4882a593Smuzhiyun 
1226*4882a593Smuzhiyun 
1227*4882a593Smuzhiyun /*-----------------------------------------------------------.
1228*4882a593Smuzhiyun | yydefault -- do the default action for the current state.  |
1229*4882a593Smuzhiyun `-----------------------------------------------------------*/
1230*4882a593Smuzhiyun yydefault:
1231*4882a593Smuzhiyun   yyn = yydefact[yystate];
1232*4882a593Smuzhiyun   if (yyn == 0)
1233*4882a593Smuzhiyun     goto yyerrlab;
1234*4882a593Smuzhiyun   goto yyreduce;
1235*4882a593Smuzhiyun 
1236*4882a593Smuzhiyun 
1237*4882a593Smuzhiyun /*-----------------------------.
1238*4882a593Smuzhiyun | yyreduce -- do a reduction.  |
1239*4882a593Smuzhiyun `-----------------------------*/
1240*4882a593Smuzhiyun yyreduce:
1241*4882a593Smuzhiyun   /* yyn is the number of a rule to reduce with.  */
1242*4882a593Smuzhiyun   yylen = yyr2[yyn];
1243*4882a593Smuzhiyun 
1244*4882a593Smuzhiyun   /* If YYLEN is nonzero, implement the default value of the action:
1245*4882a593Smuzhiyun      '$$ = $1'.
1246*4882a593Smuzhiyun 
1247*4882a593Smuzhiyun      Otherwise, the following line sets YYVAL to garbage.
1248*4882a593Smuzhiyun      This behavior is undocumented and Bison
1249*4882a593Smuzhiyun      users should not rely upon it.  Assigning to YYVAL
1250*4882a593Smuzhiyun      unconditionally makes the parser a bit smaller, and it avoids a
1251*4882a593Smuzhiyun      GCC warning that YYVAL may be used uninitialized.  */
1252*4882a593Smuzhiyun   yyval = yyvsp[1-yylen];
1253*4882a593Smuzhiyun 
1254*4882a593Smuzhiyun 
1255*4882a593Smuzhiyun   YY_REDUCE_PRINT (yyn);
1256*4882a593Smuzhiyun   switch (yyn)
1257*4882a593Smuzhiyun     {
1258*4882a593Smuzhiyun   case 2: /* Program: EntryList  */
1259*4882a593Smuzhiyun #line 96 "parser.y"
1260*4882a593Smuzhiyun                     { dmxConfigEntry = (yyvsp[0].entry); }
1261*4882a593Smuzhiyun #line 1262 "parser.c"
1262*4882a593Smuzhiyun     break;
1263*4882a593Smuzhiyun 
1264*4882a593Smuzhiyun   case 4: /* EntryList: EntryList Entry  */
1265*4882a593Smuzhiyun #line 100 "parser.y"
1266*4882a593Smuzhiyun                             { APPEND(DMXConfigEntryPtr,(yyvsp[-1].entry),(yyvsp[0].entry)); (yyval.entry) = (yyvsp[-1].entry); }
1267*4882a593Smuzhiyun #line 1268 "parser.c"
1268*4882a593Smuzhiyun     break;
1269*4882a593Smuzhiyun 
1270*4882a593Smuzhiyun   case 5: /* Entry: Virtual  */
1271*4882a593Smuzhiyun #line 103 "parser.y"
1272*4882a593Smuzhiyun                        { (yyval.entry) = dmxConfigEntryVirtual((yyvsp[0].virtual)); }
1273*4882a593Smuzhiyun #line 1274 "parser.c"
1274*4882a593Smuzhiyun     break;
1275*4882a593Smuzhiyun 
1276*4882a593Smuzhiyun   case 6: /* Entry: T_LINE_COMMENT  */
1277*4882a593Smuzhiyun #line 104 "parser.y"
1278*4882a593Smuzhiyun                        { (yyval.entry) = dmxConfigEntryComment((yyvsp[0].comment)); }
1279*4882a593Smuzhiyun #line 1280 "parser.c"
1280*4882a593Smuzhiyun     break;
1281*4882a593Smuzhiyun 
1282*4882a593Smuzhiyun   case 7: /* Virtual: T_VIRTUAL Open SubList Close  */
1283*4882a593Smuzhiyun #line 108 "parser.y"
1284*4882a593Smuzhiyun           { (yyval.virtual) = dmxConfigCreateVirtual((yyvsp[-3].token), NULL, NULL, (yyvsp[-2].token), (yyvsp[-1].subentry), (yyvsp[0].token)); }
1285*4882a593Smuzhiyun #line 1286 "parser.c"
1286*4882a593Smuzhiyun     break;
1287*4882a593Smuzhiyun 
1288*4882a593Smuzhiyun   case 8: /* Virtual: T_VIRTUAL Dimension Open SubList Close  */
1289*4882a593Smuzhiyun #line 110 "parser.y"
1290*4882a593Smuzhiyun           { (yyval.virtual) = dmxConfigCreateVirtual((yyvsp[-4].token), NULL, (yyvsp[-3].pair), (yyvsp[-2].token), (yyvsp[-1].subentry), (yyvsp[0].token)); }
1291*4882a593Smuzhiyun #line 1292 "parser.c"
1292*4882a593Smuzhiyun     break;
1293*4882a593Smuzhiyun 
1294*4882a593Smuzhiyun   case 9: /* Virtual: T_VIRTUAL Name Open SubList Close  */
1295*4882a593Smuzhiyun #line 112 "parser.y"
1296*4882a593Smuzhiyun           { (yyval.virtual) = dmxConfigCreateVirtual((yyvsp[-4].token), (yyvsp[-3].string), NULL, (yyvsp[-2].token), (yyvsp[-1].subentry), (yyvsp[0].token)); }
1297*4882a593Smuzhiyun #line 1298 "parser.c"
1298*4882a593Smuzhiyun     break;
1299*4882a593Smuzhiyun 
1300*4882a593Smuzhiyun   case 10: /* Virtual: T_VIRTUAL Name Dimension Open SubList Close  */
1301*4882a593Smuzhiyun #line 114 "parser.y"
1302*4882a593Smuzhiyun           { (yyval.virtual) = dmxConfigCreateVirtual((yyvsp[-5].token), (yyvsp[-4].string), (yyvsp[-3].pair), (yyvsp[-2].token), (yyvsp[-1].subentry), (yyvsp[0].token) ); }
1303*4882a593Smuzhiyun #line 1304 "parser.c"
1304*4882a593Smuzhiyun     break;
1305*4882a593Smuzhiyun 
1306*4882a593Smuzhiyun   case 12: /* SubList: SubList Sub  */
1307*4882a593Smuzhiyun #line 118 "parser.y"
1308*4882a593Smuzhiyun                       { APPEND(DMXConfigSubPtr,(yyvsp[-1].subentry),(yyvsp[0].subentry)); (yyval.subentry) = (yyvsp[-1].subentry); }
1309*4882a593Smuzhiyun #line 1310 "parser.c"
1310*4882a593Smuzhiyun     break;
1311*4882a593Smuzhiyun 
1312*4882a593Smuzhiyun   case 13: /* Sub: T_LINE_COMMENT  */
1313*4882a593Smuzhiyun #line 121 "parser.y"
1314*4882a593Smuzhiyun                      { (yyval.subentry) = dmxConfigSubComment((yyvsp[0].comment)); }
1315*4882a593Smuzhiyun #line 1316 "parser.c"
1316*4882a593Smuzhiyun     break;
1317*4882a593Smuzhiyun 
1318*4882a593Smuzhiyun   case 14: /* Sub: DisplayEntry  */
1319*4882a593Smuzhiyun #line 122 "parser.y"
1320*4882a593Smuzhiyun                      { (yyval.subentry) = dmxConfigSubDisplay((yyvsp[0].display)); }
1321*4882a593Smuzhiyun #line 1322 "parser.c"
1322*4882a593Smuzhiyun     break;
1323*4882a593Smuzhiyun 
1324*4882a593Smuzhiyun   case 15: /* Sub: WallEntry  */
1325*4882a593Smuzhiyun #line 123 "parser.y"
1326*4882a593Smuzhiyun                      { (yyval.subentry) = dmxConfigSubWall((yyvsp[0].wall)); }
1327*4882a593Smuzhiyun #line 1328 "parser.c"
1328*4882a593Smuzhiyun     break;
1329*4882a593Smuzhiyun 
1330*4882a593Smuzhiyun   case 16: /* Sub: OptionEntry  */
1331*4882a593Smuzhiyun #line 124 "parser.y"
1332*4882a593Smuzhiyun                      { (yyval.subentry) = dmxConfigSubOption((yyvsp[0].option)); }
1333*4882a593Smuzhiyun #line 1334 "parser.c"
1334*4882a593Smuzhiyun     break;
1335*4882a593Smuzhiyun 
1336*4882a593Smuzhiyun   case 17: /* Sub: ParamEntry  */
1337*4882a593Smuzhiyun #line 125 "parser.y"
1338*4882a593Smuzhiyun                      { (yyval.subentry) = dmxConfigSubParam((yyvsp[0].param)); }
1339*4882a593Smuzhiyun #line 1340 "parser.c"
1340*4882a593Smuzhiyun     break;
1341*4882a593Smuzhiyun 
1342*4882a593Smuzhiyun   case 18: /* OptionEntry: T_OPTION NameList Terminal  */
1343*4882a593Smuzhiyun #line 129 "parser.y"
1344*4882a593Smuzhiyun               { (yyval.option) = dmxConfigCreateOption((yyvsp[-2].token), (yyvsp[-1].string), (yyvsp[0].token)); }
1345*4882a593Smuzhiyun #line 1346 "parser.c"
1346*4882a593Smuzhiyun     break;
1347*4882a593Smuzhiyun 
1348*4882a593Smuzhiyun   case 19: /* ParamEntry: T_PARAM NameList Terminal  */
1349*4882a593Smuzhiyun #line 133 "parser.y"
1350*4882a593Smuzhiyun              { (yyval.param) = dmxConfigCreateParam((yyvsp[-2].token), NULL, (yyvsp[-1].string), NULL, (yyvsp[0].token)); }
1351*4882a593Smuzhiyun #line 1352 "parser.c"
1352*4882a593Smuzhiyun     break;
1353*4882a593Smuzhiyun 
1354*4882a593Smuzhiyun   case 20: /* ParamEntry: T_PARAM Open ParamList Close  */
1355*4882a593Smuzhiyun #line 135 "parser.y"
1356*4882a593Smuzhiyun              { (yyval.param) = dmxConfigCreateParam((yyvsp[-3].token), (yyvsp[-2].token), NULL, (yyvsp[0].token), NULL);
1357*4882a593Smuzhiyun                (yyval.param)->next = (yyvsp[-1].param);
1358*4882a593Smuzhiyun              }
1359*4882a593Smuzhiyun #line 1360 "parser.c"
1360*4882a593Smuzhiyun     break;
1361*4882a593Smuzhiyun 
1362*4882a593Smuzhiyun   case 22: /* ParamList: ParamList Param  */
1363*4882a593Smuzhiyun #line 141 "parser.y"
1364*4882a593Smuzhiyun                             { APPEND(DMXConfigParamPtr,(yyvsp[-1].param),(yyvsp[0].param)); (yyval.param) = (yyvsp[-1].param); }
1365*4882a593Smuzhiyun #line 1366 "parser.c"
1366*4882a593Smuzhiyun     break;
1367*4882a593Smuzhiyun 
1368*4882a593Smuzhiyun   case 23: /* Param: NameList Terminal  */
1369*4882a593Smuzhiyun #line 145 "parser.y"
1370*4882a593Smuzhiyun         { (yyval.param) = dmxConfigCreateParam(NULL, NULL, (yyvsp[-1].string), NULL, (yyvsp[0].token)); }
1371*4882a593Smuzhiyun #line 1372 "parser.c"
1372*4882a593Smuzhiyun     break;
1373*4882a593Smuzhiyun 
1374*4882a593Smuzhiyun   case 24: /* PartialDim: Dimension Offset  */
1375*4882a593Smuzhiyun #line 149 "parser.y"
1376*4882a593Smuzhiyun              { (yyval.pdim) = dmxConfigCreatePartDim((yyvsp[-1].pair), (yyvsp[0].pair)); }
1377*4882a593Smuzhiyun #line 1378 "parser.c"
1378*4882a593Smuzhiyun     break;
1379*4882a593Smuzhiyun 
1380*4882a593Smuzhiyun   case 25: /* PartialDim: Dimension  */
1381*4882a593Smuzhiyun #line 151 "parser.y"
1382*4882a593Smuzhiyun              { (yyval.pdim) = dmxConfigCreatePartDim((yyvsp[0].pair), NULL); }
1383*4882a593Smuzhiyun #line 1384 "parser.c"
1384*4882a593Smuzhiyun     break;
1385*4882a593Smuzhiyun 
1386*4882a593Smuzhiyun   case 26: /* PartialDim: Offset  */
1387*4882a593Smuzhiyun #line 153 "parser.y"
1388*4882a593Smuzhiyun              { (yyval.pdim) = dmxConfigCreatePartDim(NULL, (yyvsp[0].pair)); }
1389*4882a593Smuzhiyun #line 1390 "parser.c"
1390*4882a593Smuzhiyun     break;
1391*4882a593Smuzhiyun 
1392*4882a593Smuzhiyun   case 27: /* FullDim: PartialDim '/' PartialDim  */
1393*4882a593Smuzhiyun #line 157 "parser.y"
1394*4882a593Smuzhiyun           { (yyval.fdim) = dmxConfigCreateFullDim((yyvsp[-2].pdim), (yyvsp[0].pdim)); }
1395*4882a593Smuzhiyun #line 1396 "parser.c"
1396*4882a593Smuzhiyun     break;
1397*4882a593Smuzhiyun 
1398*4882a593Smuzhiyun   case 28: /* FullDim: '/' PartialDim  */
1399*4882a593Smuzhiyun #line 159 "parser.y"
1400*4882a593Smuzhiyun           { (yyval.fdim) = dmxConfigCreateFullDim(NULL, (yyvsp[0].pdim)); }
1401*4882a593Smuzhiyun #line 1402 "parser.c"
1402*4882a593Smuzhiyun     break;
1403*4882a593Smuzhiyun 
1404*4882a593Smuzhiyun   case 29: /* FullDim: PartialDim  */
1405*4882a593Smuzhiyun #line 161 "parser.y"
1406*4882a593Smuzhiyun           { (yyval.fdim) = dmxConfigCreateFullDim((yyvsp[0].pdim), NULL); }
1407*4882a593Smuzhiyun #line 1408 "parser.c"
1408*4882a593Smuzhiyun     break;
1409*4882a593Smuzhiyun 
1410*4882a593Smuzhiyun   case 30: /* DisplayEntry: Display Name FullDim Origin Terminal  */
1411*4882a593Smuzhiyun #line 165 "parser.y"
1412*4882a593Smuzhiyun                { (yyval.display) = dmxConfigCreateDisplay((yyvsp[-4].token), (yyvsp[-3].string), (yyvsp[-2].fdim), (yyvsp[-1].pair), (yyvsp[0].token)); }
1413*4882a593Smuzhiyun #line 1414 "parser.c"
1414*4882a593Smuzhiyun     break;
1415*4882a593Smuzhiyun 
1416*4882a593Smuzhiyun   case 31: /* DisplayEntry: Display FullDim Origin Terminal  */
1417*4882a593Smuzhiyun #line 167 "parser.y"
1418*4882a593Smuzhiyun                { (yyval.display) = dmxConfigCreateDisplay((yyvsp[-3].token), NULL, (yyvsp[-2].fdim), (yyvsp[-1].pair), (yyvsp[0].token)); }
1419*4882a593Smuzhiyun #line 1420 "parser.c"
1420*4882a593Smuzhiyun     break;
1421*4882a593Smuzhiyun 
1422*4882a593Smuzhiyun   case 32: /* DisplayEntry: Display Name Origin Terminal  */
1423*4882a593Smuzhiyun #line 169 "parser.y"
1424*4882a593Smuzhiyun                { (yyval.display) = dmxConfigCreateDisplay((yyvsp[-3].token), (yyvsp[-2].string), NULL, (yyvsp[-1].pair), (yyvsp[0].token)); }
1425*4882a593Smuzhiyun #line 1426 "parser.c"
1426*4882a593Smuzhiyun     break;
1427*4882a593Smuzhiyun 
1428*4882a593Smuzhiyun   case 33: /* DisplayEntry: Display Name FullDim Terminal  */
1429*4882a593Smuzhiyun #line 172 "parser.y"
1430*4882a593Smuzhiyun                { (yyval.display) = dmxConfigCreateDisplay((yyvsp[-3].token), (yyvsp[-2].string), (yyvsp[-1].fdim), NULL, (yyvsp[0].token)); }
1431*4882a593Smuzhiyun #line 1432 "parser.c"
1432*4882a593Smuzhiyun     break;
1433*4882a593Smuzhiyun 
1434*4882a593Smuzhiyun   case 34: /* DisplayEntry: Display FullDim Terminal  */
1435*4882a593Smuzhiyun #line 174 "parser.y"
1436*4882a593Smuzhiyun                { (yyval.display) = dmxConfigCreateDisplay((yyvsp[-2].token), NULL, (yyvsp[-1].fdim), NULL, (yyvsp[0].token)); }
1437*4882a593Smuzhiyun #line 1438 "parser.c"
1438*4882a593Smuzhiyun     break;
1439*4882a593Smuzhiyun 
1440*4882a593Smuzhiyun   case 35: /* DisplayEntry: Display Name Terminal  */
1441*4882a593Smuzhiyun #line 176 "parser.y"
1442*4882a593Smuzhiyun                { (yyval.display) = dmxConfigCreateDisplay((yyvsp[-2].token), (yyvsp[-1].string), NULL, NULL, (yyvsp[0].token)); }
1443*4882a593Smuzhiyun #line 1444 "parser.c"
1444*4882a593Smuzhiyun     break;
1445*4882a593Smuzhiyun 
1446*4882a593Smuzhiyun   case 36: /* DisplayEntry: Display Terminal  */
1447*4882a593Smuzhiyun #line 178 "parser.y"
1448*4882a593Smuzhiyun                { (yyval.display) = dmxConfigCreateDisplay((yyvsp[-1].token), NULL, NULL, NULL, (yyvsp[0].token)); }
1449*4882a593Smuzhiyun #line 1450 "parser.c"
1450*4882a593Smuzhiyun     break;
1451*4882a593Smuzhiyun 
1452*4882a593Smuzhiyun   case 37: /* WallEntry: Wall Dimension Dimension NameList Terminal  */
1453*4882a593Smuzhiyun #line 182 "parser.y"
1454*4882a593Smuzhiyun             { (yyval.wall) = dmxConfigCreateWall((yyvsp[-4].token), (yyvsp[-3].pair), (yyvsp[-2].pair), (yyvsp[-1].string), (yyvsp[0].token)); }
1455*4882a593Smuzhiyun #line 1456 "parser.c"
1456*4882a593Smuzhiyun     break;
1457*4882a593Smuzhiyun 
1458*4882a593Smuzhiyun   case 38: /* WallEntry: Wall Dimension NameList Terminal  */
1459*4882a593Smuzhiyun #line 184 "parser.y"
1460*4882a593Smuzhiyun             { (yyval.wall) = dmxConfigCreateWall((yyvsp[-3].token), (yyvsp[-2].pair), NULL, (yyvsp[-1].string), (yyvsp[0].token)); }
1461*4882a593Smuzhiyun #line 1462 "parser.c"
1462*4882a593Smuzhiyun     break;
1463*4882a593Smuzhiyun 
1464*4882a593Smuzhiyun   case 39: /* WallEntry: Wall NameList Terminal  */
1465*4882a593Smuzhiyun #line 186 "parser.y"
1466*4882a593Smuzhiyun             { (yyval.wall) = dmxConfigCreateWall((yyvsp[-2].token), NULL, NULL, (yyvsp[-1].string), (yyvsp[0].token)); }
1467*4882a593Smuzhiyun #line 1468 "parser.c"
1468*4882a593Smuzhiyun     break;
1469*4882a593Smuzhiyun 
1470*4882a593Smuzhiyun   case 41: /* Display: T_DISPLAY T_COMMENT  */
1471*4882a593Smuzhiyun #line 190 "parser.y"
1472*4882a593Smuzhiyun                               { (yyval.token) = (yyvsp[-1].token); (yyval.token)->comment = (yyvsp[0].comment)->comment; }
1473*4882a593Smuzhiyun #line 1474 "parser.c"
1474*4882a593Smuzhiyun     break;
1475*4882a593Smuzhiyun 
1476*4882a593Smuzhiyun   case 43: /* Name: T_STRING T_COMMENT  */
1477*4882a593Smuzhiyun #line 194 "parser.y"
1478*4882a593Smuzhiyun                           { (yyval.string) = (yyvsp[-1].string); (yyval.string)->comment = (yyvsp[0].comment)->comment; }
1479*4882a593Smuzhiyun #line 1480 "parser.c"
1480*4882a593Smuzhiyun     break;
1481*4882a593Smuzhiyun 
1482*4882a593Smuzhiyun   case 45: /* Dimension: T_DIMENSION T_COMMENT  */
1483*4882a593Smuzhiyun #line 198 "parser.y"
1484*4882a593Smuzhiyun                                   { (yyval.pair) = (yyvsp[-1].pair); (yyval.pair)->comment = (yyvsp[0].comment)->comment; }
1485*4882a593Smuzhiyun #line 1486 "parser.c"
1486*4882a593Smuzhiyun     break;
1487*4882a593Smuzhiyun 
1488*4882a593Smuzhiyun   case 47: /* Offset: T_OFFSET T_COMMENT  */
1489*4882a593Smuzhiyun #line 202 "parser.y"
1490*4882a593Smuzhiyun                             { (yyval.pair) = (yyvsp[-1].pair); (yyval.pair)->comment = (yyvsp[0].comment)->comment; }
1491*4882a593Smuzhiyun #line 1492 "parser.c"
1492*4882a593Smuzhiyun     break;
1493*4882a593Smuzhiyun 
1494*4882a593Smuzhiyun   case 49: /* Origin: T_ORIGIN T_COMMENT  */
1495*4882a593Smuzhiyun #line 206 "parser.y"
1496*4882a593Smuzhiyun                             { (yyval.pair) = (yyvsp[-1].pair); (yyval.pair)->comment = (yyvsp[0].comment)->comment; }
1497*4882a593Smuzhiyun #line 1498 "parser.c"
1498*4882a593Smuzhiyun     break;
1499*4882a593Smuzhiyun 
1500*4882a593Smuzhiyun   case 51: /* Terminal: ';' T_COMMENT  */
1501*4882a593Smuzhiyun #line 210 "parser.y"
1502*4882a593Smuzhiyun                          { (yyval.token) = (yyvsp[-1].token); (yyval.token)->comment = (yyvsp[0].comment)->comment; }
1503*4882a593Smuzhiyun #line 1504 "parser.c"
1504*4882a593Smuzhiyun     break;
1505*4882a593Smuzhiyun 
1506*4882a593Smuzhiyun   case 53: /* Open: '{' T_COMMENT  */
1507*4882a593Smuzhiyun #line 214 "parser.y"
1508*4882a593Smuzhiyun                      { (yyval.token) = (yyvsp[-1].token); (yyval.token)->comment = (yyvsp[0].comment)->comment; }
1509*4882a593Smuzhiyun #line 1510 "parser.c"
1510*4882a593Smuzhiyun     break;
1511*4882a593Smuzhiyun 
1512*4882a593Smuzhiyun   case 55: /* Close: '}' T_COMMENT  */
1513*4882a593Smuzhiyun #line 218 "parser.y"
1514*4882a593Smuzhiyun                       { (yyval.token) = (yyvsp[-1].token); (yyval.token)->comment = (yyvsp[0].comment)->comment; }
1515*4882a593Smuzhiyun #line 1516 "parser.c"
1516*4882a593Smuzhiyun     break;
1517*4882a593Smuzhiyun 
1518*4882a593Smuzhiyun   case 57: /* Wall: T_WALL T_COMMENT  */
1519*4882a593Smuzhiyun #line 222 "parser.y"
1520*4882a593Smuzhiyun                         { (yyval.token) = (yyvsp[-1].token); (yyval.token)->comment = (yyvsp[0].comment)->comment; }
1521*4882a593Smuzhiyun #line 1522 "parser.c"
1522*4882a593Smuzhiyun     break;
1523*4882a593Smuzhiyun 
1524*4882a593Smuzhiyun   case 59: /* NameList: NameList Name  */
1525*4882a593Smuzhiyun #line 226 "parser.y"
1526*4882a593Smuzhiyun                          { APPEND(DMXConfigStringPtr, (yyvsp[-1].string), (yyvsp[0].string)); (yyval.string) = (yyvsp[-1].string); }
1527*4882a593Smuzhiyun #line 1528 "parser.c"
1528*4882a593Smuzhiyun     break;
1529*4882a593Smuzhiyun 
1530*4882a593Smuzhiyun 
1531*4882a593Smuzhiyun #line 1532 "parser.c"
1532*4882a593Smuzhiyun 
1533*4882a593Smuzhiyun       default: break;
1534*4882a593Smuzhiyun     }
1535*4882a593Smuzhiyun   /* User semantic actions sometimes alter yychar, and that requires
1536*4882a593Smuzhiyun      that yytoken be updated with the new translation.  We take the
1537*4882a593Smuzhiyun      approach of translating immediately before every use of yytoken.
1538*4882a593Smuzhiyun      One alternative is translating here after every semantic action,
1539*4882a593Smuzhiyun      but that translation would be missed if the semantic action invokes
1540*4882a593Smuzhiyun      YYABORT, YYACCEPT, or YYERROR immediately after altering yychar or
1541*4882a593Smuzhiyun      if it invokes YYBACKUP.  In the case of YYABORT or YYACCEPT, an
1542*4882a593Smuzhiyun      incorrect destructor might then be invoked immediately.  In the
1543*4882a593Smuzhiyun      case of YYERROR or YYBACKUP, subsequent parser actions might lead
1544*4882a593Smuzhiyun      to an incorrect destructor call or verbose syntax error message
1545*4882a593Smuzhiyun      before the lookahead is translated.  */
1546*4882a593Smuzhiyun   YY_SYMBOL_PRINT ("-> $$ =", YY_CAST (yysymbol_kind_t, yyr1[yyn]), &yyval, &yyloc);
1547*4882a593Smuzhiyun 
1548*4882a593Smuzhiyun   YYPOPSTACK (yylen);
1549*4882a593Smuzhiyun   yylen = 0;
1550*4882a593Smuzhiyun 
1551*4882a593Smuzhiyun   *++yyvsp = yyval;
1552*4882a593Smuzhiyun 
1553*4882a593Smuzhiyun   /* Now 'shift' the result of the reduction.  Determine what state
1554*4882a593Smuzhiyun      that goes to, based on the state we popped back to and the rule
1555*4882a593Smuzhiyun      number reduced by.  */
1556*4882a593Smuzhiyun   {
1557*4882a593Smuzhiyun     const int yylhs = yyr1[yyn] - YYNTOKENS;
1558*4882a593Smuzhiyun     const int yyi = yypgoto[yylhs] + *yyssp;
1559*4882a593Smuzhiyun     yystate = (0 <= yyi && yyi <= YYLAST && yycheck[yyi] == *yyssp
1560*4882a593Smuzhiyun                ? yytable[yyi]
1561*4882a593Smuzhiyun                : yydefgoto[yylhs]);
1562*4882a593Smuzhiyun   }
1563*4882a593Smuzhiyun 
1564*4882a593Smuzhiyun   goto yynewstate;
1565*4882a593Smuzhiyun 
1566*4882a593Smuzhiyun 
1567*4882a593Smuzhiyun /*--------------------------------------.
1568*4882a593Smuzhiyun | yyerrlab -- here on detecting error.  |
1569*4882a593Smuzhiyun `--------------------------------------*/
1570*4882a593Smuzhiyun yyerrlab:
1571*4882a593Smuzhiyun   /* Make sure we have latest lookahead translation.  See comments at
1572*4882a593Smuzhiyun      user semantic actions for why this is necessary.  */
1573*4882a593Smuzhiyun   yytoken = yychar == YYEMPTY ? YYSYMBOL_YYEMPTY : YYTRANSLATE (yychar);
1574*4882a593Smuzhiyun   /* If not already recovering from an error, report this error.  */
1575*4882a593Smuzhiyun   if (!yyerrstatus)
1576*4882a593Smuzhiyun     {
1577*4882a593Smuzhiyun       ++yynerrs;
1578*4882a593Smuzhiyun       yyerror (YY_("syntax error"));
1579*4882a593Smuzhiyun     }
1580*4882a593Smuzhiyun 
1581*4882a593Smuzhiyun   if (yyerrstatus == 3)
1582*4882a593Smuzhiyun     {
1583*4882a593Smuzhiyun       /* If just tried and failed to reuse lookahead token after an
1584*4882a593Smuzhiyun          error, discard it.  */
1585*4882a593Smuzhiyun 
1586*4882a593Smuzhiyun       if (yychar <= YYEOF)
1587*4882a593Smuzhiyun         {
1588*4882a593Smuzhiyun           /* Return failure if at end of input.  */
1589*4882a593Smuzhiyun           if (yychar == YYEOF)
1590*4882a593Smuzhiyun             YYABORT;
1591*4882a593Smuzhiyun         }
1592*4882a593Smuzhiyun       else
1593*4882a593Smuzhiyun         {
1594*4882a593Smuzhiyun           yydestruct ("Error: discarding",
1595*4882a593Smuzhiyun                       yytoken, &yylval);
1596*4882a593Smuzhiyun           yychar = YYEMPTY;
1597*4882a593Smuzhiyun         }
1598*4882a593Smuzhiyun     }
1599*4882a593Smuzhiyun 
1600*4882a593Smuzhiyun   /* Else will try to reuse lookahead token after shifting the error
1601*4882a593Smuzhiyun      token.  */
1602*4882a593Smuzhiyun   goto yyerrlab1;
1603*4882a593Smuzhiyun 
1604*4882a593Smuzhiyun 
1605*4882a593Smuzhiyun /*---------------------------------------------------.
1606*4882a593Smuzhiyun | yyerrorlab -- error raised explicitly by YYERROR.  |
1607*4882a593Smuzhiyun `---------------------------------------------------*/
1608*4882a593Smuzhiyun yyerrorlab:
1609*4882a593Smuzhiyun   /* Pacify compilers when the user code never invokes YYERROR and the
1610*4882a593Smuzhiyun      label yyerrorlab therefore never appears in user code.  */
1611*4882a593Smuzhiyun   if (0)
1612*4882a593Smuzhiyun     YYERROR;
1613*4882a593Smuzhiyun 
1614*4882a593Smuzhiyun   /* Do not reclaim the symbols of the rule whose action triggered
1615*4882a593Smuzhiyun      this YYERROR.  */
1616*4882a593Smuzhiyun   YYPOPSTACK (yylen);
1617*4882a593Smuzhiyun   yylen = 0;
1618*4882a593Smuzhiyun   YY_STACK_PRINT (yyss, yyssp);
1619*4882a593Smuzhiyun   yystate = *yyssp;
1620*4882a593Smuzhiyun   goto yyerrlab1;
1621*4882a593Smuzhiyun 
1622*4882a593Smuzhiyun 
1623*4882a593Smuzhiyun /*-------------------------------------------------------------.
1624*4882a593Smuzhiyun | yyerrlab1 -- common code for both syntax error and YYERROR.  |
1625*4882a593Smuzhiyun `-------------------------------------------------------------*/
1626*4882a593Smuzhiyun yyerrlab1:
1627*4882a593Smuzhiyun   yyerrstatus = 3;      /* Each real token shifted decrements this.  */
1628*4882a593Smuzhiyun 
1629*4882a593Smuzhiyun   /* Pop stack until we find a state that shifts the error token.  */
1630*4882a593Smuzhiyun   for (;;)
1631*4882a593Smuzhiyun     {
1632*4882a593Smuzhiyun       yyn = yypact[yystate];
1633*4882a593Smuzhiyun       if (!yypact_value_is_default (yyn))
1634*4882a593Smuzhiyun         {
1635*4882a593Smuzhiyun           yyn += YYSYMBOL_YYerror;
1636*4882a593Smuzhiyun           if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror)
1637*4882a593Smuzhiyun             {
1638*4882a593Smuzhiyun               yyn = yytable[yyn];
1639*4882a593Smuzhiyun               if (0 < yyn)
1640*4882a593Smuzhiyun                 break;
1641*4882a593Smuzhiyun             }
1642*4882a593Smuzhiyun         }
1643*4882a593Smuzhiyun 
1644*4882a593Smuzhiyun       /* Pop the current state because it cannot handle the error token.  */
1645*4882a593Smuzhiyun       if (yyssp == yyss)
1646*4882a593Smuzhiyun         YYABORT;
1647*4882a593Smuzhiyun 
1648*4882a593Smuzhiyun 
1649*4882a593Smuzhiyun       yydestruct ("Error: popping",
1650*4882a593Smuzhiyun                   YY_ACCESSING_SYMBOL (yystate), yyvsp);
1651*4882a593Smuzhiyun       YYPOPSTACK (1);
1652*4882a593Smuzhiyun       yystate = *yyssp;
1653*4882a593Smuzhiyun       YY_STACK_PRINT (yyss, yyssp);
1654*4882a593Smuzhiyun     }
1655*4882a593Smuzhiyun 
1656*4882a593Smuzhiyun   YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
1657*4882a593Smuzhiyun   *++yyvsp = yylval;
1658*4882a593Smuzhiyun   YY_IGNORE_MAYBE_UNINITIALIZED_END
1659*4882a593Smuzhiyun 
1660*4882a593Smuzhiyun 
1661*4882a593Smuzhiyun   /* Shift the error token.  */
1662*4882a593Smuzhiyun   YY_SYMBOL_PRINT ("Shifting", YY_ACCESSING_SYMBOL (yyn), yyvsp, yylsp);
1663*4882a593Smuzhiyun 
1664*4882a593Smuzhiyun   yystate = yyn;
1665*4882a593Smuzhiyun   goto yynewstate;
1666*4882a593Smuzhiyun 
1667*4882a593Smuzhiyun 
1668*4882a593Smuzhiyun /*-------------------------------------.
1669*4882a593Smuzhiyun | yyacceptlab -- YYACCEPT comes here.  |
1670*4882a593Smuzhiyun `-------------------------------------*/
1671*4882a593Smuzhiyun yyacceptlab:
1672*4882a593Smuzhiyun   yyresult = 0;
1673*4882a593Smuzhiyun   goto yyreturn;
1674*4882a593Smuzhiyun 
1675*4882a593Smuzhiyun 
1676*4882a593Smuzhiyun /*-----------------------------------.
1677*4882a593Smuzhiyun | yyabortlab -- YYABORT comes here.  |
1678*4882a593Smuzhiyun `-----------------------------------*/
1679*4882a593Smuzhiyun yyabortlab:
1680*4882a593Smuzhiyun   yyresult = 1;
1681*4882a593Smuzhiyun   goto yyreturn;
1682*4882a593Smuzhiyun 
1683*4882a593Smuzhiyun 
1684*4882a593Smuzhiyun #if !defined yyoverflow
1685*4882a593Smuzhiyun /*-------------------------------------------------.
1686*4882a593Smuzhiyun | yyexhaustedlab -- memory exhaustion comes here.  |
1687*4882a593Smuzhiyun `-------------------------------------------------*/
1688*4882a593Smuzhiyun yyexhaustedlab:
1689*4882a593Smuzhiyun   yyerror (YY_("memory exhausted"));
1690*4882a593Smuzhiyun   yyresult = 2;
1691*4882a593Smuzhiyun   goto yyreturn;
1692*4882a593Smuzhiyun #endif
1693*4882a593Smuzhiyun 
1694*4882a593Smuzhiyun 
1695*4882a593Smuzhiyun /*-------------------------------------------------------.
1696*4882a593Smuzhiyun | yyreturn -- parsing is finished, clean up and return.  |
1697*4882a593Smuzhiyun `-------------------------------------------------------*/
1698*4882a593Smuzhiyun yyreturn:
1699*4882a593Smuzhiyun   if (yychar != YYEMPTY)
1700*4882a593Smuzhiyun     {
1701*4882a593Smuzhiyun       /* Make sure we have latest lookahead translation.  See comments at
1702*4882a593Smuzhiyun          user semantic actions for why this is necessary.  */
1703*4882a593Smuzhiyun       yytoken = YYTRANSLATE (yychar);
1704*4882a593Smuzhiyun       yydestruct ("Cleanup: discarding lookahead",
1705*4882a593Smuzhiyun                   yytoken, &yylval);
1706*4882a593Smuzhiyun     }
1707*4882a593Smuzhiyun   /* Do not reclaim the symbols of the rule whose action triggered
1708*4882a593Smuzhiyun      this YYABORT or YYACCEPT.  */
1709*4882a593Smuzhiyun   YYPOPSTACK (yylen);
1710*4882a593Smuzhiyun   YY_STACK_PRINT (yyss, yyssp);
1711*4882a593Smuzhiyun   while (yyssp != yyss)
1712*4882a593Smuzhiyun     {
1713*4882a593Smuzhiyun       yydestruct ("Cleanup: popping",
1714*4882a593Smuzhiyun                   YY_ACCESSING_SYMBOL (+*yyssp), yyvsp);
1715*4882a593Smuzhiyun       YYPOPSTACK (1);
1716*4882a593Smuzhiyun     }
1717*4882a593Smuzhiyun #ifndef yyoverflow
1718*4882a593Smuzhiyun   if (yyss != yyssa)
1719*4882a593Smuzhiyun     YYSTACK_FREE (yyss);
1720*4882a593Smuzhiyun #endif
1721*4882a593Smuzhiyun 
1722*4882a593Smuzhiyun   return yyresult;
1723*4882a593Smuzhiyun }
1724*4882a593Smuzhiyun 
1725