]>
Commit | Line | Data |
---|---|---|
3c9b20ff | 1 | /* A Bison parser, made by GNU Bison 2.4.555-5c9e. */ |
1c7b7e1d | 2 | |
3c9b20ff | 3 | /* Bison interface for Yacc-like parsers in C |
086fd113 | 4 | |
575619af | 5 | Copyright (C) 1984, 1989-1990, 2000-2011 Free Software Foundation, Inc. |
086fd113 | 6 | |
f16b0819 | 7 | This program is free software: you can redistribute it and/or modify |
04b6e11e | 8 | it under the terms of the GNU General Public License as published by |
f16b0819 PE |
9 | the Free Software Foundation, either version 3 of the License, or |
10 | (at your option) any later version. | |
086fd113 | 11 | |
04b6e11e PE |
12 | This program is distributed in the hope that it will be useful, |
13 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
15 | GNU General Public License for more details. | |
086fd113 | 16 | |
04b6e11e | 17 | You should have received a copy of the GNU General Public License |
f16b0819 | 18 | along with this program. If not, see <http://www.gnu.org/licenses/>. */ |
04b6e11e | 19 | |
04c12cb8 PE |
20 | /* As a special exception, you may create a larger work that contains |
21 | part or all of the Bison parser skeleton and distribute that work | |
22 | under terms of your choice, so long as that work isn't itself a | |
23 | parser generator using the skeleton or a modified version thereof | |
24 | as a parser skeleton. Alternatively, if you modify or redistribute | |
25 | the parser skeleton itself, you may (at your option) remove this | |
26 | special exception, which will cause the skeleton and the resulting | |
27 | Bison output files to be licensed under the GNU General Public | |
28 | License without this special exception. | |
086fd113 | 29 | |
04c12cb8 PE |
30 | This special exception was added by the Free Software Foundation in |
31 | version 2.2 of Bison. */ | |
b18cdd91 | 32 | /* "%code requires" blocks. */ |
575619af JD |
33 | /* Line 2001 of yacc.c */ |
34 | #line 202 "src/parse-gram.y" | |
b18cdd91 AD |
35 | |
36 | # ifndef PARAM_TYPE | |
37 | # define PARAM_TYPE | |
38 | typedef enum | |
39 | { | |
dd875058 | 40 | param_none = 0, |
b18cdd91 AD |
41 | param_lex = 1 << 0, |
42 | param_parse = 1 << 1, | |
43 | param_both = param_lex | param_parse | |
44 | } param_type; | |
45 | # endif | |
46 | ||
47 | ||
575619af JD |
48 | /* Line 2001 of yacc.c */ |
49 | #line 50 "src/parse-gram.h" | |
04b6e11e | 50 | |
1921f1d7 AD |
51 | /* Tokens. */ |
52 | #ifndef YYTOKENTYPE | |
ae7453f2 | 53 | # define YYTOKENTYPE |
1921f1d7 AD |
54 | /* Put the tokens into the symbol table, so that GDB and other debuggers |
55 | know about them. */ | |
56 | enum yytokentype { | |
57 | GRAM_EOF = 0, | |
58 | STRING = 258, | |
62ddaef6 PE |
59 | INT = 259, |
60 | PERCENT_TOKEN = 260, | |
61 | PERCENT_NTERM = 261, | |
62 | PERCENT_TYPE = 262, | |
63 | PERCENT_DESTRUCTOR = 263, | |
64 | PERCENT_PRINTER = 264, | |
12e35840 JD |
65 | PERCENT_LEFT = 265, |
66 | PERCENT_RIGHT = 266, | |
67 | PERCENT_NONASSOC = 267, | |
f7398526 AD |
68 | PERCENT_PRECEDENCE = 268, |
69 | PERCENT_PREC = 269, | |
70 | PERCENT_DPREC = 270, | |
71 | PERCENT_MERGE = 271, | |
72 | PERCENT_CODE = 272, | |
86cfae0a AD |
73 | PERCENT_DEFAULT_PREC = 273, |
74 | PERCENT_DEFINE = 274, | |
75 | PERCENT_DEFINES = 275, | |
2f5b478e AD |
76 | PERCENT_ERROR_VERBOSE = 276, |
77 | PERCENT_EXPECT = 277, | |
78 | PERCENT_EXPECT_RR = 278, | |
79 | PERCENT_FLAG = 279, | |
80 | PERCENT_FILE_PREFIX = 280, | |
81 | PERCENT_GLR_PARSER = 281, | |
82 | PERCENT_INITIAL_ACTION = 282, | |
83 | PERCENT_LANGUAGE = 283, | |
b18cdd91 AD |
84 | PERCENT_NAME_PREFIX = 284, |
85 | PERCENT_NO_DEFAULT_PREC = 285, | |
86 | PERCENT_NO_LINES = 286, | |
87 | PERCENT_NONDETERMINISTIC_PARSER = 287, | |
88 | PERCENT_OUTPUT = 288, | |
89 | PERCENT_REQUIRE = 289, | |
90 | PERCENT_SKELETON = 290, | |
91 | PERCENT_START = 291, | |
92 | PERCENT_TOKEN_TABLE = 292, | |
93 | PERCENT_VERBOSE = 293, | |
94 | PERCENT_YACC = 294, | |
95 | BRACED_CODE = 295, | |
ca2a6d15 PH |
96 | BRACED_PREDICATE = 296, |
97 | BRACKETED_ID = 297, | |
98 | CHAR = 298, | |
99 | EPILOGUE = 299, | |
100 | EQUAL = 300, | |
101 | ID = 301, | |
102 | ID_COLON = 302, | |
103 | PERCENT_PERCENT = 303, | |
104 | PIPE = 304, | |
105 | PROLOGUE = 305, | |
106 | SEMICOLON = 306, | |
107 | TAG = 307, | |
108 | TAG_ANY = 308, | |
109 | TAG_NONE = 309, | |
110 | PERCENT_PARAM = 310, | |
111 | PERCENT_UNION = 311 | |
1921f1d7 | 112 | }; |
ae7453f2 | 113 | #endif |
8f7ebfc8 JD |
114 | /* Tokens. */ |
115 | #define GRAM_EOF 0 | |
116 | #define STRING 258 | |
117 | #define INT 259 | |
118 | #define PERCENT_TOKEN 260 | |
119 | #define PERCENT_NTERM 261 | |
120 | #define PERCENT_TYPE 262 | |
121 | #define PERCENT_DESTRUCTOR 263 | |
122 | #define PERCENT_PRINTER 264 | |
123 | #define PERCENT_LEFT 265 | |
124 | #define PERCENT_RIGHT 266 | |
125 | #define PERCENT_NONASSOC 267 | |
f7398526 AD |
126 | #define PERCENT_PRECEDENCE 268 |
127 | #define PERCENT_PREC 269 | |
128 | #define PERCENT_DPREC 270 | |
129 | #define PERCENT_MERGE 271 | |
130 | #define PERCENT_CODE 272 | |
86cfae0a AD |
131 | #define PERCENT_DEFAULT_PREC 273 |
132 | #define PERCENT_DEFINE 274 | |
133 | #define PERCENT_DEFINES 275 | |
2f5b478e AD |
134 | #define PERCENT_ERROR_VERBOSE 276 |
135 | #define PERCENT_EXPECT 277 | |
136 | #define PERCENT_EXPECT_RR 278 | |
137 | #define PERCENT_FLAG 279 | |
138 | #define PERCENT_FILE_PREFIX 280 | |
139 | #define PERCENT_GLR_PARSER 281 | |
140 | #define PERCENT_INITIAL_ACTION 282 | |
141 | #define PERCENT_LANGUAGE 283 | |
b18cdd91 AD |
142 | #define PERCENT_NAME_PREFIX 284 |
143 | #define PERCENT_NO_DEFAULT_PREC 285 | |
144 | #define PERCENT_NO_LINES 286 | |
145 | #define PERCENT_NONDETERMINISTIC_PARSER 287 | |
146 | #define PERCENT_OUTPUT 288 | |
147 | #define PERCENT_REQUIRE 289 | |
148 | #define PERCENT_SKELETON 290 | |
149 | #define PERCENT_START 291 | |
150 | #define PERCENT_TOKEN_TABLE 292 | |
151 | #define PERCENT_VERBOSE 293 | |
152 | #define PERCENT_YACC 294 | |
153 | #define BRACED_CODE 295 | |
ca2a6d15 PH |
154 | #define BRACED_PREDICATE 296 |
155 | #define BRACKETED_ID 297 | |
156 | #define CHAR 298 | |
157 | #define EPILOGUE 299 | |
158 | #define EQUAL 300 | |
159 | #define ID 301 | |
160 | #define ID_COLON 302 | |
161 | #define PERCENT_PERCENT 303 | |
162 | #define PIPE 304 | |
163 | #define PROLOGUE 305 | |
164 | #define SEMICOLON 306 | |
165 | #define TAG 307 | |
166 | #define TAG_ANY 308 | |
167 | #define TAG_NONE 309 | |
168 | #define PERCENT_PARAM 310 | |
169 | #define PERCENT_UNION 311 | |
8f7ebfc8 | 170 | |
1921f1d7 AD |
171 | |
172 | ||
173 | ||
bf8b3d98 PE |
174 | #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED |
175 | typedef union YYSTYPE | |
136a0f76 | 176 | { |
575619af JD |
177 | /* Line 2001 of yacc.c */ |
178 | #line 88 "src/parse-gram.y" | |
50a33993 | 179 | |
b18cdd91 AD |
180 | assoc assoc; |
181 | char *code; | |
182 | char const *chars; | |
183 | int integer; | |
184 | named_ref *named_ref; | |
05d18c24 PE |
185 | symbol *symbol; |
186 | symbol_list *list; | |
05d18c24 | 187 | uniqstr uniqstr; |
58d7a1a1 | 188 | unsigned char character; |
b18cdd91 | 189 | |
575619af JD |
190 | /* Line 2001 of yacc.c */ |
191 | #line 226 "src/parse-gram.y" | |
b18cdd91 AD |
192 | |
193 | param_type param; | |
136a0f76 | 194 | |
7ecec4dd | 195 | |
575619af JD |
196 | /* Line 2001 of yacc.c */ |
197 | #line 198 "src/parse-gram.h" | |
7ecec4dd | 198 | } YYSTYPE; |
1f4cc0f4 | 199 | # define YYSTYPE_IS_TRIVIAL 1 |
73521d9f PE |
200 | # define yystype YYSTYPE /* obsolescent; will be withdrawn */ |
201 | # define YYSTYPE_IS_DECLARED 1 | |
e9955c83 AD |
202 | #endif |
203 | ||
1921f1d7 AD |
204 | |
205 | ||
bf8b3d98 | 206 | #if ! defined YYLTYPE && ! defined YYLTYPE_IS_DECLARED |
73521d9f | 207 | typedef struct YYLTYPE |
e9955c83 AD |
208 | { |
209 | int first_line; | |
210 | int first_column; | |
211 | int last_line; | |
212 | int last_column; | |
73521d9f PE |
213 | } YYLTYPE; |
214 | # define yyltype YYLTYPE /* obsolescent; will be withdrawn */ | |
215 | # define YYLTYPE_IS_DECLARED 1 | |
216 | # define YYLTYPE_IS_TRIVIAL 1 | |
e9955c83 AD |
217 | #endif |
218 | ||
219 | ||
9bc0dd67 | 220 |