diff options
Diffstat (limited to 'LuaSL/src/LuaSL_LSL_tree.h')
-rw-r--r-- | LuaSL/src/LuaSL_LSL_tree.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/LuaSL/src/LuaSL_LSL_tree.h b/LuaSL/src/LuaSL_LSL_tree.h index 533237a..558dc8d 100644 --- a/LuaSL/src/LuaSL_LSL_tree.h +++ b/LuaSL/src/LuaSL_LSL_tree.h | |||
@@ -3,6 +3,7 @@ | |||
3 | #define __LSL_TREE_H__ | 3 | #define __LSL_TREE_H__ |
4 | 4 | ||
5 | #define LUASL_DEBUG | 5 | #define LUASL_DEBUG |
6 | //#define LUASL_FILES | ||
6 | 7 | ||
7 | 8 | ||
8 | #include <stddef.h> // So we can have NULL defined. | 9 | #include <stddef.h> // So we can have NULL defined. |
@@ -173,6 +174,10 @@ typedef struct | |||
173 | char *ignorableText; | 174 | char *ignorableText; |
174 | int column; | 175 | int column; |
175 | int line; | 176 | int line; |
177 | int argc; | ||
178 | char **argv; | ||
179 | char *fileName; | ||
180 | FILE *file; | ||
176 | } LuaSL_yyparseExtra; | 181 | } LuaSL_yyparseExtra; |
177 | 182 | ||
178 | 183 | ||
@@ -201,6 +206,7 @@ typedef struct | |||
201 | //#define ParseARG_PDECL , LuaSL_yyparseParam *param | 206 | //#define ParseARG_PDECL , LuaSL_yyparseParam *param |
202 | 207 | ||
203 | void burnLeaf(LSL_Leaf *leaf); | 208 | void burnLeaf(LSL_Leaf *leaf); |
209 | int nextFile(LuaSL_yyparseExtra *extra); | ||
204 | LSL_Leaf *addExpression(LSL_Leaf *exp); | 210 | LSL_Leaf *addExpression(LSL_Leaf *exp); |
205 | LSL_Leaf *addOperation(LSL_Leaf *left, LSL_Leaf *lval, LSL_Leaf *right); | 211 | LSL_Leaf *addOperation(LSL_Leaf *left, LSL_Leaf *lval, LSL_Leaf *right); |
206 | LSL_Leaf *addParenthesis(LSL_Leaf *lval, LSL_Leaf *expr, LSL_Leaf *rval); | 212 | LSL_Leaf *addParenthesis(LSL_Leaf *lval, LSL_Leaf *expr, LSL_Leaf *rval); |