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