]> git.saurik.com Git - bison.git/blob - src/parse-gram.h
* data/bison.simple, data/bison.c++: Be sure to restore the
[bison.git] / src / parse-gram.h
1 #ifndef BISON_PARSE_GRAM_H
2 # define BISON_PARSE_GRAM_H
3
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_LEFT = 267,
21 PERCENT_RIGHT = 268,
22 PERCENT_NONASSOC = 269,
23 PERCENT_PREC = 270,
24 PERCENT_VERBOSE = 271,
25 PERCENT_ERROR_VERBOSE = 272,
26 PERCENT_OUTPUT = 273,
27 PERCENT_FILE_PREFIX = 274,
28 PERCENT_NAME_PREFIX = 275,
29 PERCENT_DEFINE = 276,
30 PERCENT_PURE_PARSER = 277,
31 PERCENT_DEFINES = 278,
32 PERCENT_YACC = 279,
33 PERCENT_DEBUG = 280,
34 PERCENT_LOCATIONS = 281,
35 PERCENT_NO_LINES = 282,
36 PERCENT_SKELETON = 283,
37 PERCENT_TOKEN_TABLE = 284,
38 TYPE = 285,
39 EQUAL = 286,
40 SEMICOLON = 287,
41 COLON = 288,
42 PIPE = 289,
43 ID = 290,
44 PERCENT_PERCENT = 291,
45 PROLOGUE = 292,
46 EPILOGUE = 293,
47 BRACED_CODE = 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_LEFT 267
64 #define PERCENT_RIGHT 268
65 #define PERCENT_NONASSOC 269
66 #define PERCENT_PREC 270
67 #define PERCENT_VERBOSE 271
68 #define PERCENT_ERROR_VERBOSE 272
69 #define PERCENT_OUTPUT 273
70 #define PERCENT_FILE_PREFIX 274
71 #define PERCENT_NAME_PREFIX 275
72 #define PERCENT_DEFINE 276
73 #define PERCENT_PURE_PARSER 277
74 #define PERCENT_DEFINES 278
75 #define PERCENT_YACC 279
76 #define PERCENT_DEBUG 280
77 #define PERCENT_LOCATIONS 281
78 #define PERCENT_NO_LINES 282
79 #define PERCENT_SKELETON 283
80 #define PERCENT_TOKEN_TABLE 284
81 #define TYPE 285
82 #define EQUAL 286
83 #define SEMICOLON 287
84 #define COLON 288
85 #define PIPE 289
86 #define ID 290
87 #define PERCENT_PERCENT 291
88 #define PROLOGUE 292
89 #define EPILOGUE 293
90 #define BRACED_CODE 294
91
92
93
94
95 #ifndef YYSTYPE
96 #line 73 "parse-gram.y"
97 typedef union {
98 symbol_t *symbol;
99 int integer;
100 char *string;
101 associativity assoc;
102 } yystype;
103 # define YYSTYPE yystype
104 #endif
105
106
107
108 #ifndef YYLTYPE
109 typedef struct yyltype
110 {
111 int first_line;
112 int first_column;
113 int last_line;
114 int last_column;
115 } yyltype;
116 # define YYLTYPE yyltype
117 #endif
118
119
120
121 #endif /* not BISON_PARSE_GRAM_H */
122