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