Debian Codegraph @

source/compiler/dtparser.tab.c

raw symbols SCIP
1
2 /* A Bison parser, made by GNU Bison 2.4.1. */
3
4 /* Skeleton implementation for Bison's Yacc-like parsers in C
5
6 Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006
7 Free Software Foundation, Inc.
8
9 This program is free software: you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation, either version 3 of the License, or
12 (at your option) any later version.
13
14 This program is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License for more details.
18
19 You should have received a copy of the GNU General Public License
20 along with this program. If not, see <http://www.gnu.org/licenses/>. */
21
22 /* As a special exception, you may create a larger work that contains
23 part or all of the Bison parser skeleton and distribute that work
24 under terms of your choice, so long as that work isn't itself a
25 parser generator using the skeleton or a modified version thereof
26 as a parser skeleton. Alternatively, if you modify or redistribute
27 the parser skeleton itself, you may (at your option) remove this
28 special exception, which will cause the skeleton and the resulting
29 Bison output files to be licensed under the GNU General Public
30 License without this special exception.
31
32 This special exception was added by the Free Software Foundation in
33 version 2.2 of Bison. */
34
35 /* C LALR(1) parser skeleton written by Richard Stallman, by
36 simplifying the original so-called "semantic" parser. */
37
38 /* All symbols defined below should begin with yy or YY, to avoid
39 infringing on user name space. This should be done even for local
40 variables, as they might otherwise be expanded by user macros.
41 There are some unavoidable exceptions within include files to
42 define necessary library symbols; they are noted "INFRINGES ON
43 USER NAME SPACE" below. */
44
45 /* Identify Bison output. */
46 #define YYBISON 1
47
48 /* Bison version. */
49 #define YYBISON_VERSION "2.4.1"
50
51 /* Skeleton name. */
52 #define YYSKELETON_NAME "yacc.c"
53
54 /* Pure parsers. */
55 #define YYPURE 0
56
57 /* Push parsers. */
58 #define YYPUSH 0
59
60 /* Pull parsers. */
61 #define YYPULL 1
62
63 /* Using locations. */
64 #define YYLSP_NEEDED 0
65
66
67
68 /* Copy the first part of user declarations. */
69
70 /* Line 189 of yacc.c */
71 #line 1 "C:\\Users\\sdumbre\\testclone\\source\\compiler\\dtparser.y"
72
73 /******************************************************************************
74 *
75 * Module Name: dtparser.y - Bison input file for table compiler parser
76 *
77 *****************************************************************************/
78
79 /*
80 * Copyright (C) 2000 - 2026, Intel Corp.
81 * All rights reserved.
82 *
83 * Redistribution and use in source and binary forms, with or without
84 * modification, are permitted provided that the following conditions
85 * are met:
86 * 1. Redistributions of source code must retain the above copyright
87 * notice, this list of conditions, and the following disclaimer,
88 * without modification.
89 * 2. Redistributions in binary form must reproduce at minimum a disclaimer
90 * substantially similar to the "NO WARRANTY" disclaimer below
91 * ("Disclaimer") and any redistribution must be conditioned upon
92 * including a substantially similar Disclaimer requirement for further
93 * binary redistribution.
94 * 3. Neither the names of the above-listed copyright holders nor the names
95 * of any contributors may be used to endorse or promote products derived
96 * from this software without specific prior written permission.
97 *
98 * Alternatively, this software may be distributed under the terms of the
99 * GNU General Public License ("GPL") version 2 as published by the Free
100 * Software Foundation.
101 *
102 * NO WARRANTY
103 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
104 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
105 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
106 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
107 * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
108 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
109 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
110 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
111 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
112 * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
113 * POSSIBILITY OF SUCH DAMAGES.
114 */
115
116 #include "aslcompiler.h"
117
118 #define _COMPONENT DT_COMPILER
119 ACPI_MODULE_NAME ("dtparser")
120
121 void * AslLocalAllocate (unsigned int Size);
122
123 /* Bison/yacc configuration */
124
125 #undef alloca
126 #define alloca AslLocalAllocate
127
128 int DtParserlex (void);
129 int DtParserparse (void);
130 void DtParsererror (char const *msg);
131 extern char *DtParsertext;
132 extern DT_FIELD *AslGbl_CurrentField;
133
134 UINT64 DtParserResult; /* Expression return value */
135
136 /* Bison/yacc configuration */
137
138 #define yytname DtParsername
139 #define YYDEBUG 1 /* Enable debug output */
140 #define YYERROR_VERBOSE 1 /* Verbose error messages */
141 #define YYFLAG -32768
142
143 /* Define YYMALLOC/YYFREE to prevent redefinition errors */
144
145 #define YYMALLOC malloc
146 #define YYFREE free
147
148
149 /* Line 189 of yacc.c */
150 #line 259 "dtparser.tab.c"
151
152 /* Enabling traces. */
153 #ifndef YYDEBUG
154 # define YYDEBUG 0
155 #endif
156
157 /* Enabling verbose error messages. */
158 #ifdef YYERROR_VERBOSE
159 # undef YYERROR_VERBOSE
160 # define YYERROR_VERBOSE 1
161 #else
162 # define YYERROR_VERBOSE 0
163 #endif
164
165 /* Enabling the token table. */
166 #ifndef YYTOKEN_TABLE
167 # define YYTOKEN_TABLE 0
168 #endif
169
170
171 /* Tokens. */
172 #ifndef YYTOKENTYPE
173 # define YYTOKENTYPE
174 /* Put the tokens into the symbol table, so that GDB and other debuggers
175 know about them. */
176 enum yytokentype {
177 OP_EXP_EOF = 258,
178 OP_EXP_NEW_LINE = 259,
179 OP_EXP_NUMBER = 260,
180 OP_EXP_HEX_NUMBER = 261,
181 OP_EXP_DECIMAL_NUMBER = 262,
182 OP_EXP_LABEL = 263,
183 OP_EXP_PAREN_OPEN = 264,
184 OP_EXP_PAREN_CLOSE = 265,
185 OP_EXP_LOGICAL_OR = 266,
186 OP_EXP_LOGICAL_AND = 267,
187 OP_EXP_OR = 268,
188 OP_EXP_XOR = 269,
189 OP_EXP_AND = 270,
190 OP_EXP_NOT_EQUAL = 271,
191 OP_EXP_EQUAL = 272,
192 OP_EXP_LESS_EQUAL = 273,
193 OP_EXP_GREATER_EQUAL = 274,
194 OP_EXP_LESS = 275,
195 OP_EXP_GREATER = 276,
196 OP_EXP_SHIFT_LEFT = 277,
197 OP_EXP_SHIFT_RIGHT = 278,
198 OP_EXP_SUBTRACT = 279,
199 OP_EXP_ADD = 280,
200 OP_EXP_MODULO = 281,
201 OP_EXP_DIVIDE = 282,
202 OP_EXP_MULTIPLY = 283,
203 OP_EXP_LOGICAL_NOT = 284,
204 OP_EXP_ONES_COMPLIMENT = 285
205 };
206 #endif
207
208
209
210 #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
211 typedef union YYSTYPE
212 {
213
214 /* Line 214 of yacc.c */
215 #line 187 "C:\\Users\\sdumbre\\testclone\\source\\compiler\\dtparser.y"
216
217 UINT64 value;
218 UINT32 op;
219
220
221
222 /* Line 214 of yacc.c */
223 #line 332 "dtparser.tab.c"
224 } YYSTYPE;
225 # define YYSTYPE_IS_TRIVIAL 1
226 # define yystype YYSTYPE /* obsolescent; will be withdrawn */
227 # define YYSTYPE_IS_DECLARED 1
228 #endif
229
230
231 /* Copy the second part of user declarations. */
232
233
234 /* Line 264 of yacc.c */
235 #line 344 "dtparser.tab.c"
236
237 #ifdef short
238 # undef short
239 #endif
240
241 #ifdef YYTYPE_UINT8
242 typedef YYTYPE_UINT8 yytype_uint8;
243 #else
244 typedef unsigned char yytype_uint8;
245 #endif
246
247 #ifdef YYTYPE_INT8
248 typedef YYTYPE_INT8 yytype_int8;
249 #elif (defined __STDC__ || defined __C99__FUNC__ \
250 || defined __cplusplus || defined _MSC_VER)
251 typedef signed char yytype_int8;
252 #else
253 typedef short int yytype_int8;
254 #endif
255
256 #ifdef YYTYPE_UINT16
257 typedef YYTYPE_UINT16 yytype_uint16;
258 #else
259 typedef unsigned short int yytype_uint16;
260 #endif
261
262 #ifdef YYTYPE_INT16
263 typedef YYTYPE_INT16 yytype_int16;
264 #else
265 typedef short int yytype_int16;
266 #endif
267
268 #ifndef YYSIZE_T
269 # ifdef __SIZE_TYPE__
270 # define YYSIZE_T __SIZE_TYPE__
271 # elif defined size_t
272 # define YYSIZE_T size_t
273 # elif ! defined YYSIZE_T && (defined __STDC__ || defined __C99__FUNC__ \
274 || defined __cplusplus || defined _MSC_VER)
275 # include <stddef.h> /* INFRINGES ON USER NAME SPACE */
276 # define YYSIZE_T size_t
277 # else
278 # define YYSIZE_T unsigned int
279 # endif
280 #endif
281
282 #define YYSIZE_MAXIMUM ((YYSIZE_T) -1)
283
284 #ifndef YY_
285 # if YYENABLE_NLS
286 # if ENABLE_NLS
287 # include <libintl.h> /* INFRINGES ON USER NAME SPACE */
288 # define YY_(msgid) dgettext ("bison-runtime", msgid)
289 # endif
290 # endif
291 # ifndef YY_
292 # define YY_(msgid) msgid
293 # endif
294 #endif
295
296 /* Suppress unused-variable warnings by "using" E. */
297 #if ! defined lint || defined __GNUC__
298 # define YYUSE(e) ((void) (e))
299 #else
300 # define YYUSE(e) /* empty */
301 #endif
302
303 /* Identity function, used to suppress warnings about constant conditions. */
304 #ifndef lint
305 # define YYID(n) (n)
306 #else
307 #if (defined __STDC__ || defined __C99__FUNC__ \
308 || defined __cplusplus || defined _MSC_VER)
309 static int
310 YYID (int yyi)
311 #else
312 static int
313 YYID (yyi)
314 int yyi;
315 #endif
316 {
317 return yyi;
318 }
319 #endif
320
321 #if ! defined yyoverflow || YYERROR_VERBOSE
322
323 /* The parser invokes alloca or malloc; define the necessary symbols. */
324
325 # ifdef YYSTACK_USE_ALLOCA
326 # if YYSTACK_USE_ALLOCA
327 # ifdef __GNUC__
328 # define YYSTACK_ALLOC __builtin_alloca
329 # elif defined __BUILTIN_VA_ARG_INCR
330 # include <alloca.h> /* INFRINGES ON USER NAME SPACE */
331 # elif defined _AIX
332 # define YYSTACK_ALLOC __alloca
333 # elif defined _MSC_VER
334 # include <malloc.h> /* INFRINGES ON USER NAME SPACE */
335 # define alloca _alloca
336 # else
337 # define YYSTACK_ALLOC alloca
338 # if ! defined _ALLOCA_H && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \
339 || defined __cplusplus || defined _MSC_VER)
340 # include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
341 # ifndef _STDLIB_H
342 # define _STDLIB_H 1
343 # endif
344 # endif
345 # endif
346 # endif
347 # endif
348
349 # ifdef YYSTACK_ALLOC
350 /* Pacify GCC's `empty if-body' warning. */
351 # define YYSTACK_FREE(Ptr) do { /* empty */; } while (YYID (0))
352 # ifndef YYSTACK_ALLOC_MAXIMUM
353 /* The OS might guarantee only one guard page at the bottom of the stack,
354 and a page size can be as small as 4096 bytes. So we cannot safely
355 invoke alloca (N) if N exceeds 4096. Use a slightly smaller number
356 to allow for a few compiler-allocated temporary stack slots. */
357 # define YYSTACK_ALLOC_MAXIMUM 4032 /* reasonable circa 2006 */
358 # endif
359 # else
360 # define YYSTACK_ALLOC YYMALLOC
361 # define YYSTACK_FREE YYFREE
362 # ifndef YYSTACK_ALLOC_MAXIMUM
363 # define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM
364 # endif
365 # if (defined __cplusplus && ! defined _STDLIB_H \
366 && ! ((defined YYMALLOC || defined malloc) \
367 && (defined YYFREE || defined free)))
368 # include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
369 # ifndef _STDLIB_H
370 # define _STDLIB_H 1
371 # endif
372 # endif
373 # ifndef YYMALLOC
374 # define YYMALLOC malloc
375 # if ! defined malloc && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \
376 || defined __cplusplus || defined _MSC_VER)
377 void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */
378 # endif
379 # endif
380 # ifndef YYFREE
381 # define YYFREE free
382 # if ! defined free && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \
383 || defined __cplusplus || defined _MSC_VER)
384 void free (void *); /* INFRINGES ON USER NAME SPACE */
385 # endif
386 # endif
387 # endif
388 #endif /* ! defined yyoverflow || YYERROR_VERBOSE */
389
390
391 #if (! defined yyoverflow \
392 && (! defined __cplusplus \
393 || (defined YYSTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL)))
394
395 /* A type that is properly aligned for any stack member. */
396 union yyalloc
397 {
398 yytype_int16 yyss_alloc;
399 YYSTYPE yyvs_alloc;
400 };
401
402 /* The size of the maximum gap between one aligned stack and the next. */
403 # define YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1)
404
405 /* The size of an array large to enough to hold all stacks, each with
406 N elements. */
407 # define YYSTACK_BYTES(N) \
408 ((N) * (sizeof (yytype_int16) + sizeof (YYSTYPE)) \
409 + YYSTACK_GAP_MAXIMUM)
410
411 /* Copy COUNT objects from FROM to TO. The source and destination do
412 not overlap. */
413 # ifndef YYCOPY
414 # if defined __GNUC__ && 1 < __GNUC__
415 # define YYCOPY(To, From, Count) \
416 __builtin_memcpy (To, From, (Count) * sizeof (*(From)))
417 # else
418 # define YYCOPY(To, From, Count) \
419 do \
420 { \
421 YYSIZE_T yyi; \
422 for (yyi = 0; yyi < (Count); yyi++) \
423 (To)[yyi] = (From)[yyi]; \
424 } \
425 while (YYID (0))
426 # endif
427 # endif
428
429 /* Relocate STACK from its old location to the new one. The
430 local variables YYSIZE and YYSTACKSIZE give the old and new number of
431 elements in the stack, and YYPTR gives the new location of the
432 stack. Advance YYPTR to a properly aligned location for the next
433 stack. */
434 # define YYSTACK_RELOCATE(Stack_alloc, Stack) \
435 do \
436 { \
437 YYSIZE_T yynewbytes; \
438 YYCOPY (&yyptr->Stack_alloc, Stack, yysize); \
439 Stack = &yyptr->Stack_alloc; \
440 yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \
441 yyptr += yynewbytes / sizeof (*yyptr); \
442 } \
443 while (YYID (0))
444
445 #endif
446
447 /* YYFINAL -- State number of the termination state. */
448 #define YYFINAL 13
449 /* YYLAST -- Last index in YYTABLE. */
450 #define YYLAST 170
451
452 /* YYNTOKENS -- Number of terminals. */
453 #define YYNTOKENS 31
454 /* YYNNTS -- Number of nonterminals. */
455 #define YYNNTS 3
456 /* YYNRULES -- Number of rules. */
457 #define YYNRULES 28
458 /* YYNRULES -- Number of states. */
459 #define YYNSTATES 53
460
461 /* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX. */
462 #define YYUNDEFTOK 2
463 #define YYMAXUTOK 285
464
465 #define YYTRANSLATE(YYX) \
466 ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)
467
468 /* YYTRANSLATE[YYLEX] -- Bison symbol number corresponding to YYLEX. */
469 static const yytype_uint8 yytranslate[] =
470 {
471 0, 2, 2, 2, 2, 2, 2, 2, 2, 2,
472 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
473 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
474 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
475 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
476 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
477 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
478 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
479 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
480 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
481 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
482 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
483 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
484 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
485 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
486 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
487 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
488 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
489 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
490 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
491 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
492 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
493 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
494 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
495 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
496 2, 2, 2, 2, 2, 2, 1, 2, 3, 4,
497 5, 6, 7, 8, 9, 10, 11, 12, 13, 14,
498 15, 16, 17, 18, 19, 20, 21, 22, 23, 24,
499 25, 26, 27, 28, 29, 30
500 };
501
502 #if YYDEBUG
503 /* YYPRHS[YYN] -- Index of the first RHS symbol of rule number YYN in
504 YYRHS. */
505 static const yytype_uint8 yyprhs[] =
506 {
507 0, 0, 3, 6, 9, 12, 15, 19, 23, 27,
508 31, 35, 39, 43, 47, 51, 55, 59, 63, 67,
509 71, 75, 79, 83, 87, 91, 93, 95, 97
510 };
511
512 /* YYRHS -- A `-1'-separated list of the rules' RHS. */
513 static const yytype_int8 yyrhs[] =
514 {
515 32, 0, -1, 33, 4, -1, 33, 3, -1, 29,
516 33, -1, 30, 33, -1, 33, 28, 33, -1, 33,
517 27, 33, -1, 33, 26, 33, -1, 33, 25, 33,
518 -1, 33, 24, 33, -1, 33, 23, 33, -1, 33,
519 22, 33, -1, 33, 21, 33, -1, 33, 20, 33,
520 -1, 33, 19, 33, -1, 33, 18, 33, -1, 33,
521 17, 33, -1, 33, 16, 33, -1, 33, 15, 33,
522 -1, 33, 14, 33, -1, 33, 13, 33, -1, 33,
523 12, 33, -1, 33, 11, 33, -1, 9, 33, 10,
524 -1, 8, -1, 5, -1, 6, -1, 7, -1
525 };
526
527 /* YYRLINE[YYN] -- source line where rule number YYN was defined. */
528 static const yytype_uint16 yyrline[] =
529 {
530 0, 236, 236, 237, 244, 245, 249, 250, 251, 252,
531 253, 254, 255, 256, 257, 258, 259, 260, 261, 262,
532 263, 264, 265, 266, 270, 275, 286, 290, 294
533 };
534 #endif
535
536 #if YYDEBUG || YYERROR_VERBOSE || YYTOKEN_TABLE
537 /* YYTNAME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM.
538 First, the terminals, then, starting at YYNTOKENS, nonterminals. */
539 static const char *const yytname[] =
540 {
541 "$end", "error", "$undefined", "OP_EXP_EOF", "OP_EXP_NEW_LINE",
542 "OP_EXP_NUMBER", "OP_EXP_HEX_NUMBER", "OP_EXP_DECIMAL_NUMBER",
543 "OP_EXP_LABEL", "OP_EXP_PAREN_OPEN", "OP_EXP_PAREN_CLOSE",
544 "OP_EXP_LOGICAL_OR", "OP_EXP_LOGICAL_AND", "OP_EXP_OR", "OP_EXP_XOR",
545 "OP_EXP_AND", "OP_EXP_NOT_EQUAL", "OP_EXP_EQUAL", "OP_EXP_LESS_EQUAL",
546 "OP_EXP_GREATER_EQUAL", "OP_EXP_LESS", "OP_EXP_GREATER",
547 "OP_EXP_SHIFT_LEFT", "OP_EXP_SHIFT_RIGHT", "OP_EXP_SUBTRACT",
548 "OP_EXP_ADD", "OP_EXP_MODULO", "OP_EXP_DIVIDE", "OP_EXP_MULTIPLY",
549 "OP_EXP_LOGICAL_NOT", "OP_EXP_ONES_COMPLIMENT", "$accept", "Value",
550 "Expression", 0
551 };
552 #endif
553
554 # ifdef YYPRINT
555 /* YYTOKNUM[YYLEX-NUM] -- Internal token number corresponding to
556 token YYLEX-NUM. */
557 static const yytype_uint16 yytoknum[] =
558 {
559 0, 256, 257, 258, 259, 260, 261, 262, 263, 264,
560 265, 266, 267, 268, 269, 270, 271, 272, 273, 274,
561 275, 276, 277, 278, 279, 280, 281, 282, 283, 284,
562 285
563 };
564 # endif
565
566 /* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */
567 static const yytype_uint8 yyr1[] =
568 {
569 0, 31, 32, 32, 33, 33, 33, 33, 33, 33,
570 33, 33, 33, 33, 33, 33, 33, 33, 33, 33,
571 33, 33, 33, 33, 33, 33, 33, 33, 33
572 };
573
574 /* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN. */
575 static const yytype_uint8 yyr2[] =
576 {
577 0, 2, 2, 2, 2, 2, 3, 3, 3, 3,
578 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
579 3, 3, 3, 3, 3, 1, 1, 1, 1
580 };
581
582 /* YYDEFACT[STATE-NAME] -- Default rule to reduce with in state
583 STATE-NUM when YYTABLE doesn't specify something else to do. Zero
584 means the default is an error. */
585 static const yytype_uint8 yydefact[] =
586 {
587 0, 26, 27, 28, 25, 0, 0, 0, 0, 0,
588 0, 4, 5, 1, 3, 2, 0, 0, 0, 0,
589 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
590 0, 0, 0, 0, 24, 23, 22, 21, 20, 19,
591 18, 17, 16, 15, 14, 13, 12, 11, 10, 9,
592 8, 7, 6
593 };
594
595 /* YYDEFGOTO[NTERM-NUM]. */
596 static const yytype_int8 yydefgoto[] =
597 {
598 -1, 8, 9
599 };
600
601 /* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing
602 STATE-NUM. */
603 #define YYPACT_NINF -20
604 static const yytype_int16 yypact[] =
605 {
606 27, -20, -20, -20, -20, 27, 27, 27, 10, 26,
607 48, -20, -20, -20, -20, -20, 27, 27, 27, 27,
608 27, 27, 27, 27, 27, 27, 27, 27, 27, 27,
609 27, 27, 27, 27, -20, 65, 81, 96, 110, 123,
610 134, 134, -19, -19, -19, -19, 139, 139, 142, 142,
611 -20, -20, -20
612 };
613
614 /* YYPGOTO[NTERM-NUM]. */
615 static const yytype_int8 yypgoto[] =
616 {
617 -20, -20, -5
618 };
619
620 /* YYTABLE[YYPACT[STATE-NUM]]. What to do in state STATE-NUM. If
621 positive, shift that token. If negative, reduce the rule which
622 number is the opposite. If zero, do what YYDEFACT says.
623 If YYTABLE_NINF, syntax error. */
624 #define YYTABLE_NINF -1
625 static const yytype_uint8 yytable[] =
626 {
627 10, 11, 12, 27, 28, 29, 30, 31, 32, 33,
628 13, 35, 36, 37, 38, 39, 40, 41, 42, 43,
629 44, 45, 46, 47, 48, 49, 50, 51, 52, 14,
630 15, 0, 1, 2, 3, 4, 5, 16, 17, 18,
631 19, 20, 21, 22, 23, 24, 25, 26, 27, 28,
632 29, 30, 31, 32, 33, 0, 6, 7, 34, 16,
633 17, 18, 19, 20, 21, 22, 23, 24, 25, 26,
634 27, 28, 29, 30, 31, 32, 33, 17, 18, 19,
635 20, 21, 22, 23, 24, 25, 26, 27, 28, 29,
636 30, 31, 32, 33, 18, 19, 20, 21, 22, 23,
637 24, 25, 26, 27, 28, 29, 30, 31, 32, 33,
638 19, 20, 21, 22, 23, 24, 25, 26, 27, 28,
639 29, 30, 31, 32, 33, 20, 21, 22, 23, 24,
640 25, 26, 27, 28, 29, 30, 31, 32, 33, 21,
641 22, 23, 24, 25, 26, 27, 28, 29, 30, 31,
642 32, 33, 23, 24, 25, 26, 27, 28, 29, 30,
643 31, 32, 33, 29, 30, 31, 32, 33, 31, 32,
644 33
645 };
646
647 static const yytype_int8 yycheck[] =
648 {
649 5, 6, 7, 22, 23, 24, 25, 26, 27, 28,
650 0, 16, 17, 18, 19, 20, 21, 22, 23, 24,
651 25, 26, 27, 28, 29, 30, 31, 32, 33, 3,
652 4, -1, 5, 6, 7, 8, 9, 11, 12, 13,
653 14, 15, 16, 17, 18, 19, 20, 21, 22, 23,
654 24, 25, 26, 27, 28, -1, 29, 30, 10, 11,
655 12, 13, 14, 15, 16, 17, 18, 19, 20, 21,
656 22, 23, 24, 25, 26, 27, 28, 12, 13, 14,
657 15, 16, 17, 18, 19, 20, 21, 22, 23, 24,
658 25, 26, 27, 28, 13, 14, 15, 16, 17, 18,
659 19, 20, 21, 22, 23, 24, 25, 26, 27, 28,
660 14, 15, 16, 17, 18, 19, 20, 21, 22, 23,
661 24, 25, 26, 27, 28, 15, 16, 17, 18, 19,
662 20, 21, 22, 23, 24, 25, 26, 27, 28, 16,
663 17, 18, 19, 20, 21, 22, 23, 24, 25, 26,
664 27, 28, 18, 19, 20, 21, 22, 23, 24, 25,
665 26, 27, 28, 24, 25, 26, 27, 28, 26, 27,
666 28
667 };
668
669 /* YYSTOS[STATE-NUM] -- The (internal number of the) accessing
670 symbol of state STATE-NUM. */
671 static const yytype_uint8 yystos[] =
672 {
673 0, 5, 6, 7, 8, 9, 29, 30, 32, 33,
674 33, 33, 33, 0, 3, 4, 11, 12, 13, 14,
675 15, 16, 17, 18, 19, 20, 21, 22, 23, 24,
676 25, 26, 27, 28, 10, 33, 33, 33, 33, 33,
677 33, 33, 33, 33, 33, 33, 33, 33, 33, 33,
678 33, 33, 33
679 };
680
681 #define yyerrok (yyerrstatus = 0)
682 #define yyclearin (yychar = YYEMPTY)
683 #define YYEMPTY (-2)
684 #define YYEOF 0
685
686 #define YYACCEPT goto yyacceptlab
687 #define YYABORT goto yyabortlab
688 #define YYERROR goto yyerrorlab
689
690
691 /* Like YYERROR except do call yyerror. This remains here temporarily
692 to ease the transition to the new meaning of YYERROR, for GCC.
693 Once GCC version 2 has supplanted version 1, this can go. */
694
695 #define YYFAIL goto yyerrlab
696
697 #define YYRECOVERING() (!!yyerrstatus)
698
699 #define YYBACKUP(Token, Value) \
700 do \
701 if (yychar == YYEMPTY && yylen == 1) \
702 { \
703 yychar = (Token); \
704 yylval = (Value); \
705 yytoken = YYTRANSLATE (yychar); \
706 YYPOPSTACK (1); \
707 goto yybackup; \
708 } \
709 else \
710 { \
711 yyerror (YY_("syntax error: cannot back up")); \
712 YYERROR; \
713 } \
714 while (YYID (0))
715
716
717 #define YYTERROR 1
718 #define YYERRCODE 256
719
720
721 /* YYLLOC_DEFAULT -- Set CURRENT to span from RHS[1] to RHS[N].
722 If N is 0, then set CURRENT to the empty location which ends
723 the previous symbol: RHS[0] (always defined). */
724
725 #define YYRHSLOC(Rhs, K) ((Rhs)[K])
726 #ifndef YYLLOC_DEFAULT
727 # define YYLLOC_DEFAULT(Current, Rhs, N) \
728 do \
729 if (YYID (N)) \
730 { \
731 (Current).first_line = YYRHSLOC (Rhs, 1).first_line; \
732 (Current).first_column = YYRHSLOC (Rhs, 1).first_column; \
733 (Current).last_line = YYRHSLOC (Rhs, N).last_line; \
734 (Current).last_column = YYRHSLOC (Rhs, N).last_column; \
735 } \
736 else \
737 { \
738 (Current).first_line = (Current).last_line = \
739 YYRHSLOC (Rhs, 0).last_line; \
740 (Current).first_column = (Current).last_column = \
741 YYRHSLOC (Rhs, 0).last_column; \
742 } \
743 while (YYID (0))
744 #endif
745
746
747 /* YY_LOCATION_PRINT -- Print the location on the stream.
748 This macro was not mandated originally: define only if we know
749 we won't break user code: when these are the locations we know. */
750
751 #ifndef YY_LOCATION_PRINT
752 # if YYLTYPE_IS_TRIVIAL
753 # define YY_LOCATION_PRINT(File, Loc) \
754 fprintf (File, "%d.%d-%d.%d", \
755 (Loc).first_line, (Loc).first_column, \
756 (Loc).last_line, (Loc).last_column)
757 # else
758 # define YY_LOCATION_PRINT(File, Loc) ((void) 0)
759 # endif
760 #endif
761
762
763 /* YYLEX -- calling `yylex' with the right arguments. */
764
765 #ifdef YYLEX_PARAM
766 # define YYLEX yylex (YYLEX_PARAM)
767 #else
768 # define YYLEX yylex ()
769 #endif
770
771 /* Enable debugging if requested. */
772 #if YYDEBUG
773
774 # ifndef YYFPRINTF
775 # include <stdio.h> /* INFRINGES ON USER NAME SPACE */
776 # define YYFPRINTF fprintf
777 # endif
778
779 # define YYDPRINTF(Args) \
780 do { \
781 if (yydebug) \
782 YYFPRINTF Args; \
783 } while (YYID (0))
784
785 # define YY_SYMBOL_PRINT(Title, Type, Value, Location) \
786 do { \
787 if (yydebug) \
788 { \
789 YYFPRINTF (stderr, "%s ", Title); \
790 yy_symbol_print (stderr, \
791 Type, Value); \
792 YYFPRINTF (stderr, "\n"); \
793 } \
794 } while (YYID (0))
795
796
797 /*--------------------------------.
798 | Print this symbol on YYOUTPUT. |
799 `--------------------------------*/
800
801 /*ARGSUSED*/
802 #if (defined __STDC__ || defined __C99__FUNC__ \
803 || defined __cplusplus || defined _MSC_VER)
804 static void
805 yy_symbol_value_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep)
806 #else
807 static void
808 yy_symbol_value_print (yyoutput, yytype, yyvaluep)
809 FILE *yyoutput;
810 int yytype;
811 YYSTYPE const * const yyvaluep;
812 #endif
813 {
814 if (!yyvaluep)
815 return;
816 # ifdef YYPRINT
817 if (yytype < YYNTOKENS)
818 YYPRINT (yyoutput, yytoknum[yytype], *yyvaluep);
819 # else
820 YYUSE (yyoutput);
821 # endif
822 switch (yytype)
823 {
824 default:
825 break;
826 }
827 }
828
829
830 /*--------------------------------.
831 | Print this symbol on YYOUTPUT. |
832 `--------------------------------*/
833
834 #if (defined __STDC__ || defined __C99__FUNC__ \
835 || defined __cplusplus || defined _MSC_VER)
836 static void
837 yy_symbol_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep)
838 #else
839 static void
840 yy_symbol_print (yyoutput, yytype, yyvaluep)
841 FILE *yyoutput;
842 int yytype;
843 YYSTYPE const * const yyvaluep;
844 #endif
845 {
846 if (yytype < YYNTOKENS)
847 YYFPRINTF (yyoutput, "token %s (", yytname[yytype]);
848 else
849 YYFPRINTF (yyoutput, "nterm %s (", yytname[yytype]);
850
851 yy_symbol_value_print (yyoutput, yytype, yyvaluep);
852 YYFPRINTF (yyoutput, ")");
853 }
854
855 /*------------------------------------------------------------------.
856 | yy_stack_print -- Print the state stack from its BOTTOM up to its |
857 | TOP (included). |
858 `------------------------------------------------------------------*/
859
860 #if (defined __STDC__ || defined __C99__FUNC__ \
861 || defined __cplusplus || defined _MSC_VER)
862 static void
863 yy_stack_print (yytype_int16 *yybottom, yytype_int16 *yytop)
864 #else
865 static void
866 yy_stack_print (yybottom, yytop)
867 yytype_int16 *yybottom;
868 yytype_int16 *yytop;
869 #endif
870 {
871 YYFPRINTF (stderr, "Stack now");
872 for (; yybottom <= yytop; yybottom++)
873 {
874 int yybot = *yybottom;
875 YYFPRINTF (stderr, " %d", yybot);
876 }
877 YYFPRINTF (stderr, "\n");
878 }
879
880 # define YY_STACK_PRINT(Bottom, Top) \
881 do { \
882 if (yydebug) \
883 yy_stack_print ((Bottom), (Top)); \
884 } while (YYID (0))
885
886
887 /*------------------------------------------------.
888 | Report that the YYRULE is going to be reduced. |
889 `------------------------------------------------*/
890
891 #if (defined __STDC__ || defined __C99__FUNC__ \
892 || defined __cplusplus || defined _MSC_VER)
893 static void
894 yy_reduce_print (YYSTYPE *yyvsp, int yyrule)
895 #else
896 static void
897 yy_reduce_print (yyvsp, yyrule)
898 YYSTYPE *yyvsp;
899 int yyrule;
900 #endif
901 {
902 int yynrhs = yyr2[yyrule];
903 int yyi;
904 unsigned long int yylno = yyrline[yyrule];
905 YYFPRINTF (stderr, "Reducing stack by rule %d (line %lu):\n",
906 yyrule - 1, yylno);
907 /* The symbols being reduced. */
908 for (yyi = 0; yyi < yynrhs; yyi++)
909 {
910 YYFPRINTF (stderr, " $%d = ", yyi + 1);
911 yy_symbol_print (stderr, yyrhs[yyprhs[yyrule] + yyi],
912 &(yyvsp[(yyi + 1) - (yynrhs)])
913 );
914 YYFPRINTF (stderr, "\n");
915 }
916 }
917
918 # define YY_REDUCE_PRINT(Rule) \
919 do { \
920 if (yydebug) \
921 yy_reduce_print (yyvsp, Rule); \
922 } while (YYID (0))
923
924 /* Nonzero means print parse trace. It is left uninitialized so that
925 multiple parsers can coexist. */
926 int yydebug;
927 #else /* !YYDEBUG */
928 # define YYDPRINTF(Args)
929 # define YY_SYMBOL_PRINT(Title, Type, Value, Location)
930 # define YY_STACK_PRINT(Bottom, Top)
931 # define YY_REDUCE_PRINT(Rule)
932 #endif /* !YYDEBUG */
933
934
935 /* YYINITDEPTH -- initial size of the parser's stacks. */
936 #ifndef YYINITDEPTH
937 # define YYINITDEPTH 200
938 #endif
939
940 /* YYMAXDEPTH -- maximum size the stacks can grow to (effective only
941 if the built-in stack extension method is used).
942
943 Do not make this value too large; the results are undefined if
944 YYSTACK_ALLOC_MAXIMUM < YYSTACK_BYTES (YYMAXDEPTH)
945 evaluated with infinite-precision integer arithmetic. */
946
947 #ifndef YYMAXDEPTH
948 # define YYMAXDEPTH 10000
949 #endif
950
951
952
953 #if YYERROR_VERBOSE
954
955 # ifndef yystrlen
956 # if defined __GLIBC__ && defined _STRING_H
957 # define yystrlen strlen
958 # else
959 /* Return the length of YYSTR. */
960 #if (defined __STDC__ || defined __C99__FUNC__ \
961 || defined __cplusplus || defined _MSC_VER)
962 static YYSIZE_T
963 yystrlen (const char *yystr)
964 #else
965 static YYSIZE_T
966 yystrlen (yystr)
967 const char *yystr;
968 #endif
969 {
970 YYSIZE_T yylen;
971 for (yylen = 0; yystr[yylen]; yylen++)
972 continue;
973 return yylen;
974 }
975 # endif
976 # endif
977
978 # ifndef yystpcpy
979 # if defined __GLIBC__ && defined _STRING_H && defined _GNU_SOURCE
980 # define yystpcpy stpcpy
981 # else
982 /* Copy YYSRC to YYDEST, returning the address of the terminating '\0' in
983 YYDEST. */
984 #if (defined __STDC__ || defined __C99__FUNC__ \
985 || defined __cplusplus || defined _MSC_VER)
986 static char *
987 yystpcpy (char *yydest, const char *yysrc)
988 #else
989 static char *
990 yystpcpy (yydest, yysrc)
991 char *yydest;
992 const char *yysrc;
993 #endif
994 {
995 char *yyd = yydest;
996 const char *yys = yysrc;
997
998 while ((*yyd++ = *yys++) != '\0')
999 continue;
1000
1001 return yyd - 1;
1002 }
1003 # endif
1004 # endif
1005
1006 # ifndef yytnamerr
1007 /* Copy to YYRES the contents of YYSTR after stripping away unnecessary
1008 quotes and backslashes, so that it's suitable for yyerror. The
1009 heuristic is that double-quoting is unnecessary unless the string
1010 contains an apostrophe, a comma, or backslash (other than
1011 backslash-backslash). YYSTR is taken from yytname. If YYRES is
1012 null, do not copy; instead, return the length of what the result
1013 would have been. */
1014 static YYSIZE_T
1015 yytnamerr (char *yyres, const char *yystr)
1016 {
1017 if (*yystr == '"')
1018 {
1019 YYSIZE_T yyn = 0;
1020 char const *yyp = yystr;
1021
1022 for (;;)
1023 switch (*++yyp)
1024 {
1025 case '\'':
1026 case ',':
1027 goto do_not_strip_quotes;
1028
1029 case '\\':
1030 if (*++yyp != '\\')
1031 goto do_not_strip_quotes;
1032 /* Fall through. */
1033 default:
1034 if (yyres)
1035 yyres[yyn] = *yyp;
1036 yyn++;
1037 break;
1038
1039 case '"':
1040 if (yyres)
1041 yyres[yyn] = '\0';
1042 return yyn;
1043 }
1044 do_not_strip_quotes: ;
1045 }
1046
1047 if (! yyres)
1048 return yystrlen (yystr);
1049
1050 return yystpcpy (yyres, yystr) - yyres;
1051 }
1052 # endif
1053
1054 /* Copy into YYRESULT an error message about the unexpected token
1055 YYCHAR while in state YYSTATE. Return the number of bytes copied,
1056 including the terminating null byte. If YYRESULT is null, do not
1057 copy anything; just return the number of bytes that would be
1058 copied. As a special case, return 0 if an ordinary "syntax error"
1059 message will do. Return YYSIZE_MAXIMUM if overflow occurs during
1060 size calculation. */
1061 static YYSIZE_T
1062 yysyntax_error (char *yyresult, int yystate, int yychar)
1063 {
1064 int yyn = yypact[yystate];
1065
1066 if (! (YYPACT_NINF < yyn && yyn <= YYLAST))
1067 return 0;
1068 else
1069 {
1070 int yytype = YYTRANSLATE (yychar);
1071 YYSIZE_T yysize0 = yytnamerr (0, yytname[yytype]);
1072 YYSIZE_T yysize = yysize0;
1073 YYSIZE_T yysize1;
1074 int yysize_overflow = 0;
1075 enum { YYERROR_VERBOSE_ARGS_MAXIMUM = 5 };
1076 char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM];
1077 int yyx;
1078
1079 # if 0
1080 /* This is so xgettext sees the translatable formats that are
1081 constructed on the fly. */
1082 YY_("syntax error, unexpected %s");
1083 YY_("syntax error, unexpected %s, expecting %s");
1084 YY_("syntax error, unexpected %s, expecting %s or %s");
1085 YY_("syntax error, unexpected %s, expecting %s or %s or %s");
1086 YY_("syntax error, unexpected %s, expecting %s or %s or %s or %s");
1087 # endif
1088 char *yyfmt;
1089 char const *yyf;
1090 static char const yyunexpected[] = "syntax error, unexpected %s";
1091 static char const yyexpecting[] = ", expecting %s";
1092 static char const yyor[] = " or %s";
1093 char yyformat[sizeof yyunexpected
1094 + sizeof yyexpecting - 1
1095 + ((YYERROR_VERBOSE_ARGS_MAXIMUM - 2)
1096 * (sizeof yyor - 1))];
1097 char const *yyprefix = yyexpecting;
1098
1099 /* Start YYX at -YYN if negative to avoid negative indexes in
1100 YYCHECK. */
1101 int yyxbegin = yyn < 0 ? -yyn : 0;
1102
1103 /* Stay within bounds of both yycheck and yytname. */
1104 int yychecklim = YYLAST - yyn + 1;
1105 int yyxend = yychecklim < YYNTOKENS ? yychecklim : YYNTOKENS;
1106 int yycount = 1;
1107
1108 yyarg[0] = yytname[yytype];
1109 yyfmt = yystpcpy (yyformat, yyunexpected);
1110
1111 for (yyx = yyxbegin; yyx < yyxend; ++yyx)
1112 if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR)
1113 {
1114 if (yycount == YYERROR_VERBOSE_ARGS_MAXIMUM)
1115 {
1116 yycount = 1;
1117 yysize = yysize0;
1118 yyformat[sizeof yyunexpected - 1] = '\0';
1119 break;
1120 }
1121 yyarg[yycount++] = yytname[yyx];
1122 yysize1 = yysize + yytnamerr (0, yytname[yyx]);
1123 yysize_overflow |= (yysize1 < yysize);
1124 yysize = yysize1;
1125 yyfmt = yystpcpy (yyfmt, yyprefix);
1126 yyprefix = yyor;
1127 }
1128
1129 yyf = YY_(yyformat);
1130 yysize1 = yysize + yystrlen (yyf);
1131 yysize_overflow |= (yysize1 < yysize);
1132 yysize = yysize1;
1133
1134 if (yysize_overflow)
1135 return YYSIZE_MAXIMUM;
1136
1137 if (yyresult)
1138 {
1139 /* Avoid sprintf, as that infringes on the user's name space.
1140 Don't have undefined behavior even if the translation
1141 produced a string with the wrong number of "%s"s. */
1142 char *yyp = yyresult;
1143 int yyi = 0;
1144 while ((*yyp = *yyf) != '\0')
1145 {
1146 if (*yyp == '%' && yyf[1] == 's' && yyi < yycount)
1147 {
1148 yyp += yytnamerr (yyp, yyarg[yyi++]);
1149 yyf += 2;
1150 }
1151 else
1152 {
1153 yyp++;
1154 yyf++;
1155 }
1156 }
1157 }
1158 return yysize;
1159 }
1160 }
1161 #endif /* YYERROR_VERBOSE */
1162
1163
1164 /*-----------------------------------------------.
1165 | Release the memory associated to this symbol. |
1166 `-----------------------------------------------*/
1167
1168 /*ARGSUSED*/
1169 #if (defined __STDC__ || defined __C99__FUNC__ \
1170 || defined __cplusplus || defined _MSC_VER)
1171 static void
1172 yydestruct (const char *yymsg, int yytype, YYSTYPE *yyvaluep)
1173 #else
1174 static void
1175 yydestruct (yymsg, yytype, yyvaluep)
1176 const char *yymsg;
1177 int yytype;
1178 YYSTYPE *yyvaluep;
1179 #endif
1180 {
1181 YYUSE (yyvaluep);
1182
1183 if (!yymsg)
1184 yymsg = "Deleting";
1185 YY_SYMBOL_PRINT (yymsg, yytype, yyvaluep, yylocationp);
1186
1187 switch (yytype)
1188 {
1189
1190 default:
1191 break;
1192 }
1193 }
1194
1195 /* Prevent warnings from -Wmissing-prototypes. */
1196 #ifdef YYPARSE_PARAM
1197 #if defined __STDC__ || defined __cplusplus
1198 int yyparse (void *YYPARSE_PARAM);
1199 #else
1200 int yyparse ();
1201 #endif
1202 #else /* ! YYPARSE_PARAM */
1203 #if defined __STDC__ || defined __cplusplus
1204 int yyparse (void);
1205 #else
1206 int yyparse ();
1207 #endif
1208 #endif /* ! YYPARSE_PARAM */
1209
1210
1211 /* The lookahead symbol. */
1212 int yychar;
1213
1214 /* The semantic value of the lookahead symbol. */
1215 YYSTYPE yylval;
1216
1217 /* Number of syntax errors so far. */
1218 int yynerrs;
1219
1220
1221
1222 /*-------------------------.
1223 | yyparse or yypush_parse. |
1224 `-------------------------*/
1225
1226 #ifdef YYPARSE_PARAM
1227 #if (defined __STDC__ || defined __C99__FUNC__ \
1228 || defined __cplusplus || defined _MSC_VER)
1229 int
1230 yyparse (void *YYPARSE_PARAM)
1231 #else
1232 int
1233 yyparse (YYPARSE_PARAM)
1234 void *YYPARSE_PARAM;
1235 #endif
1236 #else /* ! YYPARSE_PARAM */
1237 #if (defined __STDC__ || defined __C99__FUNC__ \
1238 || defined __cplusplus || defined _MSC_VER)
1239 int
1240 yyparse (void)
1241 #else
1242 int
1243 yyparse ()
1244
1245 #endif
1246 #endif
1247 {
1248
1249
1250 int yystate;
1251 /* Number of tokens to shift before error messages enabled. */
1252 int yyerrstatus;
1253
1254 /* The stacks and their tools:
1255 `yyss': related to states.
1256 `yyvs': related to semantic values.
1257
1258 Refer to the stacks thru separate pointers, to allow yyoverflow
1259 to reallocate them elsewhere. */
1260
1261 /* The state stack. */
1262 yytype_int16 yyssa[YYINITDEPTH];
1263 yytype_int16 *yyss;
1264 yytype_int16 *yyssp;
1265
1266 /* The semantic value stack. */
1267 YYSTYPE yyvsa[YYINITDEPTH];
1268 YYSTYPE *yyvs;
1269 YYSTYPE *yyvsp;
1270
1271 YYSIZE_T yystacksize;
1272
1273 int yyn;
1274 int yyresult;
1275 /* Lookahead token as an internal (translated) token number. */
1276 int yytoken;
1277 /* The variables used to return semantic value and location from the
1278 action routines. */
1279 YYSTYPE yyval;
1280
1281 #if YYERROR_VERBOSE
1282 /* Buffer for error messages, and its allocated size. */
1283 char yymsgbuf[128];
1284 char *yymsg = yymsgbuf;
1285 YYSIZE_T yymsg_alloc = sizeof yymsgbuf;
1286 #endif
1287
1288 #define YYPOPSTACK(N) (yyvsp -= (N), yyssp -= (N))
1289
1290 /* The number of symbols on the RHS of the reduced rule.
1291 Keep to zero when no symbol should be popped. */
1292 int yylen = 0;
1293
1294 yytoken = 0;
1295 yyss = yyssa;
1296 yyvs = yyvsa;
1297 yystacksize = YYINITDEPTH;
1298
1299 YYDPRINTF ((stderr, "Starting parse\n"));
1300
1301 yystate = 0;
1302 yyerrstatus = 0;
1303 yynerrs = 0;
1304 yychar = YYEMPTY; /* Cause a token to be read. */
1305
1306 /* Initialize stack pointers.
1307 Waste one element of value and location stack
1308 so that they stay on the same level as the state stack.
1309 The wasted elements are never initialized. */
1310 yyssp = yyss;
1311 yyvsp = yyvs;
1312
1313 goto yysetstate;
1314
1315 /*------------------------------------------------------------.
1316 | yynewstate -- Push a new state, which is found in yystate. |
1317 `------------------------------------------------------------*/
1318 yynewstate:
1319 /* In all cases, when you get here, the value and location stacks
1320 have just been pushed. So pushing a state here evens the stacks. */
1321 yyssp++;
1322
1323 yysetstate:
1324 *yyssp = yystate;
1325
1326 if (yyss + yystacksize - 1 <= yyssp)
1327 {
1328 /* Get the current used size of the three stacks, in elements. */
1329 YYSIZE_T yysize = yyssp - yyss + 1;
1330
1331 #ifdef yyoverflow
1332 {
1333 /* Give user a chance to reallocate the stack. Use copies of
1334 these so that the &'s don't force the real ones into
1335 memory. */
1336 YYSTYPE *yyvs1 = yyvs;
1337 yytype_int16 *yyss1 = yyss;
1338
1339 /* Each stack pointer address is followed by the size of the
1340 data in use in that stack, in bytes. This used to be a
1341 conditional around just the two extra args, but that might
1342 be undefined if yyoverflow is a macro. */
1343 yyoverflow (YY_("memory exhausted"),
1344 &yyss1, yysize * sizeof (*yyssp),
1345 &yyvs1, yysize * sizeof (*yyvsp),
1346 &yystacksize);
1347
1348 yyss = yyss1;
1349 yyvs = yyvs1;
1350 }
1351 #else /* no yyoverflow */
1352 # ifndef YYSTACK_RELOCATE
1353 goto yyexhaustedlab;
1354 # else
1355 /* Extend the stack our own way. */
1356 if (YYMAXDEPTH <= yystacksize)
1357 goto yyexhaustedlab;
1358 yystacksize *= 2;
1359 if (YYMAXDEPTH < yystacksize)
1360 yystacksize = YYMAXDEPTH;
1361
1362 {
1363 yytype_int16 *yyss1 = yyss;
1364 union yyalloc *yyptr =
1365 (union yyalloc *) YYSTACK_ALLOC (YYSTACK_BYTES (yystacksize));
1366 if (! yyptr)
1367 goto yyexhaustedlab;
1368 YYSTACK_RELOCATE (yyss_alloc, yyss);
1369 YYSTACK_RELOCATE (yyvs_alloc, yyvs);
1370 # undef YYSTACK_RELOCATE
1371 if (yyss1 != yyssa)
1372 YYSTACK_FREE (yyss1);
1373 }
1374 # endif
1375 #endif /* no yyoverflow */
1376
1377 yyssp = yyss + yysize - 1;
1378 yyvsp = yyvs + yysize - 1;
1379
1380 YYDPRINTF ((stderr, "Stack size increased to %lu\n",
1381 (unsigned long int) yystacksize));
1382
1383 if (yyss + yystacksize - 1 <= yyssp)
1384 YYABORT;
1385 }
1386
1387 YYDPRINTF ((stderr, "Entering state %d\n", yystate));
1388
1389 if (yystate == YYFINAL)
1390 YYACCEPT;
1391
1392 goto yybackup;
1393
1394 /*-----------.
1395 | yybackup. |
1396 `-----------*/
1397 yybackup:
1398
1399 /* Do appropriate processing given the current state. Read a
1400 lookahead token if we need one and don't already have one. */
1401
1402 /* First try to decide what to do without reference to lookahead token. */
1403 yyn = yypact[yystate];
1404 if (yyn == YYPACT_NINF)
1405 goto yydefault;
1406
1407 /* Not known => get a lookahead token if don't already have one. */
1408
1409 /* YYCHAR is either YYEMPTY or YYEOF or a valid lookahead symbol. */
1410 if (yychar == YYEMPTY)
1411 {
1412 YYDPRINTF ((stderr, "Reading a token: "));
1413 yychar = YYLEX;
1414 }
1415
1416 if (yychar <= YYEOF)
1417 {
1418 yychar = yytoken = YYEOF;
1419 YYDPRINTF ((stderr, "Now at end of input.\n"));
1420 }
1421 else
1422 {
1423 yytoken = YYTRANSLATE (yychar);
1424 YY_SYMBOL_PRINT ("Next token is", yytoken, &yylval, &yylloc);
1425 }
1426
1427 /* If the proper action on seeing token YYTOKEN is to reduce or to
1428 detect an error, take that action. */
1429 yyn += yytoken;
1430 if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken)
1431 goto yydefault;
1432 yyn = yytable[yyn];
1433 if (yyn <= 0)
1434 {
1435 if (yyn == 0 || yyn == YYTABLE_NINF)
1436 goto yyerrlab;
1437 yyn = -yyn;
1438 goto yyreduce;
1439 }
1440
1441 /* Count tokens shifted since error; after three, turn off error
1442 status. */
1443 if (yyerrstatus)
1444 yyerrstatus--;
1445
1446 /* Shift the lookahead token. */
1447 YY_SYMBOL_PRINT ("Shifting", yytoken, &yylval, &yylloc);
1448
1449 /* Discard the shifted token. */
1450 yychar = YYEMPTY;
1451
1452 yystate = yyn;
1453 *++yyvsp = yylval;
1454
1455 goto yynewstate;
1456
1457
1458 /*-----------------------------------------------------------.
1459 | yydefault -- do the default action for the current state. |
1460 `-----------------------------------------------------------*/
1461 yydefault:
1462 yyn = yydefact[yystate];
1463 if (yyn == 0)
1464 goto yyerrlab;
1465 goto yyreduce;
1466
1467
1468 /*-----------------------------.
1469 | yyreduce -- Do a reduction. |
1470 `-----------------------------*/
1471 yyreduce:
1472 /* yyn is the number of a rule to reduce with. */
1473 yylen = yyr2[yyn];
1474
1475 /* If YYLEN is nonzero, implement the default value of the action:
1476 `$$ = $1'.
1477
1478 Otherwise, the following line sets YYVAL to garbage.
1479 This behavior is undocumented and Bison
1480 users should not rely upon it. Assigning to YYVAL
1481 unconditionally makes the parser a bit smaller, and it avoids a
1482 GCC warning that YYVAL may be used uninitialized. */
1483 yyval = yyvsp[1-yylen];
1484
1485
1486 YY_REDUCE_PRINT (yyn);
1487 switch (yyn)
1488 {
1489 case 2:
1490
1491 /* Line 1455 of yacc.c */
1492 #line 236 "C:\\Users\\sdumbre\\testclone\\source\\compiler\\dtparser.y"
1493 { DtParserResult=(yyvsp[(1) - (2)].value); return 0; ;}
1494 break;
1495
1496 case 3:
1497
1498 /* Line 1455 of yacc.c */
1499 #line 237 "C:\\Users\\sdumbre\\testclone\\source\\compiler\\dtparser.y"
1500 { DtParserResult=(yyvsp[(1) - (2)].value); return 0; ;}
1501 break;
1502
1503 case 4:
1504
1505 /* Line 1455 of yacc.c */
1506 #line 244 "C:\\Users\\sdumbre\\testclone\\source\\compiler\\dtparser.y"
1507 { (yyval.value) = DtDoOperator ((yyvsp[(2) - (2)].value), OP_EXP_LOGICAL_NOT, (yyvsp[(2) - (2)].value));;}
1508 break;
1509
1510 case 5:
1511
1512 /* Line 1455 of yacc.c */
1513 #line 245 "C:\\Users\\sdumbre\\testclone\\source\\compiler\\dtparser.y"
1514 { (yyval.value) = DtDoOperator ((yyvsp[(2) - (2)].value), OP_EXP_ONES_COMPLIMENT, (yyvsp[(2) - (2)].value));;}
1515 break;
1516
1517 case 6:
1518
1519 /* Line 1455 of yacc.c */
1520 #line 249 "C:\\Users\\sdumbre\\testclone\\source\\compiler\\dtparser.y"
1521 { (yyval.value) = DtDoOperator ((yyvsp[(1) - (3)].value), OP_EXP_MULTIPLY, (yyvsp[(3) - (3)].value));;}
1522 break;
1523
1524 case 7:
1525
1526 /* Line 1455 of yacc.c */
1527 #line 250 "C:\\Users\\sdumbre\\testclone\\source\\compiler\\dtparser.y"
1528 { (yyval.value) = DtDoOperator ((yyvsp[(1) - (3)].value), OP_EXP_DIVIDE, (yyvsp[(3) - (3)].value));;}
1529 break;
1530
1531 case 8:
1532
1533 /* Line 1455 of yacc.c */
1534 #line 251 "C:\\Users\\sdumbre\\testclone\\source\\compiler\\dtparser.y"
1535 { (yyval.value) = DtDoOperator ((yyvsp[(1) - (3)].value), OP_EXP_MODULO, (yyvsp[(3) - (3)].value));;}
1536 break;
1537
1538 case 9:
1539
1540 /* Line 1455 of yacc.c */
1541 #line 252 "C:\\Users\\sdumbre\\testclone\\source\\compiler\\dtparser.y"
1542 { (yyval.value) = DtDoOperator ((yyvsp[(1) - (3)].value), OP_EXP_ADD, (yyvsp[(3) - (3)].value));;}
1543 break;
1544
1545 case 10:
1546
1547 /* Line 1455 of yacc.c */
1548 #line 253 "C:\\Users\\sdumbre\\testclone\\source\\compiler\\dtparser.y"
1549 { (yyval.value) = DtDoOperator ((yyvsp[(1) - (3)].value), OP_EXP_SUBTRACT, (yyvsp[(3) - (3)].value));;}
1550 break;
1551
1552 case 11:
1553
1554 /* Line 1455 of yacc.c */
1555 #line 254 "C:\\Users\\sdumbre\\testclone\\source\\compiler\\dtparser.y"
1556 { (yyval.value) = DtDoOperator ((yyvsp[(1) - (3)].value), OP_EXP_SHIFT_RIGHT, (yyvsp[(3) - (3)].value));;}
1557 break;
1558
1559 case 12:
1560
1561 /* Line 1455 of yacc.c */
1562 #line 255 "C:\\Users\\sdumbre\\testclone\\source\\compiler\\dtparser.y"
1563 { (yyval.value) = DtDoOperator ((yyvsp[(1) - (3)].value), OP_EXP_SHIFT_LEFT, (yyvsp[(3) - (3)].value));;}
1564 break;
1565
1566 case 13:
1567
1568 /* Line 1455 of yacc.c */
1569 #line 256 "C:\\Users\\sdumbre\\testclone\\source\\compiler\\dtparser.y"
1570 { (yyval.value) = DtDoOperator ((yyvsp[(1) - (3)].value), OP_EXP_GREATER, (yyvsp[(3) - (3)].value));;}
1571 break;
1572
1573 case 14:
1574
1575 /* Line 1455 of yacc.c */
1576 #line 257 "C:\\Users\\sdumbre\\testclone\\source\\compiler\\dtparser.y"
1577 { (yyval.value) = DtDoOperator ((yyvsp[(1) - (3)].value), OP_EXP_LESS, (yyvsp[(3) - (3)].value));;}
1578 break;
1579
1580 case 15:
1581
1582 /* Line 1455 of yacc.c */
1583 #line 258 "C:\\Users\\sdumbre\\testclone\\source\\compiler\\dtparser.y"
1584 { (yyval.value) = DtDoOperator ((yyvsp[(1) - (3)].value), OP_EXP_GREATER_EQUAL, (yyvsp[(3) - (3)].value));;}
1585 break;
1586
1587 case 16:
1588
1589 /* Line 1455 of yacc.c */
1590 #line 259 "C:\\Users\\sdumbre\\testclone\\source\\compiler\\dtparser.y"
1591 { (yyval.value) = DtDoOperator ((yyvsp[(1) - (3)].value), OP_EXP_LESS_EQUAL, (yyvsp[(3) - (3)].value));;}
1592 break;
1593
1594 case 17:
1595
1596 /* Line 1455 of yacc.c */
1597 #line 260 "C:\\Users\\sdumbre\\testclone\\source\\compiler\\dtparser.y"
1598 { (yyval.value) = DtDoOperator ((yyvsp[(1) - (3)].value), OP_EXP_EQUAL, (yyvsp[(3) - (3)].value));;}
1599 break;
1600
1601 case 18:
1602
1603 /* Line 1455 of yacc.c */
1604 #line 261 "C:\\Users\\sdumbre\\testclone\\source\\compiler\\dtparser.y"
1605 { (yyval.value) = DtDoOperator ((yyvsp[(1) - (3)].value), OP_EXP_NOT_EQUAL, (yyvsp[(3) - (3)].value));;}
1606 break;
1607
1608 case 19:
1609
1610 /* Line 1455 of yacc.c */
1611 #line 262 "C:\\Users\\sdumbre\\testclone\\source\\compiler\\dtparser.y"
1612 { (yyval.value) = DtDoOperator ((yyvsp[(1) - (3)].value), OP_EXP_AND, (yyvsp[(3) - (3)].value));;}
1613 break;
1614
1615 case 20:
1616
1617 /* Line 1455 of yacc.c */
1618 #line 263 "C:\\Users\\sdumbre\\testclone\\source\\compiler\\dtparser.y"
1619 { (yyval.value) = DtDoOperator ((yyvsp[(1) - (3)].value), OP_EXP_XOR, (yyvsp[(3) - (3)].value));;}
1620 break;
1621
1622 case 21:
1623
1624 /* Line 1455 of yacc.c */
1625 #line 264 "C:\\Users\\sdumbre\\testclone\\source\\compiler\\dtparser.y"
1626 { (yyval.value) = DtDoOperator ((yyvsp[(1) - (3)].value), OP_EXP_OR, (yyvsp[(3) - (3)].value));;}
1627 break;
1628
1629 case 22:
1630
1631 /* Line 1455 of yacc.c */
1632 #line 265 "C:\\Users\\sdumbre\\testclone\\source\\compiler\\dtparser.y"
1633 { (yyval.value) = DtDoOperator ((yyvsp[(1) - (3)].value), OP_EXP_LOGICAL_AND, (yyvsp[(3) - (3)].value));;}
1634 break;
1635
1636 case 23:
1637
1638 /* Line 1455 of yacc.c */
1639 #line 266 "C:\\Users\\sdumbre\\testclone\\source\\compiler\\dtparser.y"
1640 { (yyval.value) = DtDoOperator ((yyvsp[(1) - (3)].value), OP_EXP_LOGICAL_OR, (yyvsp[(3) - (3)].value));;}
1641 break;
1642
1643 case 24:
1644
1645 /* Line 1455 of yacc.c */
1646 #line 271 "C:\\Users\\sdumbre\\testclone\\source\\compiler\\dtparser.y"
1647 { (yyval.value) = (yyvsp[(2) - (3)].value);;}
1648 break;
1649
1650 case 25:
1651
1652 /* Line 1455 of yacc.c */
1653 #line 275 "C:\\Users\\sdumbre\\testclone\\source\\compiler\\dtparser.y"
1654 { (yyval.value) = DtResolveLabel (DtParsertext);;}
1655 break;
1656
1657 case 26:
1658
1659 /* Line 1455 of yacc.c */
1660 #line 286 "C:\\Users\\sdumbre\\testclone\\source\\compiler\\dtparser.y"
1661 { (yyval.value) = DtDoConstant (DtParsertext);;}
1662 break;
1663
1664 case 27:
1665
1666 /* Line 1455 of yacc.c */
1667 #line 290 "C:\\Users\\sdumbre\\testclone\\source\\compiler\\dtparser.y"
1668 { (yyval.value) = DtDoConstant (DtParsertext);;}
1669 break;
1670
1671 case 28:
1672
1673 /* Line 1455 of yacc.c */
1674 #line 294 "C:\\Users\\sdumbre\\testclone\\source\\compiler\\dtparser.y"
1675 { (yyval.value) = DtDoConstant (DtParsertext);;}
1676 break;
1677
1678
1679
1680 /* Line 1455 of yacc.c */
1681 #line 1790 "dtparser.tab.c"
1682 default: break;
1683 }
1684 YY_SYMBOL_PRINT ("-> $$ =", yyr1[yyn], &yyval, &yyloc);
1685
1686 YYPOPSTACK (yylen);
1687 yylen = 0;
1688 YY_STACK_PRINT (yyss, yyssp);
1689
1690 *++yyvsp = yyval;
1691
1692 /* Now `shift' the result of the reduction. Determine what state
1693 that goes to, based on the state we popped back to and the rule
1694 number reduced by. */
1695
1696 yyn = yyr1[yyn];
1697
1698 yystate = yypgoto[yyn - YYNTOKENS] + *yyssp;
1699 if (0 <= yystate && yystate <= YYLAST && yycheck[yystate] == *yyssp)
1700 yystate = yytable[yystate];
1701 else
1702 yystate = yydefgoto[yyn - YYNTOKENS];
1703
1704 goto yynewstate;
1705
1706
1707 /*------------------------------------.
1708 | yyerrlab -- here on detecting error |
1709 `------------------------------------*/
1710 yyerrlab:
1711 /* If not already recovering from an error, report this error. */
1712 if (!yyerrstatus)
1713 {
1714 ++yynerrs;
1715 #if ! YYERROR_VERBOSE
1716 yyerror (YY_("syntax error"));
1717 #else
1718 {
1719 YYSIZE_T yysize = yysyntax_error (0, yystate, yychar);
1720 if (yymsg_alloc < yysize && yymsg_alloc < YYSTACK_ALLOC_MAXIMUM)
1721 {
1722 YYSIZE_T yyalloc = 2 * yysize;
1723 if (! (yysize <= yyalloc && yyalloc <= YYSTACK_ALLOC_MAXIMUM))
1724 yyalloc = YYSTACK_ALLOC_MAXIMUM;
1725 if (yymsg != yymsgbuf)
1726 YYSTACK_FREE (yymsg);
1727 yymsg = (char *) YYSTACK_ALLOC (yyalloc);
1728 if (yymsg)
1729 yymsg_alloc = yyalloc;
1730 else
1731 {
1732 yymsg = yymsgbuf;
1733 yymsg_alloc = sizeof yymsgbuf;
1734 }
1735 }
1736
1737 if (0 < yysize && yysize <= yymsg_alloc)
1738 {
1739 (void) yysyntax_error (yymsg, yystate, yychar);
1740 yyerror (yymsg);
1741 }
1742 else
1743 {
1744 yyerror (YY_("syntax error"));
1745 if (yysize != 0)
1746 goto yyexhaustedlab;
1747 }
1748 }
1749 #endif
1750 }
1751
1752
1753
1754 if (yyerrstatus == 3)
1755 {
1756 /* If just tried and failed to reuse lookahead token after an
1757 error, discard it. */
1758
1759 if (yychar <= YYEOF)
1760 {
1761 /* Return failure if at end of input. */
1762 if (yychar == YYEOF)
1763 YYABORT;
1764 }
1765 else
1766 {
1767 yydestruct ("Error: discarding",
1768 yytoken, &yylval);
1769 yychar = YYEMPTY;
1770 }
1771 }
1772
1773 /* Else will try to reuse lookahead token after shifting the error
1774 token. */
1775 goto yyerrlab1;
1776
1777
1778 /*---------------------------------------------------.
1779 | yyerrorlab -- error raised explicitly by YYERROR. |
1780 `---------------------------------------------------*/
1781 yyerrorlab:
1782
1783 /* Pacify compilers like GCC when the user code never invokes
1784 YYERROR and the label yyerrorlab therefore never appears in user
1785 code. */
1786 if (/*CONSTCOND*/ 0)
1787 goto yyerrorlab;
1788
1789 /* Do not reclaim the symbols of the rule which action triggered
1790 this YYERROR. */
1791 YYPOPSTACK (yylen);
1792 yylen = 0;
1793 YY_STACK_PRINT (yyss, yyssp);
1794 yystate = *yyssp;
1795 goto yyerrlab1;
1796
1797
1798 /*-------------------------------------------------------------.
1799 | yyerrlab1 -- common code for both syntax error and YYERROR. |
1800 `-------------------------------------------------------------*/
1801 yyerrlab1:
1802 yyerrstatus = 3; /* Each real token shifted decrements this. */
1803
1804 for (;;)
1805 {
1806 yyn = yypact[yystate];
1807 if (yyn != YYPACT_NINF)
1808 {
1809 yyn += YYTERROR;
1810 if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYTERROR)
1811 {
1812 yyn = yytable[yyn];
1813 if (0 < yyn)
1814 break;
1815 }
1816 }
1817
1818 /* Pop the current state because it cannot handle the error token. */
1819 if (yyssp == yyss)
1820 YYABORT;
1821
1822
1823 yydestruct ("Error: popping",
1824 yystos[yystate], yyvsp);
1825 YYPOPSTACK (1);
1826 yystate = *yyssp;
1827 YY_STACK_PRINT (yyss, yyssp);
1828 }
1829
1830 *++yyvsp = yylval;
1831
1832
1833 /* Shift the error token. */
1834 YY_SYMBOL_PRINT ("Shifting", yystos[yyn], yyvsp, yylsp);
1835
1836 yystate = yyn;
1837 goto yynewstate;
1838
1839
1840 /*-------------------------------------.
1841 | yyacceptlab -- YYACCEPT comes here. |
1842 `-------------------------------------*/
1843 yyacceptlab:
1844 yyresult = 0;
1845 goto yyreturn;
1846
1847 /*-----------------------------------.
1848 | yyabortlab -- YYABORT comes here. |
1849 `-----------------------------------*/
1850 yyabortlab:
1851 yyresult = 1;
1852 goto yyreturn;
1853
1854 #if !defined(yyoverflow) || YYERROR_VERBOSE
1855 /*-------------------------------------------------.
1856 | yyexhaustedlab -- memory exhaustion comes here. |
1857 `-------------------------------------------------*/
1858 yyexhaustedlab:
1859 yyerror (YY_("memory exhausted"));
1860 yyresult = 2;
1861 /* Fall through. */
1862 #endif
1863
1864 yyreturn:
1865 if (yychar != YYEMPTY)
1866 yydestruct ("Cleanup: discarding lookahead",
1867 yytoken, &yylval);
1868 /* Do not reclaim the symbols of the rule which action triggered
1869 this YYABORT or YYACCEPT. */
1870 YYPOPSTACK (yylen);
1871 YY_STACK_PRINT (yyss, yyssp);
1872 while (yyssp != yyss)
1873 {
1874 yydestruct ("Cleanup: popping",
1875 yystos[*yyssp], yyvsp);
1876 YYPOPSTACK (1);
1877 }
1878 #ifndef yyoverflow
1879 if (yyss != yyssa)
1880 YYSTACK_FREE (yyss);
1881 #endif
1882 #if YYERROR_VERBOSE
1883 if (yymsg != yymsgbuf)
1884 YYSTACK_FREE (yymsg);
1885 #endif
1886 /* Make sure YYID is used. */
1887 return YYID (yyresult);
1888 }
1889
1890
1891
1892 /* Line 1675 of yacc.c */
1893 #line 296 "C:\\Users\\sdumbre\\testclone\\source\\compiler\\dtparser.y"
1894
1895
1896 /*! [End] no source code translation !*/
1897
1898 /*
1899 * Local support functions, including parser entry point
1900 */
1901 #define PR_FIRST_PARSE_OPCODE OP_EXP_EOF
1902 #define PR_YYTNAME_START 3
1903
1904
1905 /******************************************************************************
1906 *
1907 * FUNCTION: DtParsererror
1908 *
1909 * PARAMETERS: Message - Parser-generated error message
1910 *
1911 * RETURN: None
1912 *
1913 * DESCRIPTION: Handler for parser errors
1914 *
1915 *****************************************************************************/
1916
1917 void
1918 DtParsererror (
1919 char const *Message)
1920 {
1921 DtError (ASL_ERROR, ASL_MSG_SYNTAX,
1922 AslGbl_CurrentField, (char *) Message);
1923 }
1924
1925
1926 /******************************************************************************
1927 *
1928 * FUNCTION: DtGetOpName
1929 *
1930 * PARAMETERS: ParseOpcode - Parser token (OP_EXP_*)
1931 *
1932 * RETURN: Pointer to the opcode name
1933 *
1934 * DESCRIPTION: Get the ascii name of the parse opcode for debug output
1935 *
1936 *****************************************************************************/
1937
1938 char *
1939 DtGetOpName (
1940 UINT32 ParseOpcode)
1941 {
1942 #ifdef ASL_YYTNAME_START
1943 /*
1944 * First entries (PR_YYTNAME_START) in yytname are special reserved names.
1945 * Ignore first 6 characters of name (OP_EXP_)
1946 */
1947 return ((char *) yytname
1948 [(ParseOpcode - PR_FIRST_PARSE_OPCODE) + PR_YYTNAME_START] + 6);
1949 #else
1950 return ("[Unknown parser generator]");
1951 #endif
1952 }
1953
1954
1955 /******************************************************************************
1956 *
1957 * FUNCTION: DtEvaluateExpression
1958 *
1959 * PARAMETERS: ExprString - Expression to be evaluated. Must be
1960 * terminated by either a newline or a NUL
1961 * string terminator
1962 *
1963 * RETURN: 64-bit value for the expression
1964 *
1965 * DESCRIPTION: Main entry point for the DT expression parser
1966 *
1967 *****************************************************************************/
1968
1969 UINT64
1970 DtEvaluateExpression (
1971 char *ExprString)
1972 {
1973
1974 DbgPrint (ASL_DEBUG_OUTPUT,
1975 "**** Input expression: %s (Base 16)\n", ExprString);
1976
1977 /* Point lexer to the input string */
1978
1979 if (DtInitLexer (ExprString))
1980 {
1981 DtError (ASL_ERROR, ASL_MSG_COMPILER_INTERNAL,
1982 AslGbl_CurrentField, "Could not initialize lexer");
1983 return (0);
1984 }
1985
1986 /* Parse/Evaluate the input string (value returned in DtParserResult) */
1987
1988 DtParserparse ();
1989 DtTerminateLexer ();
1990
1991 DbgPrint (ASL_DEBUG_OUTPUT,
1992 "**** Parser returned value: %u (%8.8X%8.8X)\n",
1993 (UINT32) DtParserResult, ACPI_FORMAT_UINT64 (DtParserResult));
1994
1995 return (DtParserResult);
1996 }
1997