From f4ca01557b072577bb6ba6dc5992d72988f13589 Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Thu, 12 Jan 2012 08:58:03 +1000 Subject: A failed attempt to handle multiple files. --- LuaSL/src/LuaSL_LSL_tree.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'LuaSL/src/LuaSL_LSL_tree.h') 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 @@ #define __LSL_TREE_H__ #define LUASL_DEBUG +//#define LUASL_FILES #include // So we can have NULL defined. @@ -173,6 +174,10 @@ typedef struct char *ignorableText; int column; int line; + int argc; + char **argv; + char *fileName; + FILE *file; } LuaSL_yyparseExtra; @@ -201,6 +206,7 @@ typedef struct //#define ParseARG_PDECL , LuaSL_yyparseParam *param void burnLeaf(LSL_Leaf *leaf); +int nextFile(LuaSL_yyparseExtra *extra); LSL_Leaf *addExpression(LSL_Leaf *exp); LSL_Leaf *addOperation(LSL_Leaf *left, LSL_Leaf *lval, LSL_Leaf *right); LSL_Leaf *addParenthesis(LSL_Leaf *lval, LSL_Leaf *expr, LSL_Leaf *rval); -- cgit v1.1