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_RX_RX_PARSE_H_INCLUDED 34# define YY_RX_RX_PARSE_H_INCLUDED 35/* Debug traces. */ 36#ifndef YYDEBUG 37# define YYDEBUG 0 38#endif 39#if YYDEBUG 40extern int rx_debug; 41#endif 42 43/* Token type. */ 44#ifndef YYTOKENTYPE 45# define YYTOKENTYPE 46 enum yytokentype 47 { 48 REG = 258, 49 FLAG = 259, 50 CREG = 260, 51 ACC = 261, 52 EXPR = 262, 53 UNKNOWN_OPCODE = 263, 54 IS_OPCODE = 264, 55 DOT_S = 265, 56 DOT_B = 266, 57 DOT_W = 267, 58 DOT_L = 268, 59 DOT_A = 269, 60 DOT_UB = 270, 61 DOT_UW = 271, 62 ABS = 272, 63 ADC = 273, 64 ADD = 274, 65 AND_ = 275, 66 BCLR = 276, 67 BCND = 277, 68 BMCND = 278, 69 BNOT = 279, 70 BRA = 280, 71 BRK = 281, 72 BSET = 282, 73 BSR = 283, 74 BTST = 284, 75 CLRPSW = 285, 76 CMP = 286, 77 DBT = 287, 78 DIV = 288, 79 DIVU = 289, 80 EDIV = 290, 81 EDIVU = 291, 82 EMACA = 292, 83 EMSBA = 293, 84 EMUL = 294, 85 EMULA = 295, 86 EMULU = 296, 87 FADD = 297, 88 FCMP = 298, 89 FDIV = 299, 90 FMUL = 300, 91 FREIT = 301, 92 FSUB = 302, 93 FSQRT = 303, 94 FTOI = 304, 95 FTOU = 305, 96 INT = 306, 97 ITOF = 307, 98 JMP = 308, 99 JSR = 309, 100 MACHI = 310, 101 MACLH = 311, 102 MACLO = 312, 103 MAX = 313, 104 MIN = 314, 105 MOV = 315, 106 MOVCO = 316, 107 MOVLI = 317, 108 MOVU = 318, 109 MSBHI = 319, 110 MSBLH = 320, 111 MSBLO = 321, 112 MUL = 322, 113 MULHI = 323, 114 MULLH = 324, 115 MULLO = 325, 116 MULU = 326, 117 MVFACHI = 327, 118 MVFACGU = 328, 119 MVFACMI = 329, 120 MVFACLO = 330, 121 MVFC = 331, 122 MVTACGU = 332, 123 MVTACHI = 333, 124 MVTACLO = 334, 125 MVTC = 335, 126 MVTIPL = 336, 127 NEG = 337, 128 NOP = 338, 129 NOT = 339, 130 OR = 340, 131 POP = 341, 132 POPC = 342, 133 POPM = 343, 134 PUSH = 344, 135 PUSHA = 345, 136 PUSHC = 346, 137 PUSHM = 347, 138 RACL = 348, 139 RACW = 349, 140 RDACL = 350, 141 RDACW = 351, 142 REIT = 352, 143 REVL = 353, 144 REVW = 354, 145 RMPA = 355, 146 ROLC = 356, 147 RORC = 357, 148 ROTL = 358, 149 ROTR = 359, 150 ROUND = 360, 151 RTE = 361, 152 RTFI = 362, 153 RTS = 363, 154 RTSD = 364, 155 SAT = 365, 156 SATR = 366, 157 SBB = 367, 158 SCCND = 368, 159 SCMPU = 369, 160 SETPSW = 370, 161 SHAR = 371, 162 SHLL = 372, 163 SHLR = 373, 164 SMOVB = 374, 165 SMOVF = 375, 166 SMOVU = 376, 167 SSTR = 377, 168 STNZ = 378, 169 STOP = 379, 170 STZ = 380, 171 SUB = 381, 172 SUNTIL = 382, 173 SWHILE = 383, 174 TST = 384, 175 UTOF = 385, 176 WAIT = 386, 177 XCHG = 387, 178 XOR = 388 179 }; 180#endif 181/* Tokens. */ 182#define REG 258 183#define FLAG 259 184#define CREG 260 185#define ACC 261 186#define EXPR 262 187#define UNKNOWN_OPCODE 263 188#define IS_OPCODE 264 189#define DOT_S 265 190#define DOT_B 266 191#define DOT_W 267 192#define DOT_L 268 193#define DOT_A 269 194#define DOT_UB 270 195#define DOT_UW 271 196#define ABS 272 197#define ADC 273 198#define ADD 274 199#define AND_ 275 200#define BCLR 276 201#define BCND 277 202#define BMCND 278 203#define BNOT 279 204#define BRA 280 205#define BRK 281 206#define BSET 282 207#define BSR 283 208#define BTST 284 209#define CLRPSW 285 210#define CMP 286 211#define DBT 287 212#define DIV 288 213#define DIVU 289 214#define EDIV 290 215#define EDIVU 291 216#define EMACA 292 217#define EMSBA 293 218#define EMUL 294 219#define EMULA 295 220#define EMULU 296 221#define FADD 297 222#define FCMP 298 223#define FDIV 299 224#define FMUL 300 225#define FREIT 301 226#define FSUB 302 227#define FSQRT 303 228#define FTOI 304 229#define FTOU 305 230#define INT 306 231#define ITOF 307 232#define JMP 308 233#define JSR 309 234#define MACHI 310 235#define MACLH 311 236#define MACLO 312 237#define MAX 313 238#define MIN 314 239#define MOV 315 240#define MOVCO 316 241#define MOVLI 317 242#define MOVU 318 243#define MSBHI 319 244#define MSBLH 320 245#define MSBLO 321 246#define MUL 322 247#define MULHI 323 248#define MULLH 324 249#define MULLO 325 250#define MULU 326 251#define MVFACHI 327 252#define MVFACGU 328 253#define MVFACMI 329 254#define MVFACLO 330 255#define MVFC 331 256#define MVTACGU 332 257#define MVTACHI 333 258#define MVTACLO 334 259#define MVTC 335 260#define MVTIPL 336 261#define NEG 337 262#define NOP 338 263#define NOT 339 264#define OR 340 265#define POP 341 266#define POPC 342 267#define POPM 343 268#define PUSH 344 269#define PUSHA 345 270#define PUSHC 346 271#define PUSHM 347 272#define RACL 348 273#define RACW 349 274#define RDACL 350 275#define RDACW 351 276#define REIT 352 277#define REVL 353 278#define REVW 354 279#define RMPA 355 280#define ROLC 356 281#define RORC 357 282#define ROTL 358 283#define ROTR 359 284#define ROUND 360 285#define RTE 361 286#define RTFI 362 287#define RTS 363 288#define RTSD 364 289#define SAT 365 290#define SATR 366 291#define SBB 367 292#define SCCND 368 293#define SCMPU 369 294#define SETPSW 370 295#define SHAR 371 296#define SHLL 372 297#define SHLR 373 298#define SMOVB 374 299#define SMOVF 375 300#define SMOVU 376 301#define SSTR 377 302#define STNZ 378 303#define STOP 379 304#define STZ 380 305#define SUB 381 306#define SUNTIL 382 307#define SWHILE 383 308#define TST 384 309#define UTOF 385 310#define WAIT 386 311#define XCHG 387 312#define XOR 388 313 314/* Value type. */ 315#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED 316typedef union YYSTYPE YYSTYPE; 317union YYSTYPE 318{ 319#line 135 "./config/rx-parse.y" /* yacc.c:1915 */ 320 321 int regno; 322 expressionS exp; 323 324#line 325 "rx-parse.h" /* yacc.c:1915 */ 325}; 326# define YYSTYPE_IS_TRIVIAL 1 327# define YYSTYPE_IS_DECLARED 1 328#endif 329 330 331extern YYSTYPE rx_lval; 332 333int rx_parse (void); 334 335#endif /* !YY_RX_RX_PARSE_H_INCLUDED */ 336