]> git.saurik.com Git - bison.git/blob - src/parse-gram.h
Merge remote-tracking branch 'origin/maint'
[bison.git] / src / parse-gram.h
1 /* A Bison parser, made by GNU Bison 2.6.2.847-e4c0-dirty. */
2
3 /* Bison interface for Yacc-like parsers in C
4
5 Copyright (C) 1984, 1989-1990, 2000-2012 Free Software Foundation, Inc.
6
7 This program is free software: you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation, either version 3 of the License, or
10 (at your option) any later version.
11
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.
16
17 You should have received a copy of the GNU General Public License
18 along with this program. If not, see <http://www.gnu.org/licenses/>. */
19
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.
29
30 This special exception was added by the Free Software Foundation in
31 version 2.2 of Bison. */
32
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
42 /* "%code requires" blocks. */
43 /* Line 1936 of yacc.c */
44 #line 223 "src/parse-gram.y"
45
46 # ifndef PARAM_TYPE
47 # define PARAM_TYPE
48 typedef enum
49 {
50 param_none = 0,
51 param_lex = 1 << 0,
52 param_parse = 1 << 1,
53 param_both = param_lex | param_parse
54 } param_type;
55 # endif
56
57
58 /* Line 1936 of yacc.c */
59 #line 60 "src/parse-gram.h"
60
61 /* Tokens. */
62 #ifndef YYTOKENTYPE
63 # define YYTOKENTYPE
64 /* Put the tokens into the symbol table, so that GDB and other debuggers
65 know about them. */
66 enum yytokentype
67 {
68 GRAM_EOF = 0,
69 STRING = 258,
70 INT = 259,
71 PERCENT_TOKEN = 260,
72 PERCENT_NTERM = 261,
73 PERCENT_TYPE = 262,
74 PERCENT_DESTRUCTOR = 263,
75 PERCENT_PRINTER = 264,
76 PERCENT_LEFT = 265,
77 PERCENT_RIGHT = 266,
78 PERCENT_NONASSOC = 267,
79 PERCENT_PRECEDENCE = 268,
80 PERCENT_PREC = 269,
81 PERCENT_DPREC = 270,
82 PERCENT_MERGE = 271,
83 PERCENT_CODE = 272,
84 PERCENT_DEFAULT_PREC = 273,
85 PERCENT_DEFINE = 274,
86 PERCENT_DEFINES = 275,
87 PERCENT_ERROR_VERBOSE = 276,
88 PERCENT_EXPECT = 277,
89 PERCENT_EXPECT_RR = 278,
90 PERCENT_FLAG = 279,
91 PERCENT_FILE_PREFIX = 280,
92 PERCENT_GLR_PARSER = 281,
93 PERCENT_INITIAL_ACTION = 282,
94 PERCENT_LANGUAGE = 283,
95 PERCENT_NAME_PREFIX = 284,
96 PERCENT_NO_DEFAULT_PREC = 285,
97 PERCENT_NO_LINES = 286,
98 PERCENT_NONDETERMINISTIC_PARSER = 287,
99 PERCENT_OUTPUT = 288,
100 PERCENT_REQUIRE = 289,
101 PERCENT_SKELETON = 290,
102 PERCENT_START = 291,
103 PERCENT_TOKEN_TABLE = 292,
104 PERCENT_VERBOSE = 293,
105 PERCENT_YACC = 294,
106 BRACED_CODE = 295,
107 BRACED_PREDICATE = 296,
108 BRACKETED_ID = 297,
109 CHAR = 298,
110 EPILOGUE = 299,
111 EQUAL = 300,
112 ID = 301,
113 ID_COLON = 302,
114 PERCENT_PERCENT = 303,
115 PIPE = 304,
116 PROLOGUE = 305,
117 SEMICOLON = 306,
118 TAG = 307,
119 TAG_ANY = 308,
120 TAG_NONE = 309,
121 PERCENT_PARAM = 310,
122 PERCENT_UNION = 311
123 };
124 #endif
125 /* Tokens. */
126 #define GRAM_EOF 0
127 #define STRING 258
128 #define INT 259
129 #define PERCENT_TOKEN 260
130 #define PERCENT_NTERM 261
131 #define PERCENT_TYPE 262
132 #define PERCENT_DESTRUCTOR 263
133 #define PERCENT_PRINTER 264
134 #define PERCENT_LEFT 265
135 #define PERCENT_RIGHT 266
136 #define PERCENT_NONASSOC 267
137 #define PERCENT_PRECEDENCE 268
138 #define PERCENT_PREC 269
139 #define PERCENT_DPREC 270
140 #define PERCENT_MERGE 271
141 #define PERCENT_CODE 272
142 #define PERCENT_DEFAULT_PREC 273
143 #define PERCENT_DEFINE 274
144 #define PERCENT_DEFINES 275
145 #define PERCENT_ERROR_VERBOSE 276
146 #define PERCENT_EXPECT 277
147 #define PERCENT_EXPECT_RR 278
148 #define PERCENT_FLAG 279
149 #define PERCENT_FILE_PREFIX 280
150 #define PERCENT_GLR_PARSER 281
151 #define PERCENT_INITIAL_ACTION 282
152 #define PERCENT_LANGUAGE 283
153 #define PERCENT_NAME_PREFIX 284
154 #define PERCENT_NO_DEFAULT_PREC 285
155 #define PERCENT_NO_LINES 286
156 #define PERCENT_NONDETERMINISTIC_PARSER 287
157 #define PERCENT_OUTPUT 288
158 #define PERCENT_REQUIRE 289
159 #define PERCENT_SKELETON 290
160 #define PERCENT_START 291
161 #define PERCENT_TOKEN_TABLE 292
162 #define PERCENT_VERBOSE 293
163 #define PERCENT_YACC 294
164 #define BRACED_CODE 295
165 #define BRACED_PREDICATE 296
166 #define BRACKETED_ID 297
167 #define CHAR 298
168 #define EPILOGUE 299
169 #define EQUAL 300
170 #define ID 301
171 #define ID_COLON 302
172 #define PERCENT_PERCENT 303
173 #define PIPE 304
174 #define PROLOGUE 305
175 #define SEMICOLON 306
176 #define TAG 307
177 #define TAG_ANY 308
178 #define TAG_NONE 309
179 #define PERCENT_PARAM 310
180 #define PERCENT_UNION 311
181
182 #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
183 typedef union YYSTYPE
184 {
185 /* Line 1936 of yacc.c */
186 #line 109 "src/parse-gram.y"
187
188 assoc assoc;
189 char *code;
190 char const *chars;
191 int integer;
192 named_ref *named_ref;
193 symbol *symbol;
194 symbol_list *list;
195 uniqstr uniqstr;
196 unsigned char character;
197
198 /* Line 1936 of yacc.c */
199 #line 247 "src/parse-gram.y"
200
201 param_type param;
202
203 /* Line 1936 of yacc.c */
204 #line 426 "src/parse-gram.y"
205 code_props_type code_type;
206
207 /* Line 1936 of yacc.c */
208 #line 209 "src/parse-gram.h"
209 } YYSTYPE;
210 # define YYSTYPE_IS_TRIVIAL 1
211 # define YYSTYPE_IS_DECLARED 1
212 #endif
213
214 #if ! defined YYLTYPE && ! defined YYLTYPE_IS_DECLARED
215 typedef struct YYLTYPE
216 {
217 int first_line;
218 int first_column;
219 int last_line;
220 int last_column;
221 } YYLTYPE;
222 # define YYLTYPE_IS_DECLARED 1
223 # define YYLTYPE_IS_TRIVIAL 1
224 #endif
225
226
227 int gram_parse (void);
228
229 #endif /* !GRAM_SRC_PARSE_GRAM_H */