]> git.saurik.com Git - bison.git/blob - src/parse-gram.h
* src/parse-gram.y: Move %token in the declaration section so that
[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_LEFT = 265,
19 PERCENT_RIGHT = 266,
20 PERCENT_NONASSOC = 267,
21 PERCENT_EXPECT = 268,
22 PERCENT_START = 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_LEFT 265
62 #define PERCENT_RIGHT 266
63 #define PERCENT_NONASSOC 267
64 #define PERCENT_EXPECT 268
65 #define PERCENT_START 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 89 "parse-gram.y"
97 typedef union {
98 symbol_t *symbol;
99 int integer;
100 char *string;
101 associativity assoc;
102 } yystype;
103 /* Line 1271 of /usr/local/share/bison/bison.simple. */
104 #line 105 "y.tab.h"
105 # define YYSTYPE yystype
106 #endif
107
108
109
110 #ifndef YYLTYPE
111 typedef 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
123 #endif /* not BISON_PARSE_GRAM_H */
124