aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/LuaSL/src/LuaSL_LSL_tree.h
diff options
context:
space:
mode:
authorDavid Walter Seikel2012-01-08 00:20:28 +1000
committerDavid Walter Seikel2012-01-08 00:20:28 +1000
commit428e27426d9e2503b475c4e608ee780bbb9e72e6 (patch)
tree2fed615d391c3c24d42d481df1742fd4a28f9029 /LuaSL/src/LuaSL_LSL_tree.h
parentForget to save first. lol (diff)
downloadSledjHamr-428e27426d9e2503b475c4e608ee780bbb9e72e6.zip
SledjHamr-428e27426d9e2503b475c4e608ee780bbb9e72e6.tar.gz
SledjHamr-428e27426d9e2503b475c4e608ee780bbb9e72e6.tar.bz2
SledjHamr-428e27426d9e2503b475c4e608ee780bbb9e72e6.tar.xz
Parse an actual file.
Diffstat (limited to 'LuaSL/src/LuaSL_LSL_tree.h')
-rw-r--r--LuaSL/src/LuaSL_LSL_tree.h16
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
16extern int yydebug; 19extern 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
26typedef enum
27{
28 FALSE = 0,
29 TRUE = 1
30} boolean;
31#endif
32
21typedef enum 33typedef enum
22{ 34{
23 LSL_NONE = 0, 35 LSL_NONE = 0,