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