aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/LuaSL/src/LuaSL_LSL_tree.h
diff options
context:
space:
mode:
authorDavid Walter Seikel2012-02-01 23:37:17 +1000
committerDavid Walter Seikel2012-02-01 23:37:17 +1000
commitd094c72e1006346adf1c60760fe79e248f6f1d96 (patch)
treeb028a0cddc9a796c9815f0cd9eb4c03a7d837e9b /LuaSL/src/LuaSL_LSL_tree.h
parentParse and output lists. (diff)
downloadSledjHamr-d094c72e1006346adf1c60760fe79e248f6f1d96.zip
SledjHamr-d094c72e1006346adf1c60760fe79e248f6f1d96.tar.gz
SledjHamr-d094c72e1006346adf1c60760fe79e248f6f1d96.tar.bz2
SledjHamr-d094c72e1006346adf1c60760fe79e248f6f1d96.tar.xz
Parse and output for statements. Also, take care of ignorables on left parens of flow controls.
Diffstat (limited to 'LuaSL/src/LuaSL_LSL_tree.h')
-rw-r--r--LuaSL/src/LuaSL_LSL_tree.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/LuaSL/src/LuaSL_LSL_tree.h b/LuaSL/src/LuaSL_LSL_tree.h
index 33f860c..cff2bab 100644
--- a/LuaSL/src/LuaSL_LSL_tree.h
+++ b/LuaSL/src/LuaSL_LSL_tree.h
@@ -219,7 +219,7 @@ struct _LSL_Statement
219 Eina_Clist statement; // For block statement lists, this is the entry. 219 Eina_Clist statement; // For block statement lists, this is the entry.
220 LSL_Identifier *identifier; 220 LSL_Identifier *identifier;
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, and two semicolons, everything else has zero or one.
223 LSL_Block *block; 223 LSL_Block *block;
224 LSL_Statement *elseBlock; 224 LSL_Statement *elseBlock;
225 LSL_Type type; // Expression type. 225 LSL_Type type; // Expression type.
@@ -395,6 +395,7 @@ typedef struct
395void burnLeaf(void *data); 395void burnLeaf(void *data);
396LSL_Leaf *addBlock(LuaSL_compiler *compiler, LSL_Leaf *left, LSL_Leaf *lval, LSL_Leaf *right); 396LSL_Leaf *addBlock(LuaSL_compiler *compiler, LSL_Leaf *left, LSL_Leaf *lval, LSL_Leaf *right);
397LSL_Leaf *addCrement(LuaSL_compiler *compiler, LSL_Leaf *variable, LSL_Leaf *crement); 397LSL_Leaf *addCrement(LuaSL_compiler *compiler, LSL_Leaf *variable, LSL_Leaf *crement);
398LSL_Leaf *addFor(LuaSL_compiler *compiler, LSL_Leaf *lval, LSL_Leaf *flow, LSL_Leaf *left, LSL_Leaf *expr0, LSL_Leaf *stat0, LSL_Leaf *expr1, LSL_Leaf *stat1, LSL_Leaf *expr2, LSL_Leaf *right, LSL_Leaf *block);
398LSL_Leaf *addFunction(LuaSL_compiler *compiler, LSL_Leaf *type, LSL_Leaf *identifier, LSL_Leaf *open, LSL_Leaf *params, LSL_Leaf *close); 399LSL_Leaf *addFunction(LuaSL_compiler *compiler, LSL_Leaf *type, LSL_Leaf *identifier, LSL_Leaf *open, LSL_Leaf *params, LSL_Leaf *close);
399LSL_Leaf *addFunctionBody(LuaSL_compiler *compiler, LSL_Leaf *function, LSL_Leaf *block); 400LSL_Leaf *addFunctionBody(LuaSL_compiler *compiler, LSL_Leaf *function, LSL_Leaf *block);
400LSL_Leaf *addFunctionCall(LuaSL_compiler *compiler, LSL_Leaf *identifier, LSL_Leaf *open, LSL_Leaf *params, LSL_Leaf *close); 401LSL_Leaf *addFunctionCall(LuaSL_compiler *compiler, LSL_Leaf *identifier, LSL_Leaf *open, LSL_Leaf *params, LSL_Leaf *close);