aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/LuaSL/src/LuaSL_LSL_tree.h
diff options
context:
space:
mode:
authorDavid Walter Seikel2012-01-17 10:47:26 +1000
committerDavid Walter Seikel2012-01-17 10:47:26 +1000
commitd3356bf6e8eeadd3afbd9db2e59621d50dbefb63 (patch)
tree5e52784bca7368e07e8c49cf094ccdcce2332149 /LuaSL/src/LuaSL_LSL_tree.h
parentParser now understands state, function, and variable derlarations. Including... (diff)
downloadSledjHamr-d3356bf6e8eeadd3afbd9db2e59621d50dbefb63.zip
SledjHamr-d3356bf6e8eeadd3afbd9db2e59621d50dbefb63.tar.gz
SledjHamr-d3356bf6e8eeadd3afbd9db2e59621d50dbefb63.tar.bz2
SledjHamr-d3356bf6e8eeadd3afbd9db2e59621d50dbefb63.tar.xz
Actually make state work. lol
Diffstat (limited to '')
-rw-r--r--LuaSL/src/LuaSL_LSL_tree.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/LuaSL/src/LuaSL_LSL_tree.h b/LuaSL/src/LuaSL_LSL_tree.h
index 4113454..e9fddb7 100644
--- a/LuaSL/src/LuaSL_LSL_tree.h
+++ b/LuaSL/src/LuaSL_LSL_tree.h
@@ -254,6 +254,7 @@ struct _LSL_Function
254struct _LSL_State 254struct _LSL_State
255{ 255{
256 char *name; 256 char *name;
257 LSL_Leaf *block;
257 LSL_Function **handlers; 258 LSL_Function **handlers;
258}; 259};
259 260
@@ -282,7 +283,6 @@ typedef struct
282 LSL_Leaf *lval; 283 LSL_Leaf *lval;
283 int column, line; 284 int column, line;
284 LSL_Block *currentBlock; 285 LSL_Block *currentBlock;
285 LSL_Leaf *currentFunction;
286} LuaSL_yyparseParam; 286} LuaSL_yyparseParam;
287 287
288 288
@@ -296,7 +296,7 @@ LSL_Leaf *addFunction(LuaSL_yyparseParam *param, LSL_Leaf *type, LSL_Leaf *ident
296LSL_Leaf *addOperation(LSL_Leaf *left, LSL_Leaf *lval, LSL_Leaf *right); 296LSL_Leaf *addOperation(LSL_Leaf *left, LSL_Leaf *lval, LSL_Leaf *right);
297LSL_Leaf *addParameter(LuaSL_yyparseParam *param, LSL_Leaf *type, LSL_Leaf *newParam); 297LSL_Leaf *addParameter(LuaSL_yyparseParam *param, LSL_Leaf *type, LSL_Leaf *newParam);
298LSL_Leaf *addParenthesis(LSL_Leaf *lval, LSL_Leaf *expr, LSL_Type type, LSL_Leaf *rval); 298LSL_Leaf *addParenthesis(LSL_Leaf *lval, LSL_Leaf *expr, LSL_Type type, LSL_Leaf *rval);
299LSL_Leaf *addState(LuaSL_yyparseParam *param, char *name, LSL_Leaf *state); 299LSL_Leaf *addState(LuaSL_yyparseParam *param, LSL_Leaf *identifier, LSL_Leaf *block);
300LSL_Leaf *addStatement(LSL_Leaf *lval, LSL_Type type, LSL_Leaf *expr); 300LSL_Leaf *addStatement(LSL_Leaf *lval, LSL_Type type, LSL_Leaf *expr);
301LSL_Leaf *addTypecast(LSL_Leaf *lval, LSL_Leaf *type, LSL_Leaf *rval, LSL_Leaf *expr); 301LSL_Leaf *addTypecast(LSL_Leaf *lval, LSL_Leaf *type, LSL_Leaf *rval, LSL_Leaf *expr);
302LSL_Leaf *addVariable(LuaSL_yyparseParam *param, LSL_Leaf *type, LSL_Leaf *identifier, LSL_Leaf *assignment, LSL_Leaf *expr); 302LSL_Leaf *addVariable(LuaSL_yyparseParam *param, LSL_Leaf *type, LSL_Leaf *identifier, LSL_Leaf *assignment, LSL_Leaf *expr);