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