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