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