diff options
Diffstat (limited to 'LuaSL/src/LuaSL_LSL_tree.h')
-rw-r--r-- | LuaSL/src/LuaSL_LSL_tree.h | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/LuaSL/src/LuaSL_LSL_tree.h b/LuaSL/src/LuaSL_LSL_tree.h index 3c30129..ca5f844 100644 --- a/LuaSL/src/LuaSL_LSL_tree.h +++ b/LuaSL/src/LuaSL_LSL_tree.h | |||
@@ -11,7 +11,7 @@ | |||
11 | #include <sys/stat.h> | 11 | #include <sys/stat.h> |
12 | #include <fcntl.h> | 12 | #include <fcntl.h> |
13 | 13 | ||
14 | #include "assert.h" | 14 | #include "assert.h" |
15 | #include <unistd.h> | 15 | #include <unistd.h> |
16 | #include <sys/types.h> | 16 | #include <sys/types.h> |
17 | #include <sys/stat.h> | 17 | #include <sys/stat.h> |
@@ -28,7 +28,7 @@ | |||
28 | #include <luaproc/sched.h> | 28 | #include <luaproc/sched.h> |
29 | 29 | ||
30 | #include "LuaSL_lemon_yaccer.h" | 30 | #include "LuaSL_lemon_yaccer.h" |
31 | 31 | ||
32 | #define YYERRCODE 256 | 32 | #define YYERRCODE 256 |
33 | #define YYDEBUG 1 | 33 | #define YYDEBUG 1 |
34 | 34 | ||
@@ -67,7 +67,7 @@ typedef LSL_Leaf * (*evaluateToken) (LSL_Leaf *content, LSL_Leaf *left, LSL_Lea | |||
67 | //#ifndef FALSE | 67 | //#ifndef FALSE |
68 | //typedef enum | 68 | //typedef enum |
69 | //{ | 69 | //{ |
70 | // FALSE = 0, | 70 | // FALSE = 0, |
71 | // TRUE = 1 | 71 | // TRUE = 1 |
72 | //} boolean; | 72 | //} boolean; |
73 | //#endif | 73 | //#endif |
@@ -266,7 +266,7 @@ struct _LSL_Statement | |||
266 | /* | 266 | /* |
267 | LSL_Leaf *addStatement(LSL_Leaf *lval, LSL_Type type, LSL_Leaf *left, LSL_Leaf *expr, LSL_Leaf *right, LSL_Leaf *block); | 267 | LSL_Leaf *addStatement(LSL_Leaf *lval, LSL_Type type, LSL_Leaf *left, LSL_Leaf *expr, LSL_Leaf *right, LSL_Leaf *block); |
268 | 268 | ||
269 | expr expr // Might be bogus, | 269 | expr expr // Might be bogus, |
270 | Variable defines identifier, optional expr // For these we only store the variable leaf in expressions. | 270 | Variable defines identifier, optional expr // For these we only store the variable leaf in expressions. |
271 | Function define identifier, block, parens // Also function params, but that's stored in the function anyway. | 271 | Function define identifier, block, parens // Also function params, but that's stored in the function anyway. |
272 | state change identifier | 272 | state change identifier |
@@ -395,7 +395,7 @@ Once the parser has condensed things down, it only deals with the | |||
395 | condensed nodes. So we can get rid of some of the AST parts at this | 395 | condensed nodes. So we can get rid of some of the AST parts at this |
396 | time, so long as we keep the relevant information. This is what the | 396 | time, so long as we keep the relevant information. This is what the |
397 | other data structures above are for. Lemon tries to free the no longer | 397 | other data structures above are for. Lemon tries to free the no longer |
398 | needed AST nodes itself, even if we are still using them internally. | 398 | needed AST nodes itself, even if we are still using them internally. |
399 | Need to do something about that. | 399 | Need to do something about that. |
400 | 400 | ||
401 | */ | 401 | */ |
@@ -464,4 +464,3 @@ void ParseFree(void *p, void (*freeProc)(void*)); | |||
464 | 464 | ||
465 | 465 | ||
466 | #endif // __LUASL_LSL_TREE_H__ | 466 | #endif // __LUASL_LSL_TREE_H__ |
467 | |||