1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287
|
/* A Bison parser, made by GNU Bison 2.3. */
/* Skeleton interface for Bison's Yacc-like parsers in C
Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006
Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option)
any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA. */
/* As a special exception, you may create a larger work that contains
part or all of the Bison parser skeleton and distribute that work
under terms of your choice, so long as that work isn't itself a
parser generator using the skeleton or a modified version thereof
as a parser skeleton. Alternatively, if you modify or redistribute
the parser skeleton itself, you may (at your option) remove this
special exception, which will cause the skeleton and the resulting
Bison output files to be licensed under the GNU General Public
License without this special exception.
This special exception was added by the Free Software Foundation in
version 2.2 of Bison. */
/* Tokens. */
#ifndef YYTOKENTYPE
# define YYTOKENTYPE
/* Put the tokens into the symbol table, so that GDB and other debuggers
know about them. */
enum yytokentype {
DEC_CMD = 258,
OCT_CMD = 259,
HEX_CMD = 260,
BIN_CMD = 261,
GUARD_CMD = 262,
DISPLAY_PREFS_CMD = 263,
RADIAN_CMD = 264,
REMEMBER_CMD = 265,
LISTVAR_CMD = 266,
STORE_CMD = 267,
CMOD_CMD = 268,
PRINT_HELP_CMD = 269,
PREFIX_CMD = 270,
INT_CMD = 271,
VERBOSE_CMD = 272,
DELIM_CMD = 273,
ENG_CMD = 274,
HLIMIT_CMD = 275,
ROUNDING_INDICATION_CMD = 276,
PRECISION_CMD = 277,
BITS_CMD = 278,
BASE_CMD = 279,
CONVERT_CMD = 280,
EOLN = 281,
OPEN_PARENTHESES = 282,
CLOSE_PARENTHESES = 283,
OPEN_BRACE = 284,
CLOSE_BRACE = 285,
OPEN_BRACKET = 286,
CLOSE_BRACKET = 287,
WPLUS = 288,
WMINUS = 289,
WMULT = 290,
WDIV = 291,
WMOD = 292,
EQUALS_SIGN = 293,
WPOW = 294,
WEXP = 295,
WSQR = 296,
WOR = 297,
WAND = 298,
WEQUAL = 299,
WNEQUAL = 300,
WGT = 301,
WLT = 302,
WGEQ = 303,
WLEQ = 304,
WLSHFT = 305,
WRSHFT = 306,
WBOR = 307,
WBAND = 308,
WBXOR = 309,
WBNOT = 310,
WNOT = 311,
WLOG = 312,
WLN = 313,
WROUND = 314,
WABS = 315,
WSQRT = 316,
WCEIL = 317,
WFLOOR = 318,
WCBRT = 319,
WLOGTWO = 320,
WBANG = 321,
WSIN = 322,
WCOS = 323,
WTAN = 324,
WASIN = 325,
WACOS = 326,
WATAN = 327,
WSINH = 328,
WCOSH = 329,
WTANH = 330,
WASINH = 331,
WACOSH = 332,
WATANH = 333,
WCOT = 334,
WACOT = 335,
WCOTH = 336,
WACOTH = 337,
WRAND = 338,
WIRAND = 339,
WFACT = 340,
WCOMP = 341,
WSEC = 342,
WCSC = 343,
WASEC = 344,
WACSC = 345,
WSECH = 346,
WCSCH = 347,
WASECH = 348,
WACSCH = 349,
WEINT = 350,
WGAMMA = 351,
WLNGAMMA = 352,
WZETA = 353,
WSINC = 354,
NUMBER = 355,
VARIABLE = 356,
STRING = 357,
OPEN_CMD = 358,
SAVE_CMD = 359,
ASSIGNMENT = 360,
IDSEP_CMD = 361,
DSEP_CMD = 362,
ITSEP_CMD = 363,
TSEP_CMD = 364,
WNEG = 365
};
#endif
/* Tokens. */
#define DEC_CMD 258
#define OCT_CMD 259
#define HEX_CMD 260
#define BIN_CMD 261
#define GUARD_CMD 262
#define DISPLAY_PREFS_CMD 263
#define RADIAN_CMD 264
#define REMEMBER_CMD 265
#define LISTVAR_CMD 266
#define STORE_CMD 267
#define CMOD_CMD 268
#define PRINT_HELP_CMD 269
#define PREFIX_CMD 270
#define INT_CMD 271
#define VERBOSE_CMD 272
#define DELIM_CMD 273
#define ENG_CMD 274
#define HLIMIT_CMD 275
#define ROUNDING_INDICATION_CMD 276
#define PRECISION_CMD 277
#define BITS_CMD 278
#define BASE_CMD 279
#define CONVERT_CMD 280
#define EOLN 281
#define OPEN_PARENTHESES 282
#define CLOSE_PARENTHESES 283
#define OPEN_BRACE 284
#define CLOSE_BRACE 285
#define OPEN_BRACKET 286
#define CLOSE_BRACKET 287
#define WPLUS 288
#define WMINUS 289
#define WMULT 290
#define WDIV 291
#define WMOD 292
#define EQUALS_SIGN 293
#define WPOW 294
#define WEXP 295
#define WSQR 296
#define WOR 297
#define WAND 298
#define WEQUAL 299
#define WNEQUAL 300
#define WGT 301
#define WLT 302
#define WGEQ 303
#define WLEQ 304
#define WLSHFT 305
#define WRSHFT 306
#define WBOR 307
#define WBAND 308
#define WBXOR 309
#define WBNOT 310
#define WNOT 311
#define WLOG 312
#define WLN 313
#define WROUND 314
#define WABS 315
#define WSQRT 316
#define WCEIL 317
#define WFLOOR 318
#define WCBRT 319
#define WLOGTWO 320
#define WBANG 321
#define WSIN 322
#define WCOS 323
#define WTAN 324
#define WASIN 325
#define WACOS 326
#define WATAN 327
#define WSINH 328
#define WCOSH 329
#define WTANH 330
#define WASINH 331
#define WACOSH 332
#define WATANH 333
#define WCOT 334
#define WACOT 335
#define WCOTH 336
#define WACOTH 337
#define WRAND 338
#define WIRAND 339
#define WFACT 340
#define WCOMP 341
#define WSEC 342
#define WCSC 343
#define WASEC 344
#define WACSC 345
#define WSECH 346
#define WCSCH 347
#define WASECH 348
#define WACSCH 349
#define WEINT 350
#define WGAMMA 351
#define WLNGAMMA 352
#define WZETA 353
#define WSINC 354
#define NUMBER 355
#define VARIABLE 356
#define STRING 357
#define OPEN_CMD 358
#define SAVE_CMD 359
#define ASSIGNMENT 360
#define IDSEP_CMD 361
#define DSEP_CMD 362
#define ITSEP_CMD 363
#define TSEP_CMD 364
#define WNEG 365
#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
typedef union YYSTYPE
#line 59 "parser.y"
{ /* the types that we use in the tokens */
enum functions function;
enum operations operation;
Number number;
int integer;
enum commands cmd;
char * variable;
char character;
struct conv_req conver;
}
/* Line 1489 of yacc.c. */
#line 280 "parser.h"
YYSTYPE;
# define yystype YYSTYPE /* obsolescent; will be withdrawn */
# define YYSTYPE_IS_DECLARED 1
# define YYSTYPE_IS_TRIVIAL 1
#endif
extern YYSTYPE yylval;
|