[12781] | 1 | #ifndef _EXPARSE_H |
---|
| 2 | #define _EXPARSE_H |
---|
| 3 | |
---|
| 4 | /* A Bison parser, made by GNU Bison 2.4.1. */ |
---|
| 5 | |
---|
| 6 | /* Skeleton interface for Bison's Yacc-like parsers in C |
---|
| 7 | |
---|
| 8 | Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006 |
---|
| 9 | Free Software Foundation, Inc. |
---|
| 10 | |
---|
| 11 | This program is free software: you can redistribute it and/or modify |
---|
| 12 | it under the terms of the GNU General Public License as published by |
---|
| 13 | the Free Software Foundation, either version 3 of the License, or |
---|
| 14 | (at your option) any later version. |
---|
| 15 | |
---|
| 16 | This program is distributed in the hope that it will be useful, |
---|
| 17 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
| 18 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
| 19 | GNU General Public License for more details. |
---|
| 20 | |
---|
| 21 | You should have received a copy of the GNU General Public License |
---|
| 22 | along with this program. If not, see <http://www.gnu.org/licenses/>. */ |
---|
| 23 | |
---|
| 24 | /* As a special exception, you may create a larger work that contains |
---|
| 25 | part or all of the Bison parser skeleton and distribute that work |
---|
| 26 | under terms of your choice, so long as that work isn't itself a |
---|
| 27 | parser generator using the skeleton or a modified version thereof |
---|
| 28 | as a parser skeleton. Alternatively, if you modify or redistribute |
---|
| 29 | the parser skeleton itself, you may (at your option) remove this |
---|
| 30 | special exception, which will cause the skeleton and the resulting |
---|
| 31 | Bison output files to be licensed under the GNU General Public |
---|
| 32 | License without this special exception. |
---|
| 33 | |
---|
| 34 | This special exception was added by the Free Software Foundation in |
---|
| 35 | version 2.2 of Bison. */ |
---|
| 36 | |
---|
| 37 | |
---|
| 38 | /* Tokens. */ |
---|
| 39 | #ifndef EXTOKENTYPE |
---|
| 40 | # define EXTOKENTYPE |
---|
| 41 | /* Put the tokens into the symbol table, so that GDB and other debuggers |
---|
| 42 | know about them. */ |
---|
| 43 | enum extokentype { |
---|
| 44 | MINTOKEN = 258, |
---|
| 45 | INTEGER = 259, |
---|
| 46 | UNSIGNED = 260, |
---|
| 47 | CHARACTER = 261, |
---|
| 48 | FLOATING = 262, |
---|
| 49 | STRING = 263, |
---|
| 50 | VOIDTYPE = 264, |
---|
| 51 | ADDRESS = 265, |
---|
| 52 | ARRAY = 266, |
---|
| 53 | BREAK = 267, |
---|
| 54 | CALL = 268, |
---|
| 55 | CASE = 269, |
---|
| 56 | CONSTANT = 270, |
---|
| 57 | CONTINUE = 271, |
---|
| 58 | DECLARE = 272, |
---|
| 59 | DEFAULT = 273, |
---|
| 60 | DYNAMIC = 274, |
---|
| 61 | ELSE = 275, |
---|
| 62 | EXIT = 276, |
---|
| 63 | FOR = 277, |
---|
| 64 | FUNCTION = 278, |
---|
| 65 | GSUB = 279, |
---|
| 66 | ITERATE = 280, |
---|
| 67 | ITERATER = 281, |
---|
| 68 | ID = 282, |
---|
| 69 | IF = 283, |
---|
| 70 | LABEL = 284, |
---|
| 71 | MEMBER = 285, |
---|
| 72 | NAME = 286, |
---|
| 73 | POS = 287, |
---|
| 74 | PRAGMA = 288, |
---|
| 75 | PRE = 289, |
---|
| 76 | PRINT = 290, |
---|
| 77 | PRINTF = 291, |
---|
| 78 | PROCEDURE = 292, |
---|
| 79 | QUERY = 293, |
---|
| 80 | RAND = 294, |
---|
| 81 | RETURN = 295, |
---|
| 82 | SCANF = 296, |
---|
| 83 | SPLIT = 297, |
---|
| 84 | SPRINTF = 298, |
---|
| 85 | SRAND = 299, |
---|
| 86 | SSCANF = 300, |
---|
| 87 | SUB = 301, |
---|
| 88 | SUBSTR = 302, |
---|
| 89 | SWITCH = 303, |
---|
| 90 | TOKENS = 304, |
---|
| 91 | UNSET = 305, |
---|
| 92 | WHILE = 306, |
---|
| 93 | F2I = 307, |
---|
| 94 | F2S = 308, |
---|
| 95 | I2F = 309, |
---|
| 96 | I2S = 310, |
---|
| 97 | S2B = 311, |
---|
| 98 | S2F = 312, |
---|
| 99 | S2I = 313, |
---|
| 100 | F2X = 314, |
---|
| 101 | I2X = 315, |
---|
| 102 | S2X = 316, |
---|
| 103 | X2F = 317, |
---|
| 104 | X2I = 318, |
---|
| 105 | X2S = 319, |
---|
| 106 | X2X = 320, |
---|
| 107 | XPRINT = 321, |
---|
| 108 | OR = 322, |
---|
| 109 | AND = 323, |
---|
| 110 | NE = 324, |
---|
| 111 | EQ = 325, |
---|
| 112 | GE = 326, |
---|
| 113 | LE = 327, |
---|
| 114 | RS = 328, |
---|
| 115 | LS = 329, |
---|
| 116 | // IN = 330, |
---|
| 117 | UNARY = 331, |
---|
| 118 | DEC = 332, |
---|
| 119 | INC = 333, |
---|
| 120 | CAST = 334, |
---|
| 121 | MAXTOKEN = 335 |
---|
| 122 | }; |
---|
| 123 | #endif |
---|
| 124 | /* Tokens. */ |
---|
| 125 | #define MINTOKEN 258 |
---|
| 126 | #define INTEGER 259 |
---|
| 127 | #define UNSIGNED 260 |
---|
| 128 | #define CHARACTER 261 |
---|
| 129 | #define FLOATING 262 |
---|
| 130 | #define STRING 263 |
---|
| 131 | #define VOIDTYPE 264 |
---|
| 132 | #define ADDRESS 265 |
---|
| 133 | #define ARRAY 266 |
---|
| 134 | #define BREAK 267 |
---|
| 135 | #define CALL 268 |
---|
| 136 | #define CASE 269 |
---|
| 137 | #define CONSTANT 270 |
---|
| 138 | #define CONTINUE 271 |
---|
| 139 | #define DECLARE 272 |
---|
| 140 | #define DEFAULT 273 |
---|
| 141 | #define DYNAMIC 274 |
---|
| 142 | #define ELSE 275 |
---|
| 143 | #define EXIT 276 |
---|
| 144 | #define FOR 277 |
---|
| 145 | #define FUNCTION 278 |
---|
| 146 | #define GSUB 279 |
---|
| 147 | #define ITERATE 280 |
---|
| 148 | #define ITERATER 281 |
---|
| 149 | #define ID 282 |
---|
| 150 | #define IF 283 |
---|
| 151 | #define LABEL 284 |
---|
| 152 | #define MEMBER 285 |
---|
| 153 | #define NAME 286 |
---|
| 154 | #define POS 287 |
---|
| 155 | #define PRAGMA 288 |
---|
| 156 | #define PRE 289 |
---|
| 157 | #define PRINT 290 |
---|
| 158 | #define PRINTF 291 |
---|
| 159 | #define PROCEDURE 292 |
---|
| 160 | #define QUERY 293 |
---|
| 161 | #define RAND 294 |
---|
| 162 | #define RETURN 295 |
---|
| 163 | #define SCANF 296 |
---|
| 164 | #define SPLIT 297 |
---|
| 165 | #define SPRINTF 298 |
---|
| 166 | #define SRAND 299 |
---|
| 167 | #define SSCANF 300 |
---|
| 168 | #define SUB 301 |
---|
| 169 | #define SUBSTR 302 |
---|
| 170 | #define SWITCH 303 |
---|
| 171 | #define TOKENS 304 |
---|
| 172 | #define UNSET 305 |
---|
| 173 | #define WHILE 306 |
---|
| 174 | #define F2I 307 |
---|
| 175 | #define F2S 308 |
---|
| 176 | #define I2F 309 |
---|
| 177 | #define I2S 310 |
---|
| 178 | #define S2B 311 |
---|
| 179 | #define S2F 312 |
---|
| 180 | #define S2I 313 |
---|
| 181 | #define F2X 314 |
---|
| 182 | #define I2X 315 |
---|
| 183 | #define S2X 316 |
---|
| 184 | #define X2F 317 |
---|
| 185 | #define X2I 318 |
---|
| 186 | #define X2S 319 |
---|
| 187 | #define X2X 320 |
---|
| 188 | #define XPRINT 321 |
---|
| 189 | #define OR 322 |
---|
| 190 | #define AND 323 |
---|
| 191 | #define NE 324 |
---|
| 192 | #define EQ 325 |
---|
| 193 | #define GE 326 |
---|
| 194 | #define LE 327 |
---|
| 195 | #define RS 328 |
---|
| 196 | #define LS 329 |
---|
| 197 | #define IN 330 |
---|
| 198 | #define UNARY 331 |
---|
| 199 | #define DEC 332 |
---|
| 200 | #define INC 333 |
---|
| 201 | #define CAST 334 |
---|
| 202 | #define MAXTOKEN 335 |
---|
| 203 | |
---|
| 204 | |
---|
| 205 | |
---|
| 206 | |
---|
| 207 | #if ! defined EXSTYPE && ! defined EXSTYPE_IS_DECLARED |
---|
| 208 | typedef union EXSTYPE |
---|
| 209 | { |
---|
| 210 | |
---|
| 211 | /* Line 1676 of yacc.c */ |
---|
| 212 | #line 45 "../../lib/expr/exparse.y" |
---|
| 213 | |
---|
| 214 | struct Exnode_s*expr; |
---|
| 215 | double floating; |
---|
| 216 | struct Exref_s* reference; |
---|
| 217 | struct Exid_s* id; |
---|
| 218 | Sflong_t integer; |
---|
| 219 | int op; |
---|
| 220 | char* string; |
---|
| 221 | void* user; |
---|
| 222 | struct Exbuf_s* buffer; |
---|
| 223 | |
---|
| 224 | |
---|
| 225 | |
---|
| 226 | /* Line 1676 of yacc.c */ |
---|
| 227 | #line 226 "y.tab.h" |
---|
| 228 | } EXSTYPE; |
---|
| 229 | # define EXSTYPE_IS_TRIVIAL 1 |
---|
| 230 | # define exstype EXSTYPE /* obsolescent; will be withdrawn */ |
---|
| 231 | # define EXSTYPE_IS_DECLARED 1 |
---|
| 232 | #endif |
---|
| 233 | |
---|
| 234 | extern EXSTYPE exlval; |
---|
| 235 | |
---|
| 236 | |
---|
| 237 | #endif /* _EXPARSE_H */ |
---|