]>
Commit | Line | Data |
---|---|---|
34d867d7 | 1 | /* A Bison parser, made by GNU Bison 2.5.1.19-ced26-dirty. */ |
04b6e11e | 2 | |
7e5ef706 | 3 | /* Bison interface for Yacc-like parsers in C |
136a0f76 | 4 | |
9c883a6b | 5 | Copyright (C) 1984, 1989-1990, 2000-2012 Free Software Foundation, Inc. |
136a0f76 | 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. | |
136a0f76 | 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. | |
136a0f76 | 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. | |
136a0f76 | 29 | |
04c12cb8 PE |
30 | This special exception was added by the Free Software Foundation in |
31 | version 2.2 of Bison. */ | |
04b6e11e | 32 | |
34d867d7 AD |
33 | #ifndef GRAM__________SRC_PARSE_GRAM_H |
34 | # define GRAM__________SRC_PARSE_GRAM_H | |
35 | /* Enabling traces. */ | |
36 | #ifndef YYDEBUG | |
37 | # define YYDEBUG 1 | |
38 | #endif | |
39 | #if YYDEBUG | |
40 | extern int gram_debug; | |
41 | #endif | |
9bc0dd67 | 42 | |
1921f1d7 AD |
43 | /* Tokens. */ |
44 | #ifndef YYTOKENTYPE | |
ae7453f2 | 45 | # define YYTOKENTYPE |
1921f1d7 AD |
46 | /* Put the tokens into the symbol table, so that GDB and other debuggers |
47 | know about them. */ | |
48 | enum yytokentype { | |
49 | GRAM_EOF = 0, | |
50 | STRING = 258, | |
62ddaef6 PE |
51 | INT = 259, |
52 | PERCENT_TOKEN = 260, | |
53 | PERCENT_NTERM = 261, | |
54 | PERCENT_TYPE = 262, | |
55 | PERCENT_DESTRUCTOR = 263, | |
56 | PERCENT_PRINTER = 264, | |
12e35840 JD |
57 | PERCENT_LEFT = 265, |
58 | PERCENT_RIGHT = 266, | |
59 | PERCENT_NONASSOC = 267, | |
60 | PERCENT_PREC = 268, | |
61 | PERCENT_DPREC = 269, | |
62 | PERCENT_MERGE = 270, | |
63 | PERCENT_CODE = 271, | |
8e0a5e9e JD |
64 | PERCENT_DEBUG = 272, |
65 | PERCENT_DEFAULT_PREC = 273, | |
66 | PERCENT_DEFINE = 274, | |
67 | PERCENT_DEFINES = 275, | |
68 | PERCENT_ERROR_VERBOSE = 276, | |
69 | PERCENT_EXPECT = 277, | |
70 | PERCENT_EXPECT_RR = 278, | |
71 | PERCENT_FILE_PREFIX = 279, | |
72 | PERCENT_GLR_PARSER = 280, | |
73 | PERCENT_INITIAL_ACTION = 281, | |
74 | PERCENT_LANGUAGE = 282, | |
75 | PERCENT_LEX_PARAM = 283, | |
76 | PERCENT_LOCATIONS = 284, | |
77 | PERCENT_NAME_PREFIX = 285, | |
78 | PERCENT_NO_DEFAULT_PREC = 286, | |
79 | PERCENT_NO_LINES = 287, | |
80 | PERCENT_NONDETERMINISTIC_PARSER = 288, | |
81 | PERCENT_OUTPUT = 289, | |
82 | PERCENT_PARSE_PARAM = 290, | |
83 | PERCENT_PURE_PARSER = 291, | |
d782395d JD |
84 | PERCENT_REQUIRE = 292, |
85 | PERCENT_SKELETON = 293, | |
86 | PERCENT_START = 294, | |
87 | PERCENT_TOKEN_TABLE = 295, | |
88 | PERCENT_VERBOSE = 296, | |
89 | PERCENT_YACC = 297, | |
90 | BRACED_CODE = 298, | |
42ec0ae1 JD |
91 | BRACKETED_ID = 299, |
92 | CHAR = 300, | |
93 | EPILOGUE = 301, | |
94 | EQUAL = 302, | |
95 | ID = 303, | |
96 | ID_COLON = 304, | |
97 | PERCENT_PERCENT = 305, | |
98 | PIPE = 306, | |
99 | PROLOGUE = 307, | |
100 | SEMICOLON = 308, | |
101 | TYPE = 309, | |
102 | TYPE_TAG_ANY = 310, | |
103 | TYPE_TAG_NONE = 311, | |
0210a4bf | 104 | PERCENT_UNION = 312 |
1921f1d7 | 105 | }; |
ae7453f2 | 106 | #endif |
8f7ebfc8 JD |
107 | /* Tokens. */ |
108 | #define GRAM_EOF 0 | |
109 | #define STRING 258 | |
110 | #define INT 259 | |
111 | #define PERCENT_TOKEN 260 | |
112 | #define PERCENT_NTERM 261 | |
113 | #define PERCENT_TYPE 262 | |
114 | #define PERCENT_DESTRUCTOR 263 | |
115 | #define PERCENT_PRINTER 264 | |
116 | #define PERCENT_LEFT 265 | |
117 | #define PERCENT_RIGHT 266 | |
118 | #define PERCENT_NONASSOC 267 | |
119 | #define PERCENT_PREC 268 | |
120 | #define PERCENT_DPREC 269 | |
121 | #define PERCENT_MERGE 270 | |
122 | #define PERCENT_CODE 271 | |
123 | #define PERCENT_DEBUG 272 | |
124 | #define PERCENT_DEFAULT_PREC 273 | |
125 | #define PERCENT_DEFINE 274 | |
126 | #define PERCENT_DEFINES 275 | |
127 | #define PERCENT_ERROR_VERBOSE 276 | |
128 | #define PERCENT_EXPECT 277 | |
129 | #define PERCENT_EXPECT_RR 278 | |
130 | #define PERCENT_FILE_PREFIX 279 | |
131 | #define PERCENT_GLR_PARSER 280 | |
132 | #define PERCENT_INITIAL_ACTION 281 | |
133 | #define PERCENT_LANGUAGE 282 | |
134 | #define PERCENT_LEX_PARAM 283 | |
135 | #define PERCENT_LOCATIONS 284 | |
136 | #define PERCENT_NAME_PREFIX 285 | |
137 | #define PERCENT_NO_DEFAULT_PREC 286 | |
138 | #define PERCENT_NO_LINES 287 | |
139 | #define PERCENT_NONDETERMINISTIC_PARSER 288 | |
140 | #define PERCENT_OUTPUT 289 | |
141 | #define PERCENT_PARSE_PARAM 290 | |
142 | #define PERCENT_PURE_PARSER 291 | |
d782395d JD |
143 | #define PERCENT_REQUIRE 292 |
144 | #define PERCENT_SKELETON 293 | |
145 | #define PERCENT_START 294 | |
146 | #define PERCENT_TOKEN_TABLE 295 | |
147 | #define PERCENT_VERBOSE 296 | |
148 | #define PERCENT_YACC 297 | |
149 | #define BRACED_CODE 298 | |
42ec0ae1 JD |
150 | #define BRACKETED_ID 299 |
151 | #define CHAR 300 | |
152 | #define EPILOGUE 301 | |
153 | #define EQUAL 302 | |
154 | #define ID 303 | |
155 | #define ID_COLON 304 | |
156 | #define PERCENT_PERCENT 305 | |
157 | #define PIPE 306 | |
158 | #define PROLOGUE 307 | |
159 | #define SEMICOLON 308 | |
160 | #define TYPE 309 | |
161 | #define TYPE_TAG_ANY 310 | |
162 | #define TYPE_TAG_NONE 311 | |
0210a4bf | 163 | #define PERCENT_UNION 312 |
8f7ebfc8 | 164 | |
1921f1d7 AD |
165 | |
166 | ||
bf8b3d98 PE |
167 | #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED |
168 | typedef union YYSTYPE | |
136a0f76 | 169 | { |
7ecec4dd | 170 | |
34d867d7 | 171 | /* Line 2063 of yacc.c */ |
45aab21d | 172 | #line 114 "parse-gram.y" |
50a33993 | 173 | |
05d18c24 PE |
174 | symbol *symbol; |
175 | symbol_list *list; | |
e9955c83 | 176 | int integer; |
ff8d8df2 PE |
177 | char const *chars; |
178 | char *code; | |
05d18c24 PE |
179 | assoc assoc; |
180 | uniqstr uniqstr; | |
58d7a1a1 | 181 | unsigned char character; |
0210a4bf | 182 | named_ref *named_ref; |
136a0f76 | 183 | |
7ecec4dd JD |
184 | |
185 | ||
34d867d7 AD |
186 | /* Line 2063 of yacc.c */ |
187 | #line 188 "parse-gram.h" | |
7ecec4dd | 188 | } YYSTYPE; |
1f4cc0f4 | 189 | # define YYSTYPE_IS_TRIVIAL 1 |
73521d9f PE |
190 | # define yystype YYSTYPE /* obsolescent; will be withdrawn */ |
191 | # define YYSTYPE_IS_DECLARED 1 | |
e9955c83 AD |
192 | #endif |
193 | ||
bf8b3d98 | 194 | #if ! defined YYLTYPE && ! defined YYLTYPE_IS_DECLARED |
73521d9f | 195 | typedef struct YYLTYPE |
e9955c83 AD |
196 | { |
197 | int first_line; | |
198 | int first_column; | |
199 | int last_line; | |
200 | int last_column; | |
73521d9f PE |
201 | } YYLTYPE; |
202 | # define yyltype YYLTYPE /* obsolescent; will be withdrawn */ | |
203 | # define YYLTYPE_IS_DECLARED 1 | |
204 | # define YYLTYPE_IS_TRIVIAL 1 | |
e9955c83 AD |
205 | #endif |
206 | ||
34d867d7 AD |
207 | #ifdef YYPARSE_PARAM |
208 | #if defined __STDC__ || defined __cplusplus | |
209 | int gram_parse (void *YYPARSE_PARAM); | |
210 | #else | |
211 | int gram_parse (); | |
212 | #endif | |
213 | #else /* ! YYPARSE_PARAM */ | |
214 | #if defined __STDC__ || defined __cplusplus | |
215 | int gram_parse (void); | |
216 | #else | |
217 | int gram_parse (); | |
218 | #endif | |
219 | #endif /* ! YYPARSE_PARAM */ | |
e9955c83 | 220 | |
9bc0dd67 | 221 | |
34d867d7 | 222 | #endif /* !GRAM__________SRC_PARSE_GRAM_H */ |