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