aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/LuaSL/src/LuaSL_LSL_tree.h
diff options
context:
space:
mode:
authorDavid Walter Seikel2012-01-12 08:58:03 +1000
committerDavid Walter Seikel2012-01-12 08:58:03 +1000
commitf4ca01557b072577bb6ba6dc5992d72988f13589 (patch)
tree5ddf0aff36485562a8531fe781003d7bbab0adfe /LuaSL/src/LuaSL_LSL_tree.h
parentMake the lexer more reentrant, and piss off yyerror. (diff)
downloadSledjHamr-f4ca01557b072577bb6ba6dc5992d72988f13589.zip
SledjHamr-f4ca01557b072577bb6ba6dc5992d72988f13589.tar.gz
SledjHamr-f4ca01557b072577bb6ba6dc5992d72988f13589.tar.bz2
SledjHamr-f4ca01557b072577bb6ba6dc5992d72988f13589.tar.xz
A failed attempt to handle multiple files.
Diffstat (limited to '')
-rw-r--r--LuaSL/src/LuaSL_LSL_tree.h6
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
203void burnLeaf(LSL_Leaf *leaf); 208void burnLeaf(LSL_Leaf *leaf);
209int nextFile(LuaSL_yyparseExtra *extra);
204LSL_Leaf *addExpression(LSL_Leaf *exp); 210LSL_Leaf *addExpression(LSL_Leaf *exp);
205LSL_Leaf *addOperation(LSL_Leaf *left, LSL_Leaf *lval, LSL_Leaf *right); 211LSL_Leaf *addOperation(LSL_Leaf *left, LSL_Leaf *lval, LSL_Leaf *right);
206LSL_Leaf *addParenthesis(LSL_Leaf *lval, LSL_Leaf *expr, LSL_Leaf *rval); 212LSL_Leaf *addParenthesis(LSL_Leaf *lval, LSL_Leaf *expr, LSL_Leaf *rval);