]> git.saurik.com Git - bison.git/blame - src/parse-gram.h
In impure push mode, don't allow more than one yypstate to be allocated
[bison.git] / src / parse-gram.h
CommitLineData
1c7b7e1d 1
136a0f76 2/* A Bison parser, made by GNU Bison 2.3a+. */
04b6e11e 3
04c12cb8 4/* Skeleton interface for Bison's Yacc-like parsers in C
136a0f76
PB
5
6 Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006
04c12cb8 7 Free Software Foundation, Inc.
136a0f76 8
f16b0819 9 This program is free software: you can redistribute it and/or modify
04b6e11e 10 it under the terms of the GNU General Public License as published by
f16b0819
PE
11 the Free Software Foundation, either version 3 of the License, or
12 (at your option) any later version.
136a0f76 13
04b6e11e
PE
14 This program is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License for more details.
136a0f76 18
04b6e11e 19 You should have received a copy of the GNU General Public License
f16b0819 20 along with this program. If not, see <http://www.gnu.org/licenses/>. */
04b6e11e 21
04c12cb8
PE
22/* As a special exception, you may create a larger work that contains
23 part or all of the Bison parser skeleton and distribute that work
24 under terms of your choice, so long as that work isn't itself a
25 parser generator using the skeleton or a modified version thereof
26 as a parser skeleton. Alternatively, if you modify or redistribute
27 the parser skeleton itself, you may (at your option) remove this
28 special exception, which will cause the skeleton and the resulting
29 Bison output files to be licensed under the GNU General Public
30 License without this special exception.
136a0f76 31
04c12cb8
PE
32 This special exception was added by the Free Software Foundation in
33 version 2.2 of Bison. */
04b6e11e 34
9bc0dd67 35
1921f1d7
AD
36/* Tokens. */
37#ifndef YYTOKENTYPE
ae7453f2 38# define YYTOKENTYPE
1921f1d7
AD
39 /* Put the tokens into the symbol table, so that GDB and other debuggers
40 know about them. */
41 enum yytokentype {
42 GRAM_EOF = 0,
43 STRING = 258,
62ddaef6
PE
44 INT = 259,
45 PERCENT_TOKEN = 260,
46 PERCENT_NTERM = 261,
47 PERCENT_TYPE = 262,
48 PERCENT_DESTRUCTOR = 263,
49 PERCENT_PRINTER = 264,
12e35840
JD
50 PERCENT_LEFT = 265,
51 PERCENT_RIGHT = 266,
52 PERCENT_NONASSOC = 267,
53 PERCENT_PREC = 268,
54 PERCENT_DPREC = 269,
55 PERCENT_MERGE = 270,
56 PERCENT_CODE = 271,
8e0a5e9e
JD
57 PERCENT_DEBUG = 272,
58 PERCENT_DEFAULT_PREC = 273,
59 PERCENT_DEFINE = 274,
60 PERCENT_DEFINES = 275,
61 PERCENT_ERROR_VERBOSE = 276,
62 PERCENT_EXPECT = 277,
63 PERCENT_EXPECT_RR = 278,
64 PERCENT_FILE_PREFIX = 279,
65 PERCENT_GLR_PARSER = 280,
66 PERCENT_INITIAL_ACTION = 281,
67 PERCENT_LANGUAGE = 282,
68 PERCENT_LEX_PARAM = 283,
69 PERCENT_LOCATIONS = 284,
70 PERCENT_NAME_PREFIX = 285,
71 PERCENT_NO_DEFAULT_PREC = 286,
72 PERCENT_NO_LINES = 287,
73 PERCENT_NONDETERMINISTIC_PARSER = 288,
74 PERCENT_OUTPUT = 289,
75 PERCENT_PARSE_PARAM = 290,
76 PERCENT_PURE_PARSER = 291,
77 PERCENT_PUSH_PARSER = 292,
78 PERCENT_PUSH_PULL_PARSER = 293,
79 PERCENT_REQUIRE = 294,
80 PERCENT_SKELETON = 295,
81 PERCENT_START = 296,
82 PERCENT_TOKEN_TABLE = 297,
83 PERCENT_VERBOSE = 298,
84 PERCENT_YACC = 299,
85 BRACED_CODE = 300,
86 CHAR = 301,
87 EPILOGUE = 302,
88 EQUAL = 303,
89 ID = 304,
90 ID_COLON = 305,
91 PERCENT_PERCENT = 306,
92 PIPE = 307,
93 PROLOGUE = 308,
94 SEMICOLON = 309,
95 TYPE = 310,
96 TYPE_TAG_ANY = 311,
97 TYPE_TAG_NONE = 312,
98 PERCENT_UNION = 313
1921f1d7 99 };
ae7453f2 100#endif
8f7ebfc8
JD
101/* Tokens. */
102#define GRAM_EOF 0
103#define STRING 258
104#define INT 259
105#define PERCENT_TOKEN 260
106#define PERCENT_NTERM 261
107#define PERCENT_TYPE 262
108#define PERCENT_DESTRUCTOR 263
109#define PERCENT_PRINTER 264
110#define PERCENT_LEFT 265
111#define PERCENT_RIGHT 266
112#define PERCENT_NONASSOC 267
113#define PERCENT_PREC 268
114#define PERCENT_DPREC 269
115#define PERCENT_MERGE 270
116#define PERCENT_CODE 271
117#define PERCENT_DEBUG 272
118#define PERCENT_DEFAULT_PREC 273
119#define PERCENT_DEFINE 274
120#define PERCENT_DEFINES 275
121#define PERCENT_ERROR_VERBOSE 276
122#define PERCENT_EXPECT 277
123#define PERCENT_EXPECT_RR 278
124#define PERCENT_FILE_PREFIX 279
125#define PERCENT_GLR_PARSER 280
126#define PERCENT_INITIAL_ACTION 281
127#define PERCENT_LANGUAGE 282
128#define PERCENT_LEX_PARAM 283
129#define PERCENT_LOCATIONS 284
130#define PERCENT_NAME_PREFIX 285
131#define PERCENT_NO_DEFAULT_PREC 286
132#define PERCENT_NO_LINES 287
133#define PERCENT_NONDETERMINISTIC_PARSER 288
134#define PERCENT_OUTPUT 289
135#define PERCENT_PARSE_PARAM 290
136#define PERCENT_PURE_PARSER 291
137#define PERCENT_PUSH_PARSER 292
138#define PERCENT_PUSH_PULL_PARSER 293
139#define PERCENT_REQUIRE 294
140#define PERCENT_SKELETON 295
141#define PERCENT_START 296
142#define PERCENT_TOKEN_TABLE 297
143#define PERCENT_VERBOSE 298
144#define PERCENT_YACC 299
145#define BRACED_CODE 300
146#define CHAR 301
147#define EPILOGUE 302
148#define EQUAL 303
149#define ID 304
150#define ID_COLON 305
151#define PERCENT_PERCENT 306
152#define PIPE 307
153#define PROLOGUE 308
154#define SEMICOLON 309
155#define TYPE 310
156#define TYPE_TAG_ANY 311
157#define TYPE_TAG_NONE 312
158#define PERCENT_UNION 313
159
1921f1d7
AD
160
161
162
bf8b3d98
PE
163#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
164typedef union YYSTYPE
136a0f76 165{
7ecec4dd 166
1b17b01d 167/* Line 1535 of yacc.c */
f16b0819 168#line 94 "parse-gram.y"
50a33993 169
05d18c24
PE
170 symbol *symbol;
171 symbol_list *list;
e9955c83 172 int integer;
ff8d8df2
PE
173 char const *chars;
174 char *code;
05d18c24
PE
175 assoc assoc;
176 uniqstr uniqstr;
58d7a1a1 177 unsigned char character;
136a0f76 178
7ecec4dd
JD
179
180
1b17b01d 181/* Line 1535 of yacc.c */
f16b0819 182#line 183 "parse-gram.h"
7ecec4dd 183} YYSTYPE;
1f4cc0f4 184# define YYSTYPE_IS_TRIVIAL 1
73521d9f
PE
185# define yystype YYSTYPE /* obsolescent; will be withdrawn */
186# define YYSTYPE_IS_DECLARED 1
e9955c83
AD
187#endif
188
1921f1d7
AD
189
190
bf8b3d98 191#if ! defined YYLTYPE && ! defined YYLTYPE_IS_DECLARED
73521d9f 192typedef struct YYLTYPE
e9955c83
AD
193{
194 int first_line;
195 int first_column;
196 int last_line;
197 int last_column;
73521d9f
PE
198} YYLTYPE;
199# define yyltype YYLTYPE /* obsolescent; will be withdrawn */
200# define YYLTYPE_IS_DECLARED 1
201# define YYLTYPE_IS_TRIVIAL 1
e9955c83
AD
202#endif
203
204
9bc0dd67 205
ff8d8df2 206