diff options
Diffstat (limited to 'LuaSL/src/LuaSL_LSL_tree.h')
-rw-r--r-- | LuaSL/src/LuaSL_LSL_tree.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/LuaSL/src/LuaSL_LSL_tree.h b/LuaSL/src/LuaSL_LSL_tree.h index 24f838a..e5a415a 100644 --- a/LuaSL/src/LuaSL_LSL_tree.h +++ b/LuaSL/src/LuaSL_LSL_tree.h | |||
@@ -360,6 +360,7 @@ typedef struct | |||
360 | #endif | 360 | #endif |
361 | LSL_Leaf *lval; | 361 | LSL_Leaf *lval; |
362 | LSL_Block *currentBlock; | 362 | LSL_Block *currentBlock; |
363 | LSL_Function *currentFunction; | ||
363 | Eina_Clist danglingCalls; // HEAD for function calls used before the function is defined. | 364 | Eina_Clist danglingCalls; // HEAD for function calls used before the function is defined. |
364 | int column, line; | 365 | int column, line; |
365 | int undeclared; | 366 | int undeclared; |
@@ -372,6 +373,7 @@ typedef struct | |||
372 | 373 | ||
373 | 374 | ||
374 | void burnLeaf(void *data); | 375 | void burnLeaf(void *data); |
376 | LSL_Leaf *addBlock(LuaSL_compiler *compiler, LSL_Leaf *left, LSL_Leaf *lval, LSL_Leaf *right); | ||
375 | LSL_Leaf *addCrement(LuaSL_compiler *compiler, LSL_Leaf *variable, LSL_Leaf *crement); | 377 | LSL_Leaf *addCrement(LuaSL_compiler *compiler, LSL_Leaf *variable, LSL_Leaf *crement); |
376 | LSL_Leaf *addFunction(LuaSL_compiler *compiler, LSL_Leaf *type, LSL_Leaf *identifier, LSL_Leaf *open, LSL_Leaf *params, LSL_Leaf *close); | 378 | LSL_Leaf *addFunction(LuaSL_compiler *compiler, LSL_Leaf *type, LSL_Leaf *identifier, LSL_Leaf *open, LSL_Leaf *params, LSL_Leaf *close); |
377 | LSL_Leaf *addFunctionBody(LuaSL_compiler *compiler, LSL_Leaf *function, LSL_Leaf *block); | 379 | LSL_Leaf *addFunctionBody(LuaSL_compiler *compiler, LSL_Leaf *function, LSL_Leaf *block); |
@@ -384,11 +386,10 @@ LSL_Leaf *addStatement(LuaSL_compiler *compiler, LSL_Leaf *lval, LSL_Type type, | |||
384 | LSL_Leaf *addTypecast(LSL_Leaf *lval, LSL_Leaf *type, LSL_Leaf *rval, LSL_Leaf *expr); | 386 | LSL_Leaf *addTypecast(LSL_Leaf *lval, LSL_Leaf *type, LSL_Leaf *rval, LSL_Leaf *expr); |
385 | LSL_Leaf *addVariable(LuaSL_compiler *compiler, LSL_Leaf *type, LSL_Leaf *identifier, LSL_Leaf *assignment, LSL_Leaf *expr); | 387 | LSL_Leaf *addVariable(LuaSL_compiler *compiler, LSL_Leaf *type, LSL_Leaf *identifier, LSL_Leaf *assignment, LSL_Leaf *expr); |
386 | 388 | ||
387 | void beginBlock(LuaSL_compiler *compiler, LSL_Leaf *block); | 389 | LSL_Leaf *beginBlock(LuaSL_compiler *compiler, LSL_Leaf *block); |
388 | LSL_Leaf *checkVariable(LuaSL_compiler *compiler, LSL_Leaf *identifier); | 390 | LSL_Leaf *checkVariable(LuaSL_compiler *compiler, LSL_Leaf *identifier); |
389 | LSL_Leaf *collectParameters(LuaSL_compiler *compiler, LSL_Leaf *list, LSL_Leaf *comma, LSL_Leaf *newParam); | 391 | LSL_Leaf *collectParameters(LuaSL_compiler *compiler, LSL_Leaf *list, LSL_Leaf *comma, LSL_Leaf *newParam); |
390 | LSL_Leaf *collectStatements(LuaSL_compiler *compiler, LSL_Leaf *list, LSL_Leaf *newStatement); | 392 | LSL_Leaf *collectStatements(LuaSL_compiler *compiler, LSL_Leaf *list, LSL_Leaf *newStatement); |
391 | void endBlock(LuaSL_compiler *compiler, LSL_Leaf *block); | ||
392 | 393 | ||
393 | void *ParseAlloc(void *(*mallocProc)(size_t)); | 394 | void *ParseAlloc(void *(*mallocProc)(size_t)); |
394 | void ParseTrace(FILE *TraceFILE, char *zTracePrompt); | 395 | void ParseTrace(FILE *TraceFILE, char *zTracePrompt); |