]> git.saurik.com Git - bison.git/blame - src/parse-gram.h
parse.lac: implement exploratory stack reallocations.
[bison.git] / src / parse-gram.h
CommitLineData
bf35c71c 1/* A Bison parser, made by GNU Bison 2.4.542-10bae. */
1c7b7e1d 2
ccde1f98 3/* Interface for Bison's Yacc-like parsers in C
086fd113 4
ca2a6d15
PH
5 Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006,
6 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
086fd113 7
f16b0819 8 This program is free software: you can redistribute it and/or modify
04b6e11e 9 it under the terms of the GNU General Public License as published by
f16b0819
PE
10 the Free Software Foundation, either version 3 of the License, or
11 (at your option) any later version.
086fd113 12
04b6e11e
PE
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.
086fd113 17
04b6e11e 18 You should have received a copy of the GNU General Public License
f16b0819 19 along with this program. If not, see <http://www.gnu.org/licenses/>. */
04b6e11e 20
04c12cb8
PE
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.
086fd113 30
04c12cb8
PE
31 This special exception was added by the Free Software Foundation in
32 version 2.2 of Bison. */
b18cdd91 33/* "%code requires" blocks. */
107844a3
JD
34/* Line 2002 of yacc.c */
35#line 203 "src/parse-gram.y"
b18cdd91
AD
36
37# ifndef PARAM_TYPE
38# define PARAM_TYPE
39 typedef enum
40 {
dd875058 41 param_none = 0,
b18cdd91
AD
42 param_lex = 1 << 0,
43 param_parse = 1 << 1,
44 param_both = param_lex | param_parse
45 } param_type;
46# endif
47
48
107844a3 49/* Line 2002 of yacc.c */
ca2a6d15 50#line 51 "src/parse-gram.h"
04b6e11e 51
1921f1d7
AD
52/* Tokens. */
53#ifndef YYTOKENTYPE
ae7453f2 54# define YYTOKENTYPE
1921f1d7
AD
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,
62ddaef6
PE
60 INT = 259,
61 PERCENT_TOKEN = 260,
62 PERCENT_NTERM = 261,
63 PERCENT_TYPE = 262,
64 PERCENT_DESTRUCTOR = 263,
65 PERCENT_PRINTER = 264,
12e35840
JD
66 PERCENT_LEFT = 265,
67 PERCENT_RIGHT = 266,
68 PERCENT_NONASSOC = 267,
f7398526
AD
69 PERCENT_PRECEDENCE = 268,
70 PERCENT_PREC = 269,
71 PERCENT_DPREC = 270,
72 PERCENT_MERGE = 271,
73 PERCENT_CODE = 272,
86cfae0a
AD
74 PERCENT_DEFAULT_PREC = 273,
75 PERCENT_DEFINE = 274,
76 PERCENT_DEFINES = 275,
2f5b478e
AD
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,
b18cdd91
AD
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,
ca2a6d15
PH
97 BRACED_PREDICATE = 296,
98 BRACKETED_ID = 297,
99 CHAR = 298,
100 EPILOGUE = 299,
101 EQUAL = 300,
102 ID = 301,
103 ID_COLON = 302,
104 PERCENT_PERCENT = 303,
105 PIPE = 304,
106 PROLOGUE = 305,
107 SEMICOLON = 306,
108 TAG = 307,
109 TAG_ANY = 308,
110 TAG_NONE = 309,
111 PERCENT_PARAM = 310,
112 PERCENT_UNION = 311
1921f1d7 113 };
ae7453f2 114#endif
8f7ebfc8
JD
115/* Tokens. */
116#define GRAM_EOF 0
117#define STRING 258
118#define INT 259
119#define PERCENT_TOKEN 260
120#define PERCENT_NTERM 261
121#define PERCENT_TYPE 262
122#define PERCENT_DESTRUCTOR 263
123#define PERCENT_PRINTER 264
124#define PERCENT_LEFT 265
125#define PERCENT_RIGHT 266
126#define PERCENT_NONASSOC 267
f7398526
AD
127#define PERCENT_PRECEDENCE 268
128#define PERCENT_PREC 269
129#define PERCENT_DPREC 270
130#define PERCENT_MERGE 271
131#define PERCENT_CODE 272
86cfae0a
AD
132#define PERCENT_DEFAULT_PREC 273
133#define PERCENT_DEFINE 274
134#define PERCENT_DEFINES 275
2f5b478e
AD
135#define PERCENT_ERROR_VERBOSE 276
136#define PERCENT_EXPECT 277
137#define PERCENT_EXPECT_RR 278
138#define PERCENT_FLAG 279
139#define PERCENT_FILE_PREFIX 280
140#define PERCENT_GLR_PARSER 281
141#define PERCENT_INITIAL_ACTION 282
142#define PERCENT_LANGUAGE 283
b18cdd91
AD
143#define PERCENT_NAME_PREFIX 284
144#define PERCENT_NO_DEFAULT_PREC 285
145#define PERCENT_NO_LINES 286
146#define PERCENT_NONDETERMINISTIC_PARSER 287
147#define PERCENT_OUTPUT 288
148#define PERCENT_REQUIRE 289
149#define PERCENT_SKELETON 290
150#define PERCENT_START 291
151#define PERCENT_TOKEN_TABLE 292
152#define PERCENT_VERBOSE 293
153#define PERCENT_YACC 294
154#define BRACED_CODE 295
ca2a6d15
PH
155#define BRACED_PREDICATE 296
156#define BRACKETED_ID 297
157#define CHAR 298
158#define EPILOGUE 299
159#define EQUAL 300
160#define ID 301
161#define ID_COLON 302
162#define PERCENT_PERCENT 303
163#define PIPE 304
164#define PROLOGUE 305
165#define SEMICOLON 306
166#define TAG 307
167#define TAG_ANY 308
168#define TAG_NONE 309
169#define PERCENT_PARAM 310
170#define PERCENT_UNION 311
8f7ebfc8 171
1921f1d7
AD
172
173
174
bf8b3d98
PE
175#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
176typedef union YYSTYPE
136a0f76 177{
107844a3
JD
178/* Line 2002 of yacc.c */
179#line 89 "src/parse-gram.y"
50a33993 180
b18cdd91
AD
181 assoc assoc;
182 char *code;
183 char const *chars;
184 int integer;
185 named_ref *named_ref;
05d18c24
PE
186 symbol *symbol;
187 symbol_list *list;
05d18c24 188 uniqstr uniqstr;
58d7a1a1 189 unsigned char character;
b18cdd91 190
107844a3
JD
191/* Line 2002 of yacc.c */
192#line 227 "src/parse-gram.y"
b18cdd91
AD
193
194 param_type param;
136a0f76 195
7ecec4dd 196
107844a3 197/* Line 2002 of yacc.c */
ca2a6d15 198#line 199 "src/parse-gram.h"
7ecec4dd 199} YYSTYPE;
1f4cc0f4 200# define YYSTYPE_IS_TRIVIAL 1
73521d9f
PE
201# define yystype YYSTYPE /* obsolescent; will be withdrawn */
202# define YYSTYPE_IS_DECLARED 1
e9955c83
AD
203#endif
204
1921f1d7
AD
205
206
bf8b3d98 207#if ! defined YYLTYPE && ! defined YYLTYPE_IS_DECLARED
73521d9f 208typedef struct YYLTYPE
e9955c83
AD
209{
210 int first_line;
211 int first_column;
212 int last_line;
213 int last_column;
73521d9f
PE
214} YYLTYPE;
215# define yyltype YYLTYPE /* obsolescent; will be withdrawn */
216# define YYLTYPE_IS_DECLARED 1
217# define YYLTYPE_IS_TRIVIAL 1
e9955c83
AD
218#endif
219
220
9bc0dd67 221