xref: /netbsd-src/external/gpl3/binutils/dist/gas/config/rl78-parse.h (revision 4f645668ed707e1f969c546666f8c8e45e6f8888)
1 /* A Bison parser, made by GNU Bison 3.8.2.  */
2 
3 /* Bison interface for Yacc-like parsers in C
4 
5    Copyright (C) 1984, 1989-1990, 2000-2015, 2018-2021 Free Software Foundation,
6    Inc.
7 
8    This program is free software: you can redistribute it and/or modify
9    it under the terms of the GNU General Public License as published by
10    the Free Software Foundation, either version 3 of the License, or
11    (at your option) any later version.
12 
13    This program is distributed in the hope that it will be useful,
14    but WITHOUT ANY WARRANTY; without even the implied warranty of
15    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16    GNU General Public License for more details.
17 
18    You should have received a copy of the GNU General Public License
19    along with this program.  If not, see <https://www.gnu.org/licenses/>.  */
20 
21 /* As a special exception, you may create a larger work that contains
22    part or all of the Bison parser skeleton and distribute that work
23    under terms of your choice, so long as that work isn't itself a
24    parser generator using the skeleton or a modified version thereof
25    as a parser skeleton.  Alternatively, if you modify or redistribute
26    the parser skeleton itself, you may (at your option) remove this
27    special exception, which will cause the skeleton and the resulting
28    Bison output files to be licensed under the GNU General Public
29    License without this special exception.
30 
31    This special exception was added by the Free Software Foundation in
32    version 2.2 of Bison.  */
33 
34 /* DO NOT RELY ON FEATURES THAT ARE NOT DOCUMENTED in the manual,
35    especially those whose name start with YY_ or yy_.  They are
36    private implementation details that can be changed or removed.  */
37 
38 #ifndef YY_RL78_CONFIG_RL_PARSE_H_INCLUDED
39 # define YY_RL78_CONFIG_RL_PARSE_H_INCLUDED
40 /* Debug traces.  */
41 #ifndef YYDEBUG
42 # define YYDEBUG 0
43 #endif
44 #if YYDEBUG
45 extern int rl78_debug;
46 #endif
47 
48 /* Token kinds.  */
49 #ifndef YYTOKENTYPE
50 # define YYTOKENTYPE
51   enum yytokentype
52   {
53     YYEMPTY = -2,
54     YYEOF = 0,                     /* "end of file"  */
55     YYerror = 256,                 /* error  */
56     YYUNDEF = 257,                 /* "invalid token"  */
57     A = 258,                       /* A  */
58     X = 259,                       /* X  */
59     B = 260,                       /* B  */
60     C = 261,                       /* C  */
61     D = 262,                       /* D  */
62     E = 263,                       /* E  */
63     H = 264,                       /* H  */
64     L = 265,                       /* L  */
65     AX = 266,                      /* AX  */
66     BC = 267,                      /* BC  */
67     DE = 268,                      /* DE  */
68     HL = 269,                      /* HL  */
69     SPL = 270,                     /* SPL  */
70     SPH = 271,                     /* SPH  */
71     PSW = 272,                     /* PSW  */
72     CS = 273,                      /* CS  */
73     ES = 274,                      /* ES  */
74     PMC = 275,                     /* PMC  */
75     MEM = 276,                     /* MEM  */
76     FLAG = 277,                    /* FLAG  */
77     SP = 278,                      /* SP  */
78     CY = 279,                      /* CY  */
79     RB0 = 280,                     /* RB0  */
80     RB1 = 281,                     /* RB1  */
81     RB2 = 282,                     /* RB2  */
82     RB3 = 283,                     /* RB3  */
83     EXPR = 284,                    /* EXPR  */
84     UNKNOWN_OPCODE = 285,          /* UNKNOWN_OPCODE  */
85     IS_OPCODE = 286,               /* IS_OPCODE  */
86     DOT_S = 287,                   /* DOT_S  */
87     DOT_B = 288,                   /* DOT_B  */
88     DOT_W = 289,                   /* DOT_W  */
89     DOT_L = 290,                   /* DOT_L  */
90     DOT_A = 291,                   /* DOT_A  */
91     DOT_UB = 292,                  /* DOT_UB  */
92     DOT_UW = 293,                  /* DOT_UW  */
93     ADD = 294,                     /* ADD  */
94     ADDC = 295,                    /* ADDC  */
95     ADDW = 296,                    /* ADDW  */
96     AND_ = 297,                    /* AND_  */
97     AND1 = 298,                    /* AND1  */
98     BF = 299,                      /* BF  */
99     BH = 300,                      /* BH  */
100     BNC = 301,                     /* BNC  */
101     BNH = 302,                     /* BNH  */
102     BNZ = 303,                     /* BNZ  */
103     BR = 304,                      /* BR  */
104     BRK = 305,                     /* BRK  */
105     BRK1 = 306,                    /* BRK1  */
106     BT = 307,                      /* BT  */
107     BTCLR = 308,                   /* BTCLR  */
108     BZ = 309,                      /* BZ  */
109     CALL = 310,                    /* CALL  */
110     CALLT = 311,                   /* CALLT  */
111     CLR1 = 312,                    /* CLR1  */
112     CLRB = 313,                    /* CLRB  */
113     CLRW = 314,                    /* CLRW  */
114     CMP = 315,                     /* CMP  */
115     CMP0 = 316,                    /* CMP0  */
116     CMPS = 317,                    /* CMPS  */
117     CMPW = 318,                    /* CMPW  */
118     DEC = 319,                     /* DEC  */
119     DECW = 320,                    /* DECW  */
120     DI = 321,                      /* DI  */
121     DIVHU = 322,                   /* DIVHU  */
122     DIVWU = 323,                   /* DIVWU  */
123     EI = 324,                      /* EI  */
124     HALT = 325,                    /* HALT  */
125     INC = 326,                     /* INC  */
126     INCW = 327,                    /* INCW  */
127     MACH = 328,                    /* MACH  */
128     MACHU = 329,                   /* MACHU  */
129     MOV = 330,                     /* MOV  */
130     MOV1 = 331,                    /* MOV1  */
131     MOVS = 332,                    /* MOVS  */
132     MOVW = 333,                    /* MOVW  */
133     MULH = 334,                    /* MULH  */
134     MULHU = 335,                   /* MULHU  */
135     MULU = 336,                    /* MULU  */
136     NOP = 337,                     /* NOP  */
137     NOT1 = 338,                    /* NOT1  */
138     ONEB = 339,                    /* ONEB  */
139     ONEW = 340,                    /* ONEW  */
140     OR = 341,                      /* OR  */
141     OR1 = 342,                     /* OR1  */
142     POP = 343,                     /* POP  */
143     PUSH = 344,                    /* PUSH  */
144     RET = 345,                     /* RET  */
145     RETI = 346,                    /* RETI  */
146     RETB = 347,                    /* RETB  */
147     ROL = 348,                     /* ROL  */
148     ROLC = 349,                    /* ROLC  */
149     ROLWC = 350,                   /* ROLWC  */
150     ROR = 351,                     /* ROR  */
151     RORC = 352,                    /* RORC  */
152     SAR = 353,                     /* SAR  */
153     SARW = 354,                    /* SARW  */
154     SEL = 355,                     /* SEL  */
155     SET1 = 356,                    /* SET1  */
156     SHL = 357,                     /* SHL  */
157     SHLW = 358,                    /* SHLW  */
158     SHR = 359,                     /* SHR  */
159     SHRW = 360,                    /* SHRW  */
160     SKC = 361,                     /* SKC  */
161     SKH = 362,                     /* SKH  */
162     SKNC = 363,                    /* SKNC  */
163     SKNH = 364,                    /* SKNH  */
164     SKNZ = 365,                    /* SKNZ  */
165     SKZ = 366,                     /* SKZ  */
166     STOP = 367,                    /* STOP  */
167     SUB = 368,                     /* SUB  */
168     SUBC = 369,                    /* SUBC  */
169     SUBW = 370,                    /* SUBW  */
170     XCH = 371,                     /* XCH  */
171     XCHW = 372,                    /* XCHW  */
172     XOR = 373,                     /* XOR  */
173     XOR1 = 374                     /* XOR1  */
174   };
175   typedef enum yytokentype yytoken_kind_t;
176 #endif
177 /* Token kinds.  */
178 #define YYEMPTY -2
179 #define YYEOF 0
180 #define YYerror 256
181 #define YYUNDEF 257
182 #define A 258
183 #define X 259
184 #define B 260
185 #define C 261
186 #define D 262
187 #define E 263
188 #define H 264
189 #define L 265
190 #define AX 266
191 #define BC 267
192 #define DE 268
193 #define HL 269
194 #define SPL 270
195 #define SPH 271
196 #define PSW 272
197 #define CS 273
198 #define ES 274
199 #define PMC 275
200 #define MEM 276
201 #define FLAG 277
202 #define SP 278
203 #define CY 279
204 #define RB0 280
205 #define RB1 281
206 #define RB2 282
207 #define RB3 283
208 #define EXPR 284
209 #define UNKNOWN_OPCODE 285
210 #define IS_OPCODE 286
211 #define DOT_S 287
212 #define DOT_B 288
213 #define DOT_W 289
214 #define DOT_L 290
215 #define DOT_A 291
216 #define DOT_UB 292
217 #define DOT_UW 293
218 #define ADD 294
219 #define ADDC 295
220 #define ADDW 296
221 #define AND_ 297
222 #define AND1 298
223 #define BF 299
224 #define BH 300
225 #define BNC 301
226 #define BNH 302
227 #define BNZ 303
228 #define BR 304
229 #define BRK 305
230 #define BRK1 306
231 #define BT 307
232 #define BTCLR 308
233 #define BZ 309
234 #define CALL 310
235 #define CALLT 311
236 #define CLR1 312
237 #define CLRB 313
238 #define CLRW 314
239 #define CMP 315
240 #define CMP0 316
241 #define CMPS 317
242 #define CMPW 318
243 #define DEC 319
244 #define DECW 320
245 #define DI 321
246 #define DIVHU 322
247 #define DIVWU 323
248 #define EI 324
249 #define HALT 325
250 #define INC 326
251 #define INCW 327
252 #define MACH 328
253 #define MACHU 329
254 #define MOV 330
255 #define MOV1 331
256 #define MOVS 332
257 #define MOVW 333
258 #define MULH 334
259 #define MULHU 335
260 #define MULU 336
261 #define NOP 337
262 #define NOT1 338
263 #define ONEB 339
264 #define ONEW 340
265 #define OR 341
266 #define OR1 342
267 #define POP 343
268 #define PUSH 344
269 #define RET 345
270 #define RETI 346
271 #define RETB 347
272 #define ROL 348
273 #define ROLC 349
274 #define ROLWC 350
275 #define ROR 351
276 #define RORC 352
277 #define SAR 353
278 #define SARW 354
279 #define SEL 355
280 #define SET1 356
281 #define SHL 357
282 #define SHLW 358
283 #define SHR 359
284 #define SHRW 360
285 #define SKC 361
286 #define SKH 362
287 #define SKNC 363
288 #define SKNH 364
289 #define SKNZ 365
290 #define SKZ 366
291 #define STOP 367
292 #define SUB 368
293 #define SUBC 369
294 #define SUBW 370
295 #define XCH 371
296 #define XCHW 372
297 #define XOR 373
298 #define XOR1 374
299 
300 /* Value type.  */
301 #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
302 union YYSTYPE
303 {
304 #line 144 "./config/rl78-parse.y"
305 
306   int regno;
307   expressionS exp;
308 
309 #line 310 "config/rl78-parse.h"
310 
311 };
312 typedef union YYSTYPE YYSTYPE;
313 # define YYSTYPE_IS_TRIVIAL 1
314 # define YYSTYPE_IS_DECLARED 1
315 #endif
316 
317 
318 extern YYSTYPE rl78_lval;
319 
320 
321 int rl78_parse (void);
322 
323 
324 #endif /* !YY_RL78_CONFIG_RL_PARSE_H_INCLUDED  */
325