]> git.saurik.com Git - bison.git/blob - src/parse-gram.h
f4dff147d1e42333cc5e6d4a489bc5ef8da122c7
[bison.git] / src / parse-gram.h
1 /* A Bison parser, made by GNU Bison 2.4.403-43f2. */
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 1608 of yacc.c */
35 #line 201 "src/parse-gram.y"
36
37 # ifndef PARAM_TYPE
38 # define PARAM_TYPE
39 typedef enum
40 {
41 param_lex = 1 << 0,
42 param_parse = 1 << 1,
43 param_both = param_lex | param_parse
44 } param_type;
45 # endif
46
47
48 /* Line 1608 of yacc.c */
49 #line 50 "src/parse-gram.h"
50
51 /* Tokens. */
52 #ifndef YYTOKENTYPE
53 # define YYTOKENTYPE
54 /* Put the tokens into the symbol table, so that GDB and other debuggers
55 know about them. */
56 enum yytokentype {
57 GRAM_EOF = 0,
58 STRING = 258,
59 INT = 259,
60 PERCENT_TOKEN = 260,
61 PERCENT_NTERM = 261,
62 PERCENT_TYPE = 262,
63 PERCENT_DESTRUCTOR = 263,
64 PERCENT_PRINTER = 264,
65 PERCENT_LEFT = 265,
66 PERCENT_RIGHT = 266,
67 PERCENT_NONASSOC = 267,
68 PERCENT_PRECEDENCE = 268,
69 PERCENT_PREC = 269,
70 PERCENT_DPREC = 270,
71 PERCENT_MERGE = 271,
72 PERCENT_CODE = 272,
73 PERCENT_DEFAULT_PREC = 273,
74 PERCENT_DEFINE = 274,
75 PERCENT_DEFINES = 275,
76 PERCENT_ERROR_VERBOSE = 276,
77 PERCENT_EXPECT = 277,
78 PERCENT_EXPECT_RR = 278,
79 PERCENT_FLAG = 279,
80 PERCENT_FILE_PREFIX = 280,
81 PERCENT_GLR_PARSER = 281,
82 PERCENT_INITIAL_ACTION = 282,
83 PERCENT_LANGUAGE = 283,
84 PERCENT_NAME_PREFIX = 284,
85 PERCENT_NO_DEFAULT_PREC = 285,
86 PERCENT_NO_LINES = 286,
87 PERCENT_NONDETERMINISTIC_PARSER = 287,
88 PERCENT_OUTPUT = 288,
89 PERCENT_REQUIRE = 289,
90 PERCENT_SKELETON = 290,
91 PERCENT_START = 291,
92 PERCENT_TOKEN_TABLE = 292,
93 PERCENT_VERBOSE = 293,
94 PERCENT_YACC = 294,
95 BRACED_CODE = 295,
96 CHAR = 296,
97 EPILOGUE = 297,
98 EQUAL = 298,
99 ID = 299,
100 ID_COLON = 300,
101 PERCENT_PERCENT = 301,
102 PIPE = 302,
103 PROLOGUE = 303,
104 SEMICOLON = 304,
105 TAG = 305,
106 TAG_ANY = 306,
107 TAG_NONE = 307,
108 BRACKETED_ID = 308,
109 PERCENT_PARAM = 309,
110 PERCENT_UNION = 310
111 };
112 #endif
113 /* Tokens. */
114 #define GRAM_EOF 0
115 #define STRING 258
116 #define INT 259
117 #define PERCENT_TOKEN 260
118 #define PERCENT_NTERM 261
119 #define PERCENT_TYPE 262
120 #define PERCENT_DESTRUCTOR 263
121 #define PERCENT_PRINTER 264
122 #define PERCENT_LEFT 265
123 #define PERCENT_RIGHT 266
124 #define PERCENT_NONASSOC 267
125 #define PERCENT_PRECEDENCE 268
126 #define PERCENT_PREC 269
127 #define PERCENT_DPREC 270
128 #define PERCENT_MERGE 271
129 #define PERCENT_CODE 272
130 #define PERCENT_DEFAULT_PREC 273
131 #define PERCENT_DEFINE 274
132 #define PERCENT_DEFINES 275
133 #define PERCENT_ERROR_VERBOSE 276
134 #define PERCENT_EXPECT 277
135 #define PERCENT_EXPECT_RR 278
136 #define PERCENT_FLAG 279
137 #define PERCENT_FILE_PREFIX 280
138 #define PERCENT_GLR_PARSER 281
139 #define PERCENT_INITIAL_ACTION 282
140 #define PERCENT_LANGUAGE 283
141 #define PERCENT_NAME_PREFIX 284
142 #define PERCENT_NO_DEFAULT_PREC 285
143 #define PERCENT_NO_LINES 286
144 #define PERCENT_NONDETERMINISTIC_PARSER 287
145 #define PERCENT_OUTPUT 288
146 #define PERCENT_REQUIRE 289
147 #define PERCENT_SKELETON 290
148 #define PERCENT_START 291
149 #define PERCENT_TOKEN_TABLE 292
150 #define PERCENT_VERBOSE 293
151 #define PERCENT_YACC 294
152 #define BRACED_CODE 295
153 #define CHAR 296
154 #define EPILOGUE 297
155 #define EQUAL 298
156 #define ID 299
157 #define ID_COLON 300
158 #define PERCENT_PERCENT 301
159 #define PIPE 302
160 #define PROLOGUE 303
161 #define SEMICOLON 304
162 #define TAG 305
163 #define TAG_ANY 306
164 #define TAG_NONE 307
165 #define BRACKETED_ID 308
166 #define PERCENT_PARAM 309
167 #define PERCENT_UNION 310
168
169
170
171
172 #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
173 typedef union YYSTYPE
174 {
175 /* Line 1608 of yacc.c */
176 #line 88 "src/parse-gram.y"
177
178 assoc assoc;
179 char *code;
180 char const *chars;
181 int integer;
182 named_ref *named_ref;
183 symbol *symbol;
184 symbol_list *list;
185 uniqstr uniqstr;
186 unsigned char character;
187
188 /* Line 1608 of yacc.c */
189 #line 223 "src/parse-gram.y"
190
191 param_type param;
192
193
194 /* Line 1608 of yacc.c */
195 #line 196 "src/parse-gram.h"
196 } YYSTYPE;
197 # define YYSTYPE_IS_TRIVIAL 1
198 # define yystype YYSTYPE /* obsolescent; will be withdrawn */
199 # define YYSTYPE_IS_DECLARED 1
200 #endif
201
202
203
204 #if ! defined YYLTYPE && ! defined YYLTYPE_IS_DECLARED
205 typedef struct YYLTYPE
206 {
207 int first_line;
208 int first_column;
209 int last_line;
210 int last_column;
211 } YYLTYPE;
212 # define yyltype YYLTYPE /* obsolescent; will be withdrawn */
213 # define YYLTYPE_IS_DECLARED 1
214 # define YYLTYPE_IS_TRIVIAL 1
215 #endif
216
217
218