]> 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.5.977-6d58-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 YY_GRAM_SRC_PARSE_GRAM_H_INCLUDED
34 # define YY_GRAM_SRC_PARSE_GRAM_H_INCLUDED
35 /* Enabling traces. */
36 #ifndef GRAM_DEBUG
37 # if defined YYDEBUG
38 #if YYDEBUG
39 # define GRAM_DEBUG 1
40 # else
41 # define GRAM_DEBUG 0
42 # endif
43 # else /* ! defined YYDEBUG */
44 # define GRAM_DEBUG 1
45 # endif /* ! defined YYDEBUG */
46 #endif /* ! defined GRAM_DEBUG */
47 #if GRAM_DEBUG
48 extern int gram_debug;
49 #endif
50 /* "%code requires" blocks. */
51 /* Line 1931 of yacc.c */
52 #line 223 "src/parse-gram.y"
53
54 # ifndef PARAM_TYPE
55 # define PARAM_TYPE
56 typedef enum
57 {
58 param_none = 0,
59 param_lex = 1 << 0,
60 param_parse = 1 << 1,
61 param_both = param_lex | param_parse
62 } param_type;
63 # endif
64
65
66 /* Line 1931 of yacc.c */
67 #line 68 "src/parse-gram.h"
68
69 /* Tokens. */
70 #ifndef GRAM_TOKENTYPE
71 # define GRAM_TOKENTYPE
72 /* Put the tokens into the symbol table, so that GDB and other debuggers
73 know about them. */
74 enum gram_tokentype
75 {
76 GRAM_EOF = 0,
77 STRING = 258,
78 INT = 259,
79 PERCENT_TOKEN = 260,
80 PERCENT_NTERM = 261,
81 PERCENT_TYPE = 262,
82 PERCENT_DESTRUCTOR = 263,
83 PERCENT_PRINTER = 264,
84 PERCENT_LEFT = 265,
85 PERCENT_RIGHT = 266,
86 PERCENT_NONASSOC = 267,
87 PERCENT_PRECEDENCE = 268,
88 PERCENT_PREC = 269,
89 PERCENT_DPREC = 270,
90 PERCENT_MERGE = 271,
91 PERCENT_CODE = 272,
92 PERCENT_DEFAULT_PREC = 273,
93 PERCENT_DEFINE = 274,
94 PERCENT_DEFINES = 275,
95 PERCENT_ERROR_VERBOSE = 276,
96 PERCENT_EXPECT = 277,
97 PERCENT_EXPECT_RR = 278,
98 PERCENT_FLAG = 279,
99 PERCENT_FILE_PREFIX = 280,
100 PERCENT_GLR_PARSER = 281,
101 PERCENT_INITIAL_ACTION = 282,
102 PERCENT_LANGUAGE = 283,
103 PERCENT_NAME_PREFIX = 284,
104 PERCENT_NO_DEFAULT_PREC = 285,
105 PERCENT_NO_LINES = 286,
106 PERCENT_NONDETERMINISTIC_PARSER = 287,
107 PERCENT_OUTPUT = 288,
108 PERCENT_REQUIRE = 289,
109 PERCENT_SKELETON = 290,
110 PERCENT_START = 291,
111 PERCENT_TOKEN_TABLE = 292,
112 PERCENT_VERBOSE = 293,
113 PERCENT_YACC = 294,
114 BRACED_CODE = 295,
115 BRACED_PREDICATE = 296,
116 BRACKETED_ID = 297,
117 CHAR = 298,
118 EPILOGUE = 299,
119 EQUAL = 300,
120 ID = 301,
121 ID_COLON = 302,
122 PERCENT_PERCENT = 303,
123 PIPE = 304,
124 PROLOGUE = 305,
125 SEMICOLON = 306,
126 TAG = 307,
127 TAG_ANY = 308,
128 TAG_NONE = 309,
129 PERCENT_PARAM = 310,
130 PERCENT_UNION = 311
131 };
132 #endif
133 /* Tokens. */
134 #define GRAM_EOF 0
135 #define STRING 258
136 #define INT 259
137 #define PERCENT_TOKEN 260
138 #define PERCENT_NTERM 261
139 #define PERCENT_TYPE 262
140 #define PERCENT_DESTRUCTOR 263
141 #define PERCENT_PRINTER 264
142 #define PERCENT_LEFT 265
143 #define PERCENT_RIGHT 266
144 #define PERCENT_NONASSOC 267
145 #define PERCENT_PRECEDENCE 268
146 #define PERCENT_PREC 269
147 #define PERCENT_DPREC 270
148 #define PERCENT_MERGE 271
149 #define PERCENT_CODE 272
150 #define PERCENT_DEFAULT_PREC 273
151 #define PERCENT_DEFINE 274
152 #define PERCENT_DEFINES 275
153 #define PERCENT_ERROR_VERBOSE 276
154 #define PERCENT_EXPECT 277
155 #define PERCENT_EXPECT_RR 278
156 #define PERCENT_FLAG 279
157 #define PERCENT_FILE_PREFIX 280
158 #define PERCENT_GLR_PARSER 281
159 #define PERCENT_INITIAL_ACTION 282
160 #define PERCENT_LANGUAGE 283
161 #define PERCENT_NAME_PREFIX 284
162 #define PERCENT_NO_DEFAULT_PREC 285
163 #define PERCENT_NO_LINES 286
164 #define PERCENT_NONDETERMINISTIC_PARSER 287
165 #define PERCENT_OUTPUT 288
166 #define PERCENT_REQUIRE 289
167 #define PERCENT_SKELETON 290
168 #define PERCENT_START 291
169 #define PERCENT_TOKEN_TABLE 292
170 #define PERCENT_VERBOSE 293
171 #define PERCENT_YACC 294
172 #define BRACED_CODE 295
173 #define BRACED_PREDICATE 296
174 #define BRACKETED_ID 297
175 #define CHAR 298
176 #define EPILOGUE 299
177 #define EQUAL 300
178 #define ID 301
179 #define ID_COLON 302
180 #define PERCENT_PERCENT 303
181 #define PIPE 304
182 #define PROLOGUE 305
183 #define SEMICOLON 306
184 #define TAG 307
185 #define TAG_ANY 308
186 #define TAG_NONE 309
187 #define PERCENT_PARAM 310
188 #define PERCENT_UNION 311
189
190 #if ! defined GRAM_STYPE && ! defined GRAM_STYPE_IS_DECLARED
191 typedef union GRAM_STYPE
192 {
193 /* Line 1931 of yacc.c */
194 #line 109 "src/parse-gram.y"
195
196 assoc assoc;
197 char *code;
198 char const *chars;
199 int integer;
200 named_ref *named_ref;
201 symbol *symbol;
202 symbol_list *list;
203 uniqstr uniqstr;
204 unsigned char character;
205
206 /* Line 1931 of yacc.c */
207 #line 247 "src/parse-gram.y"
208
209 param_type param;
210
211 /* Line 1931 of yacc.c */
212 #line 423 "src/parse-gram.y"
213 code_props_type code_type;
214
215 /* Line 1931 of yacc.c */
216 #line 217 "src/parse-gram.h"
217 } GRAM_STYPE;
218 # define GRAM_STYPE_IS_TRIVIAL 1
219 # define GRAM_STYPE_IS_DECLARED 1
220 #endif
221
222 #if ! defined GRAM_LTYPE && ! defined GRAM_LTYPE_IS_DECLARED
223 typedef struct GRAM_LTYPE
224 {
225 int first_line;
226 int first_column;
227 int last_line;
228 int last_column;
229 } GRAM_LTYPE;
230 # define GRAM_LTYPE_IS_DECLARED 1
231 # define GRAM_LTYPE_IS_TRIVIAL 1
232 #endif
233
234
235 int gram_parse (void);
236
237 #endif /* !YY_GRAM_SRC_PARSE_GRAM_H_INCLUDED */