aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/LuaSL/src/LuaSL_LSL_tree.h
diff options
context:
space:
mode:
authorDavid Walter Seikel2012-02-01 22:17:02 +1000
committerDavid Walter Seikel2012-02-01 22:17:02 +1000
commiteb3278594f50be28c048c11d96bd814c1ebbdf3a (patch)
treed2ac96425f7ae276be667c68e287e7b2d253e3b8 /LuaSL/src/LuaSL_LSL_tree.h
parentTrack event handlers differently from functions. (diff)
downloadSledjHamr-eb3278594f50be28c048c11d96bd814c1ebbdf3a.zip
SledjHamr-eb3278594f50be28c048c11d96bd814c1ebbdf3a.tar.gz
SledjHamr-eb3278594f50be28c048c11d96bd814c1ebbdf3a.tar.bz2
SledjHamr-eb3278594f50be28c048c11d96bd814c1ebbdf3a.tar.xz
Deal with parsing if ... else ...
Diffstat (limited to 'LuaSL/src/LuaSL_LSL_tree.h')
-rw-r--r--LuaSL/src/LuaSL_LSL_tree.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/LuaSL/src/LuaSL_LSL_tree.h b/LuaSL/src/LuaSL_LSL_tree.h
index 87d1af0..b5dff7a 100644
--- a/LuaSL/src/LuaSL_LSL_tree.h
+++ b/LuaSL/src/LuaSL_LSL_tree.h
@@ -221,6 +221,7 @@ struct _LSL_Statement
221 LSL_Parenthesis *parenthesis; 221 LSL_Parenthesis *parenthesis;
222 LSL_Leaf *expressions; // A for statement will have three expressions, everything else has zero or one. 222 LSL_Leaf *expressions; // A for statement will have three expressions, everything else has zero or one.
223 LSL_Block *block; 223 LSL_Block *block;
224 LSL_Statement *elseBlock;
224 LSL_Type type; // Expression type. 225 LSL_Type type; // Expression type.
225#if LUASL_DIFF_CHECK 226#if LUASL_DIFF_CHECK
226 Eina_Strbuf **ignorable; // Can be up to five of these I think. 227 Eina_Strbuf **ignorable; // Can be up to five of these I think.
@@ -397,6 +398,7 @@ LSL_Leaf *addCrement(LuaSL_compiler *compiler, LSL_Leaf *variable, LSL_Leaf *cre
397LSL_Leaf *addFunction(LuaSL_compiler *compiler, LSL_Leaf *type, LSL_Leaf *identifier, LSL_Leaf *open, LSL_Leaf *params, LSL_Leaf *close); 398LSL_Leaf *addFunction(LuaSL_compiler *compiler, LSL_Leaf *type, LSL_Leaf *identifier, LSL_Leaf *open, LSL_Leaf *params, LSL_Leaf *close);
398LSL_Leaf *addFunctionBody(LuaSL_compiler *compiler, LSL_Leaf *function, LSL_Leaf *block); 399LSL_Leaf *addFunctionBody(LuaSL_compiler *compiler, LSL_Leaf *function, LSL_Leaf *block);
399LSL_Leaf *addFunctionCall(LuaSL_compiler *compiler, LSL_Leaf *identifier, LSL_Leaf *open, LSL_Leaf *params, LSL_Leaf *close); 400LSL_Leaf *addFunctionCall(LuaSL_compiler *compiler, LSL_Leaf *identifier, LSL_Leaf *open, LSL_Leaf *params, LSL_Leaf *close);
401LSL_Leaf *addIfElse(LuaSL_compiler *compiler, LSL_Leaf *ifBlock, LSL_Leaf *elseBlock);
400LSL_Leaf *addOperation(LuaSL_compiler *compiler, LSL_Leaf *left, LSL_Leaf *lval, LSL_Leaf *right); 402LSL_Leaf *addOperation(LuaSL_compiler *compiler, LSL_Leaf *left, LSL_Leaf *lval, LSL_Leaf *right);
401LSL_Leaf *addParameter(LuaSL_compiler *compiler, LSL_Leaf *type, LSL_Leaf *newParam); 403LSL_Leaf *addParameter(LuaSL_compiler *compiler, LSL_Leaf *type, LSL_Leaf *newParam);
402LSL_Leaf *addParenthesis(LSL_Leaf *lval, LSL_Leaf *expr, LSL_Type type, LSL_Leaf *rval); 404LSL_Leaf *addParenthesis(LSL_Leaf *lval, LSL_Leaf *expr, LSL_Type type, LSL_Leaf *rval);