2008-04-17 17:03:07 -04:00
|
|
|
|
2008-06-25 03:10:51 -04:00
|
|
|
typedef union
|
|
|
|
#ifdef __cplusplus
|
|
|
|
YYSTYPE
|
|
|
|
#endif
|
|
|
|
{
|
2008-04-17 17:03:07 -04:00
|
|
|
char *str;
|
|
|
|
int var;
|
2008-06-25 03:10:51 -04:00
|
|
|
} YYSTYPE;
|
2008-04-17 17:03:07 -04:00
|
|
|
extern YYSTYPE yylval;
|
2008-06-25 03:10:51 -04:00
|
|
|
# define EOS 257
|
|
|
|
# define BAD 258
|
|
|
|
# define HELP 259
|
|
|
|
# define HEX 260
|
|
|
|
# define DECIMAL 261
|
|
|
|
# define QUIT 262
|
|
|
|
# define ABS 263
|
|
|
|
# define BIN 264
|
|
|
|
# define FIB 265
|
|
|
|
# define GCD 266
|
|
|
|
# define KRON 267
|
|
|
|
# define LCM 268
|
|
|
|
# define LUCNUM 269
|
|
|
|
# define NEXTPRIME 270
|
|
|
|
# define POWM 271
|
|
|
|
# define ROOT 272
|
|
|
|
# define SQRT 273
|
|
|
|
# define NUMBER 274
|
|
|
|
# define VARIABLE 275
|
|
|
|
# define LOR 276
|
|
|
|
# define LAND 277
|
|
|
|
# define EQ 278
|
|
|
|
# define NE 279
|
|
|
|
# define LE 280
|
|
|
|
# define GE 281
|
|
|
|
# define LSHIFT 282
|
|
|
|
# define RSHIFT 283
|
|
|
|
# define UMINUS 284
|