]> git.saurik.com Git - bison.git/blame - src/parse-gram.h
Grammar declarations may be found in the grammar section.
[bison.git] / src / parse-gram.h
CommitLineData
2c569025
AD
1#ifndef BISON_PARSE_GRAM_H
2# define BISON_PARSE_GRAM_H
e96c9728 3
1921f1d7
AD
4/* Tokens. */
5#ifndef YYTOKENTYPE
6# if defined (__STDC__) || defined (__cplusplus)
7 /* Put the tokens into the symbol table, so that GDB and other debuggers
8 know about them. */
9 enum yytokentype {
10 GRAM_EOF = 0,
11 STRING = 258,
12 CHARACTER = 259,
13 INT = 260,
14 PERCENT_TOKEN = 261,
15 PERCENT_NTERM = 262,
16 PERCENT_TYPE = 263,
17 PERCENT_UNION = 264,
18 PERCENT_EXPECT = 265,
19 PERCENT_START = 266,
20 PERCENT_PREC = 267,
21 PERCENT_VERBOSE = 268,
22 PERCENT_ERROR_VERBOSE = 269,
23 PERCENT_OUTPUT = 270,
24 PERCENT_FILE_PREFIX = 271,
25 PERCENT_NAME_PREFIX = 272,
26 PERCENT_DEFINE = 273,
27 PERCENT_PURE_PARSER = 274,
28 PERCENT_DEFINES = 275,
29 PERCENT_YACC = 276,
30 PERCENT_DEBUG = 277,
31 PERCENT_LOCATIONS = 278,
32 PERCENT_NO_LINES = 279,
33 PERCENT_SKELETON = 280,
34 PERCENT_TOKEN_TABLE = 281,
35 TYPE = 282,
36 EQUAL = 283,
37 SEMICOLON = 284,
38 COLON = 285,
39 PIPE = 286,
40 ID = 287,
41 PERCENT_PERCENT = 288,
42 PROLOGUE = 289,
43 EPILOGUE = 290,
44 BRACED_CODE = 291,
45 PERCENT_LEFT = 292,
46 PERCENT_RIGHT = 293,
47 PERCENT_NONASSOC = 294
48 };
49# endif
50 /* POSIX requires `int' for tokens in interfaces. */
51# define YYTOKENTYPE int
52#endif /* !YYTOKENTYPE */
53#define GRAM_EOF 0
54#define STRING 258
55#define CHARACTER 259
56#define INT 260
57#define PERCENT_TOKEN 261
58#define PERCENT_NTERM 262
59#define PERCENT_TYPE 263
60#define PERCENT_UNION 264
61#define PERCENT_EXPECT 265
62#define PERCENT_START 266
63#define PERCENT_PREC 267
64#define PERCENT_VERBOSE 268
65#define PERCENT_ERROR_VERBOSE 269
66#define PERCENT_OUTPUT 270
67#define PERCENT_FILE_PREFIX 271
68#define PERCENT_NAME_PREFIX 272
69#define PERCENT_DEFINE 273
70#define PERCENT_PURE_PARSER 274
71#define PERCENT_DEFINES 275
72#define PERCENT_YACC 276
73#define PERCENT_DEBUG 277
74#define PERCENT_LOCATIONS 278
75#define PERCENT_NO_LINES 279
76#define PERCENT_SKELETON 280
77#define PERCENT_TOKEN_TABLE 281
78#define TYPE 282
79#define EQUAL 283
80#define SEMICOLON 284
81#define COLON 285
82#define PIPE 286
83#define ID 287
84#define PERCENT_PERCENT 288
85#define PROLOGUE 289
86#define EPILOGUE 290
87#define BRACED_CODE 291
88#define PERCENT_LEFT 292
89#define PERCENT_RIGHT 293
90#define PERCENT_NONASSOC 294
91
92
93
94
e9955c83 95#ifndef YYSTYPE
1921f1d7
AD
96#line 74 "parse-gram.y"
97typedef union {
e9955c83
AD
98 symbol_t *symbol;
99 int integer;
100 char *string;
101 associativity assoc;
4cdb01db 102} yystype;
1921f1d7
AD
103/* Line 1271 of /home/akim/src/bison/data/bison.simple. */
104#line 105 "y.tab.h"
e9955c83
AD
105# define YYSTYPE yystype
106#endif
107
1921f1d7
AD
108
109
e9955c83
AD
110#ifndef YYLTYPE
111typedef struct yyltype
112{
113 int first_line;
114 int first_column;
115 int last_line;
116 int last_column;
117} yyltype;
118# define YYLTYPE yyltype
119#endif
120
121
122
2c569025 123#endif /* not BISON_PARSE_GRAM_H */
1921f1d7 124