1 2 #ifndef LSTX_H 3 #define LSTX_H 4 5 namespace Grim { 6 7 typedef union { 8 int vInt; 9 float vReal; 10 char *pChar; 11 long vLong; 12 TaggedString *pTStr; 13 TProtoFunc *pFunc; 14 } YYSTYPE; 15 16 #define WRONGTOKEN 258 17 #define NIL 259 18 #define IF 260 19 #define THEN 261 20 #define ELSE 262 21 #define ELSEIF 263 22 #define WHILE 264 23 #define DO 265 24 #define REPEAT 266 25 #define UNTIL 267 26 #define END 268 27 #define RETURN 269 28 #define LOCAL 270 29 #define FUNCTION 271 30 #define DOTS 272 31 #define NUMBER 273 32 #define NAME 274 33 #define STRING 275 34 #define AND 276 35 #define OR 277 36 #define EQ 278 37 #define NE 279 38 #define LE 280 39 #define GE 281 40 #define CONC 282 41 #define UNARY 283 42 #define NOT 284 43 44 45 extern YYSTYPE luaY_lval; 46 47 } // end of namespace Grim 48 49 #endif 50