]> git.saurik.com Git - bison.git/blob - src/parse-gram.h
maint: formatting changes.
[bison.git] / src / parse-gram.h
1 /* A Bison parser, made by GNU Bison 2.5.66-427a. */
2
3 /* Bison interface for Yacc-like parsers in C
4
5 Copyright (C) 1984, 1989-1990, 2000-2011 Free Software Foundation, Inc.
6
7 This program is free software: you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation, either version 3 of the License, or
10 (at your option) any later version.
11
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.
16
17 You should have received a copy of the GNU General Public License
18 along with this program. If not, see <http://www.gnu.org/licenses/>. */
19
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.
29
30 This special exception was added by the Free Software Foundation in
31 version 2.2 of Bison. */
32
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 BRACKETED_ID = 299,
83 CHAR = 300,
84 EPILOGUE = 301,
85 EQUAL = 302,
86 ID = 303,
87 ID_COLON = 304,
88 PERCENT_PERCENT = 305,
89 PIPE = 306,
90 PROLOGUE = 307,
91 SEMICOLON = 308,
92 TYPE = 309,
93 TYPE_TAG_ANY = 310,
94 TYPE_TAG_NONE = 311,
95 PERCENT_UNION = 312
96 };
97 #endif
98 /* Tokens. */
99 #define GRAM_EOF 0
100 #define STRING 258
101 #define INT 259
102 #define PERCENT_TOKEN 260
103 #define PERCENT_NTERM 261
104 #define PERCENT_TYPE 262
105 #define PERCENT_DESTRUCTOR 263
106 #define PERCENT_PRINTER 264
107 #define PERCENT_LEFT 265
108 #define PERCENT_RIGHT 266
109 #define PERCENT_NONASSOC 267
110 #define PERCENT_PREC 268
111 #define PERCENT_DPREC 269
112 #define PERCENT_MERGE 270
113 #define PERCENT_CODE 271
114 #define PERCENT_DEBUG 272
115 #define PERCENT_DEFAULT_PREC 273
116 #define PERCENT_DEFINE 274
117 #define PERCENT_DEFINES 275
118 #define PERCENT_ERROR_VERBOSE 276
119 #define PERCENT_EXPECT 277
120 #define PERCENT_EXPECT_RR 278
121 #define PERCENT_FILE_PREFIX 279
122 #define PERCENT_GLR_PARSER 280
123 #define PERCENT_INITIAL_ACTION 281
124 #define PERCENT_LANGUAGE 282
125 #define PERCENT_LEX_PARAM 283
126 #define PERCENT_LOCATIONS 284
127 #define PERCENT_NAME_PREFIX 285
128 #define PERCENT_NO_DEFAULT_PREC 286
129 #define PERCENT_NO_LINES 287
130 #define PERCENT_NONDETERMINISTIC_PARSER 288
131 #define PERCENT_OUTPUT 289
132 #define PERCENT_PARSE_PARAM 290
133 #define PERCENT_PURE_PARSER 291
134 #define PERCENT_REQUIRE 292
135 #define PERCENT_SKELETON 293
136 #define PERCENT_START 294
137 #define PERCENT_TOKEN_TABLE 295
138 #define PERCENT_VERBOSE 296
139 #define PERCENT_YACC 297
140 #define BRACED_CODE 298
141 #define BRACKETED_ID 299
142 #define CHAR 300
143 #define EPILOGUE 301
144 #define EQUAL 302
145 #define ID 303
146 #define ID_COLON 304
147 #define PERCENT_PERCENT 305
148 #define PIPE 306
149 #define PROLOGUE 307
150 #define SEMICOLON 308
151 #define TYPE 309
152 #define TYPE_TAG_ANY 310
153 #define TYPE_TAG_NONE 311
154 #define PERCENT_UNION 312
155
156
157
158
159 #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
160 typedef union YYSTYPE
161 {
162
163 /* Line 2070 of yacc.c */
164 #line 113 "parse-gram.y"
165
166 symbol *symbol;
167 symbol_list *list;
168 int integer;
169 char const *chars;
170 char *code;
171 assoc assoc;
172 uniqstr uniqstr;
173 unsigned char character;
174 named_ref *named_ref;
175
176
177
178 /* Line 2070 of yacc.c */
179 #line 180 "../../../src/parse-gram.h"
180 } YYSTYPE;
181 # define YYSTYPE_IS_TRIVIAL 1
182 # define yystype YYSTYPE /* obsolescent; will be withdrawn */
183 # define YYSTYPE_IS_DECLARED 1
184 #endif
185
186
187
188 #if ! defined YYLTYPE && ! defined YYLTYPE_IS_DECLARED
189 typedef struct YYLTYPE
190 {
191 int first_line;
192 int first_column;
193 int last_line;
194 int last_column;
195 } YYLTYPE;
196 # define yyltype YYLTYPE /* obsolescent; will be withdrawn */
197 # define YYLTYPE_IS_DECLARED 1
198 # define YYLTYPE_IS_TRIVIAL 1
199 #endif
200
201
202