1 | /* A Bison parser, made by GNU Bison 2.3. */
|
---|
2 |
|
---|
3 | /* Skeleton interface for Bison's Yacc-like parsers in C
|
---|
4 |
|
---|
5 | Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006
|
---|
6 | Free Software Foundation, 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 2, or (at your option)
|
---|
11 | 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, write to the Free Software
|
---|
20 | Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
---|
21 | Boston, MA 02110-1301, USA. */
|
---|
22 |
|
---|
23 | /* As a special exception, you may create a larger work that contains
|
---|
24 | part or all of the Bison parser skeleton and distribute that work
|
---|
25 | under terms of your choice, so long as that work isn't itself a
|
---|
26 | parser generator using the skeleton or a modified version thereof
|
---|
27 | as a parser skeleton. Alternatively, if you modify or redistribute
|
---|
28 | the parser skeleton itself, you may (at your option) remove this
|
---|
29 | special exception, which will cause the skeleton and the resulting
|
---|
30 | Bison output files to be licensed under the GNU General Public
|
---|
31 | License without this special exception.
|
---|
32 |
|
---|
33 | This special exception was added by the Free Software Foundation in
|
---|
34 | version 2.2 of Bison. */
|
---|
35 |
|
---|
36 | /* Tokens. */
|
---|
37 | #ifndef YYTOKENTYPE
|
---|
38 | # define YYTOKENTYPE
|
---|
39 | /* Put the tokens into the symbol table, so that GDB and other debuggers
|
---|
40 | know about them. */
|
---|
41 | enum yytokentype {
|
---|
42 | REG = 258,
|
---|
43 | FLAG = 259,
|
---|
44 | CREG = 260,
|
---|
45 | EXPR = 261,
|
---|
46 | UNKNOWN_OPCODE = 262,
|
---|
47 | IS_OPCODE = 263,
|
---|
48 | DOT_S = 264,
|
---|
49 | DOT_B = 265,
|
---|
50 | DOT_W = 266,
|
---|
51 | DOT_L = 267,
|
---|
52 | DOT_A = 268,
|
---|
53 | DOT_UB = 269,
|
---|
54 | DOT_UW = 270,
|
---|
55 | ABS = 271,
|
---|
56 | ADC = 272,
|
---|
57 | ADD = 273,
|
---|
58 | AND_ = 274,
|
---|
59 | BCLR = 275,
|
---|
60 | BCND = 276,
|
---|
61 | BMCND = 277,
|
---|
62 | BNOT = 278,
|
---|
63 | BRA = 279,
|
---|
64 | BRK = 280,
|
---|
65 | BSET = 281,
|
---|
66 | BSR = 282,
|
---|
67 | BTST = 283,
|
---|
68 | CLRPSW = 284,
|
---|
69 | CMP = 285,
|
---|
70 | DBT = 286,
|
---|
71 | DIV = 287,
|
---|
72 | DIVU = 288,
|
---|
73 | EDIV = 289,
|
---|
74 | EDIVU = 290,
|
---|
75 | EMUL = 291,
|
---|
76 | EMULU = 292,
|
---|
77 | FADD = 293,
|
---|
78 | FCMP = 294,
|
---|
79 | FDIV = 295,
|
---|
80 | FMUL = 296,
|
---|
81 | FREIT = 297,
|
---|
82 | FSUB = 298,
|
---|
83 | FTOI = 299,
|
---|
84 | INT = 300,
|
---|
85 | ITOF = 301,
|
---|
86 | JMP = 302,
|
---|
87 | JSR = 303,
|
---|
88 | MACHI = 304,
|
---|
89 | MACLO = 305,
|
---|
90 | MAX = 306,
|
---|
91 | MIN = 307,
|
---|
92 | MOV = 308,
|
---|
93 | MOVU = 309,
|
---|
94 | MUL = 310,
|
---|
95 | MULHI = 311,
|
---|
96 | MULLO = 312,
|
---|
97 | MULU = 313,
|
---|
98 | MVFACHI = 314,
|
---|
99 | MVFACMI = 315,
|
---|
100 | MVFACLO = 316,
|
---|
101 | MVFC = 317,
|
---|
102 | MVTACHI = 318,
|
---|
103 | MVTACLO = 319,
|
---|
104 | MVTC = 320,
|
---|
105 | MVTIPL = 321,
|
---|
106 | NEG = 322,
|
---|
107 | NOP = 323,
|
---|
108 | NOT = 324,
|
---|
109 | OR = 325,
|
---|
110 | POP = 326,
|
---|
111 | POPC = 327,
|
---|
112 | POPM = 328,
|
---|
113 | PUSH = 329,
|
---|
114 | PUSHA = 330,
|
---|
115 | PUSHC = 331,
|
---|
116 | PUSHM = 332,
|
---|
117 | RACW = 333,
|
---|
118 | REIT = 334,
|
---|
119 | REVL = 335,
|
---|
120 | REVW = 336,
|
---|
121 | RMPA = 337,
|
---|
122 | ROLC = 338,
|
---|
123 | RORC = 339,
|
---|
124 | ROTL = 340,
|
---|
125 | ROTR = 341,
|
---|
126 | ROUND = 342,
|
---|
127 | RTE = 343,
|
---|
128 | RTFI = 344,
|
---|
129 | RTS = 345,
|
---|
130 | RTSD = 346,
|
---|
131 | SAT = 347,
|
---|
132 | SATR = 348,
|
---|
133 | SBB = 349,
|
---|
134 | SCCND = 350,
|
---|
135 | SCMPU = 351,
|
---|
136 | SETPSW = 352,
|
---|
137 | SHAR = 353,
|
---|
138 | SHLL = 354,
|
---|
139 | SHLR = 355,
|
---|
140 | SMOVB = 356,
|
---|
141 | SMOVF = 357,
|
---|
142 | SMOVU = 358,
|
---|
143 | SSTR = 359,
|
---|
144 | STNZ = 360,
|
---|
145 | STOP = 361,
|
---|
146 | STZ = 362,
|
---|
147 | SUB = 363,
|
---|
148 | SUNTIL = 364,
|
---|
149 | SWHILE = 365,
|
---|
150 | TST = 366,
|
---|
151 | WAIT = 367,
|
---|
152 | XCHG = 368,
|
---|
153 | XOR = 369
|
---|
154 | };
|
---|
155 | #endif
|
---|
156 | /* Tokens. */
|
---|
157 | #define REG 258
|
---|
158 | #define FLAG 259
|
---|
159 | #define CREG 260
|
---|
160 | #define EXPR 261
|
---|
161 | #define UNKNOWN_OPCODE 262
|
---|
162 | #define IS_OPCODE 263
|
---|
163 | #define DOT_S 264
|
---|
164 | #define DOT_B 265
|
---|
165 | #define DOT_W 266
|
---|
166 | #define DOT_L 267
|
---|
167 | #define DOT_A 268
|
---|
168 | #define DOT_UB 269
|
---|
169 | #define DOT_UW 270
|
---|
170 | #define ABS 271
|
---|
171 | #define ADC 272
|
---|
172 | #define ADD 273
|
---|
173 | #define AND_ 274
|
---|
174 | #define BCLR 275
|
---|
175 | #define BCND 276
|
---|
176 | #define BMCND 277
|
---|
177 | #define BNOT 278
|
---|
178 | #define BRA 279
|
---|
179 | #define BRK 280
|
---|
180 | #define BSET 281
|
---|
181 | #define BSR 282
|
---|
182 | #define BTST 283
|
---|
183 | #define CLRPSW 284
|
---|
184 | #define CMP 285
|
---|
185 | #define DBT 286
|
---|
186 | #define DIV 287
|
---|
187 | #define DIVU 288
|
---|
188 | #define EDIV 289
|
---|
189 | #define EDIVU 290
|
---|
190 | #define EMUL 291
|
---|
191 | #define EMULU 292
|
---|
192 | #define FADD 293
|
---|
193 | #define FCMP 294
|
---|
194 | #define FDIV 295
|
---|
195 | #define FMUL 296
|
---|
196 | #define FREIT 297
|
---|
197 | #define FSUB 298
|
---|
198 | #define FTOI 299
|
---|
199 | #define INT 300
|
---|
200 | #define ITOF 301
|
---|
201 | #define JMP 302
|
---|
202 | #define JSR 303
|
---|
203 | #define MACHI 304
|
---|
204 | #define MACLO 305
|
---|
205 | #define MAX 306
|
---|
206 | #define MIN 307
|
---|
207 | #define MOV 308
|
---|
208 | #define MOVU 309
|
---|
209 | #define MUL 310
|
---|
210 | #define MULHI 311
|
---|
211 | #define MULLO 312
|
---|
212 | #define MULU 313
|
---|
213 | #define MVFACHI 314
|
---|
214 | #define MVFACMI 315
|
---|
215 | #define MVFACLO 316
|
---|
216 | #define MVFC 317
|
---|
217 | #define MVTACHI 318
|
---|
218 | #define MVTACLO 319
|
---|
219 | #define MVTC 320
|
---|
220 | #define MVTIPL 321
|
---|
221 | #define NEG 322
|
---|
222 | #define NOP 323
|
---|
223 | #define NOT 324
|
---|
224 | #define OR 325
|
---|
225 | #define POP 326
|
---|
226 | #define POPC 327
|
---|
227 | #define POPM 328
|
---|
228 | #define PUSH 329
|
---|
229 | #define PUSHA 330
|
---|
230 | #define PUSHC 331
|
---|
231 | #define PUSHM 332
|
---|
232 | #define RACW 333
|
---|
233 | #define REIT 334
|
---|
234 | #define REVL 335
|
---|
235 | #define REVW 336
|
---|
236 | #define RMPA 337
|
---|
237 | #define ROLC 338
|
---|
238 | #define RORC 339
|
---|
239 | #define ROTL 340
|
---|
240 | #define ROTR 341
|
---|
241 | #define ROUND 342
|
---|
242 | #define RTE 343
|
---|
243 | #define RTFI 344
|
---|
244 | #define RTS 345
|
---|
245 | #define RTSD 346
|
---|
246 | #define SAT 347
|
---|
247 | #define SATR 348
|
---|
248 | #define SBB 349
|
---|
249 | #define SCCND 350
|
---|
250 | #define SCMPU 351
|
---|
251 | #define SETPSW 352
|
---|
252 | #define SHAR 353
|
---|
253 | #define SHLL 354
|
---|
254 | #define SHLR 355
|
---|
255 | #define SMOVB 356
|
---|
256 | #define SMOVF 357
|
---|
257 | #define SMOVU 358
|
---|
258 | #define SSTR 359
|
---|
259 | #define STNZ 360
|
---|
260 | #define STOP 361
|
---|
261 | #define STZ 362
|
---|
262 | #define SUB 363
|
---|
263 | #define SUNTIL 364
|
---|
264 | #define SWHILE 365
|
---|
265 | #define TST 366
|
---|
266 | #define WAIT 367
|
---|
267 | #define XCHG 368
|
---|
268 | #define XOR 369
|
---|
269 |
|
---|
270 |
|
---|
271 |
|
---|
272 |
|
---|
273 | #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
|
---|
274 | typedef union YYSTYPE
|
---|
275 | #line 134 "rx-parse.y"
|
---|
276 | {
|
---|
277 | int regno;
|
---|
278 | expressionS exp;
|
---|
279 | }
|
---|
280 | /* Line 1529 of yacc.c. */
|
---|
281 | #line 282 "rx-parse.h"
|
---|
282 | YYSTYPE;
|
---|
283 | # define yystype YYSTYPE /* obsolescent; will be withdrawn */
|
---|
284 | # define YYSTYPE_IS_DECLARED 1
|
---|
285 | # define YYSTYPE_IS_TRIVIAL 1
|
---|
286 | #endif
|
---|
287 |
|
---|
288 | extern YYSTYPE rx_lval;
|
---|
289 |
|
---|