diff options
author | David Walter Seikel | 2012-01-17 10:47:26 +1000 |
---|---|---|
committer | David Walter Seikel | 2012-01-17 10:47:26 +1000 |
commit | d3356bf6e8eeadd3afbd9db2e59621d50dbefb63 (patch) | |
tree | 5e52784bca7368e07e8c49cf094ccdcce2332149 /LuaSL/src/LuaSL_LSL_tree.h | |
parent | Parser now understands state, function, and variable derlarations. Including... (diff) | |
download | SledjHamr-d3356bf6e8eeadd3afbd9db2e59621d50dbefb63.zip SledjHamr-d3356bf6e8eeadd3afbd9db2e59621d50dbefb63.tar.gz SledjHamr-d3356bf6e8eeadd3afbd9db2e59621d50dbefb63.tar.bz2 SledjHamr-d3356bf6e8eeadd3afbd9db2e59621d50dbefb63.tar.xz |
Actually make state work. lol
Diffstat (limited to 'LuaSL/src/LuaSL_LSL_tree.h')
-rw-r--r-- | LuaSL/src/LuaSL_LSL_tree.h | 4 |
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 | |||
254 | struct _LSL_State | 254 | struct _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 | |||
296 | LSL_Leaf *addOperation(LSL_Leaf *left, LSL_Leaf *lval, LSL_Leaf *right); | 296 | LSL_Leaf *addOperation(LSL_Leaf *left, LSL_Leaf *lval, LSL_Leaf *right); |
297 | LSL_Leaf *addParameter(LuaSL_yyparseParam *param, LSL_Leaf *type, LSL_Leaf *newParam); | 297 | LSL_Leaf *addParameter(LuaSL_yyparseParam *param, LSL_Leaf *type, LSL_Leaf *newParam); |
298 | LSL_Leaf *addParenthesis(LSL_Leaf *lval, LSL_Leaf *expr, LSL_Type type, LSL_Leaf *rval); | 298 | LSL_Leaf *addParenthesis(LSL_Leaf *lval, LSL_Leaf *expr, LSL_Type type, LSL_Leaf *rval); |
299 | LSL_Leaf *addState(LuaSL_yyparseParam *param, char *name, LSL_Leaf *state); | 299 | LSL_Leaf *addState(LuaSL_yyparseParam *param, LSL_Leaf *identifier, LSL_Leaf *block); |
300 | LSL_Leaf *addStatement(LSL_Leaf *lval, LSL_Type type, LSL_Leaf *expr); | 300 | LSL_Leaf *addStatement(LSL_Leaf *lval, LSL_Type type, LSL_Leaf *expr); |
301 | LSL_Leaf *addTypecast(LSL_Leaf *lval, LSL_Leaf *type, LSL_Leaf *rval, LSL_Leaf *expr); | 301 | LSL_Leaf *addTypecast(LSL_Leaf *lval, LSL_Leaf *type, LSL_Leaf *rval, LSL_Leaf *expr); |
302 | LSL_Leaf *addVariable(LuaSL_yyparseParam *param, LSL_Leaf *type, LSL_Leaf *identifier, LSL_Leaf *assignment, LSL_Leaf *expr); | 302 | LSL_Leaf *addVariable(LuaSL_yyparseParam *param, LSL_Leaf *type, LSL_Leaf *identifier, LSL_Leaf *assignment, LSL_Leaf *expr); |