diff options
Diffstat (limited to 'LuaSL/src/LuaSL_LSL_tree.h')
-rw-r--r-- | LuaSL/src/LuaSL_LSL_tree.h | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/LuaSL/src/LuaSL_LSL_tree.h b/LuaSL/src/LuaSL_LSL_tree.h index 750d3f7..e01273b 100644 --- a/LuaSL/src/LuaSL_LSL_tree.h +++ b/LuaSL/src/LuaSL_LSL_tree.h | |||
@@ -3,14 +3,17 @@ | |||
3 | #define __EXPRESSION_H__ | 3 | #define __EXPRESSION_H__ |
4 | 4 | ||
5 | //#define LUASL_USE_ENUM | 5 | //#define LUASL_USE_ENUM |
6 | #define LUASL_DEBUG | 6 | //#define LUASL_DEBUG |
7 | 7 | ||
8 | #ifndef LUASL_USE_ENUM | 8 | #ifndef LUASL_USE_ENUM |
9 | #include "LuaSL_yaccer.tab.h" | 9 | #include "LuaSL_yaccer.tab.h" |
10 | #endif | 10 | #endif |
11 | 11 | ||
12 | #include <stddef.h> // So we can have NULL defined. | 12 | #include <stddef.h> // So we can have NULL defined. |
13 | 13 | #include <sys/types.h> | |
14 | #include <sys/stat.h> | ||
15 | #include <fcntl.h> | ||
16 | |||
14 | #define YYERRCODE 256 | 17 | #define YYERRCODE 256 |
15 | #define YYDEBUG 1 | 18 | #define YYDEBUG 1 |
16 | extern int yydebug; | 19 | extern int yydebug; |
@@ -18,6 +21,15 @@ extern int yydebug; | |||
18 | 21 | ||
19 | // http://w-hat.com/stackdepth is a useful discussion about some aspects of the LL parser. | 22 | // http://w-hat.com/stackdepth is a useful discussion about some aspects of the LL parser. |
20 | 23 | ||
24 | #ifndef FALSE | ||
25 | // NEVER change this | ||
26 | typedef enum | ||
27 | { | ||
28 | FALSE = 0, | ||
29 | TRUE = 1 | ||
30 | } boolean; | ||
31 | #endif | ||
32 | |||
21 | typedef enum | 33 | typedef enum |
22 | { | 34 | { |
23 | LSL_NONE = 0, | 35 | LSL_NONE = 0, |