]> git.saurik.com Git - bison.git/blob - src/parse-gram.h
16a92f949a6b943abcf926ef9bafdf9163aff176
[bison.git] / src / parse-gram.h
1 /* A Bison parser, made by GNU Bison 1.875c. */
2
3 /* Skeleton parser for Yacc-like parsing with Bison,
4 Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
5
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2, or (at your option)
9 any later version.
10
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, write to the Free Software
18 Foundation, Inc., 59 Temple Place - Suite 330,
19 Boston, MA 02111-1307, USA. */
20
21 /* As a special exception, when this file is copied by Bison into a
22 Bison output file, you may use that output file without restriction.
23 This special exception was added by the Free Software Foundation
24 in version 1.24 of Bison. */
25
26 /* Tokens. */
27 #ifndef YYTOKENTYPE
28 # define YYTOKENTYPE
29 /* Put the tokens into the symbol table, so that GDB and other debuggers
30 know about them. */
31 enum yytokentype {
32 GRAM_EOF = 0,
33 STRING = 258,
34 INT = 259,
35 PERCENT_TOKEN = 260,
36 PERCENT_NTERM = 261,
37 PERCENT_TYPE = 262,
38 PERCENT_DESTRUCTOR = 263,
39 PERCENT_PRINTER = 264,
40 PERCENT_UNION = 265,
41 PERCENT_LEFT = 266,
42 PERCENT_RIGHT = 267,
43 PERCENT_NONASSOC = 268,
44 PERCENT_PREC = 269,
45 PERCENT_DPREC = 270,
46 PERCENT_MERGE = 271,
47 PERCENT_DEBUG = 272,
48 PERCENT_DEFAULT_PREC = 273,
49 PERCENT_DEFINE = 274,
50 PERCENT_DEFINES = 275,
51 PERCENT_ERROR_VERBOSE = 276,
52 PERCENT_EXPECT = 277,
53 PERCENT_FILE_PREFIX = 278,
54 PERCENT_GLR_PARSER = 279,
55 PERCENT_INITIAL_ACTION = 280,
56 PERCENT_LEX_PARAM = 281,
57 PERCENT_LOCATIONS = 282,
58 PERCENT_NAME_PREFIX = 283,
59 PERCENT_NO_LINES = 284,
60 PERCENT_NONDETERMINISTIC_PARSER = 285,
61 PERCENT_OUTPUT = 286,
62 PERCENT_PARSE_PARAM = 287,
63 PERCENT_PURE_PARSER = 288,
64 PERCENT_SKELETON = 289,
65 PERCENT_START = 290,
66 PERCENT_TOKEN_TABLE = 291,
67 PERCENT_VERBOSE = 292,
68 PERCENT_YACC = 293,
69 TYPE = 294,
70 EQUAL = 295,
71 SEMICOLON = 296,
72 PIPE = 297,
73 ID = 298,
74 ID_COLON = 299,
75 PERCENT_PERCENT = 300,
76 PROLOGUE = 301,
77 EPILOGUE = 302,
78 BRACED_CODE = 303
79 };
80 #endif
81 #define GRAM_EOF 0
82 #define STRING 258
83 #define INT 259
84 #define PERCENT_TOKEN 260
85 #define PERCENT_NTERM 261
86 #define PERCENT_TYPE 262
87 #define PERCENT_DESTRUCTOR 263
88 #define PERCENT_PRINTER 264
89 #define PERCENT_UNION 265
90 #define PERCENT_LEFT 266
91 #define PERCENT_RIGHT 267
92 #define PERCENT_NONASSOC 268
93 #define PERCENT_PREC 269
94 #define PERCENT_DPREC 270
95 #define PERCENT_MERGE 271
96 #define PERCENT_DEBUG 272
97 #define PERCENT_DEFAULT_PREC 273
98 #define PERCENT_DEFINE 274
99 #define PERCENT_DEFINES 275
100 #define PERCENT_ERROR_VERBOSE 276
101 #define PERCENT_EXPECT 277
102 #define PERCENT_FILE_PREFIX 278
103 #define PERCENT_GLR_PARSER 279
104 #define PERCENT_INITIAL_ACTION 280
105 #define PERCENT_LEX_PARAM 281
106 #define PERCENT_LOCATIONS 282
107 #define PERCENT_NAME_PREFIX 283
108 #define PERCENT_NO_LINES 284
109 #define PERCENT_NONDETERMINISTIC_PARSER 285
110 #define PERCENT_OUTPUT 286
111 #define PERCENT_PARSE_PARAM 287
112 #define PERCENT_PURE_PARSER 288
113 #define PERCENT_SKELETON 289
114 #define PERCENT_START 290
115 #define PERCENT_TOKEN_TABLE 291
116 #define PERCENT_VERBOSE 292
117 #define PERCENT_YACC 293
118 #define TYPE 294
119 #define EQUAL 295
120 #define SEMICOLON 296
121 #define PIPE 297
122 #define ID 298
123 #define ID_COLON 299
124 #define PERCENT_PERCENT 300
125 #define PROLOGUE 301
126 #define EPILOGUE 302
127 #define BRACED_CODE 303
128
129
130
131
132 #if ! defined (YYSTYPE) && ! defined (YYSTYPE_IS_DECLARED)
133 #line 80 "parse-gram.y"
134 typedef union YYSTYPE {
135 symbol *symbol;
136 symbol_list *list;
137 int integer;
138 char *chars;
139 assoc assoc;
140 uniqstr uniqstr;
141 } YYSTYPE;
142 /* Line 1285 of yacc.c. */
143 #line 144 "y.tab.h"
144 # define yystype YYSTYPE /* obsolescent; will be withdrawn */
145 # define YYSTYPE_IS_DECLARED 1
146 # define YYSTYPE_IS_TRIVIAL 1
147 #endif
148
149
150
151 #if ! defined (YYLTYPE) && ! defined (YYLTYPE_IS_DECLARED)
152 typedef struct YYLTYPE
153 {
154 int first_line;
155 int first_column;
156 int last_line;
157 int last_column;
158 } YYLTYPE;
159 # define yyltype YYLTYPE /* obsolescent; will be withdrawn */
160 # define YYLTYPE_IS_DECLARED 1
161 # define YYLTYPE_IS_TRIVIAL 1
162 #endif
163
164
165
166