diff options
Diffstat (limited to 'LuaSL/src/LuaSL_LSL_tree.h')
-rw-r--r-- | LuaSL/src/LuaSL_LSL_tree.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/LuaSL/src/LuaSL_LSL_tree.h b/LuaSL/src/LuaSL_LSL_tree.h index 4b6e3c4..b73d3ac 100644 --- a/LuaSL/src/LuaSL_LSL_tree.h +++ b/LuaSL/src/LuaSL_LSL_tree.h | |||
@@ -1,6 +1,6 @@ | |||
1 | 1 | ||
2 | #ifndef __LSL_TREE_H__ | 2 | #ifndef __LUASL_TREE_H__ |
3 | #define __LSL_TREE_H__ | 3 | #define __LUASL_TREE_H__ |
4 | 4 | ||
5 | //#define LUASL_DEBUG | 5 | //#define LUASL_DEBUG |
6 | 6 | ||
@@ -289,7 +289,7 @@ typedef struct | |||
289 | LSL_Leaf *lval; | 289 | LSL_Leaf *lval; |
290 | int column, line; | 290 | int column, line; |
291 | LSL_Block *currentBlock; | 291 | LSL_Block *currentBlock; |
292 | } LuaSL_yyparseParam; | 292 | } LuaSL_compiler; |
293 | 293 | ||
294 | 294 | ||
295 | #ifndef excludeLexer | 295 | #ifndef excludeLexer |
@@ -299,23 +299,23 @@ typedef struct | |||
299 | 299 | ||
300 | void burnLeaf(LSL_Leaf *leaf); | 300 | void burnLeaf(LSL_Leaf *leaf); |
301 | LSL_Leaf *addFunction(LSL_Leaf *type, LSL_Leaf *identifier, LSL_Leaf *open, LSL_Leaf *params, LSL_Leaf *close, LSL_Leaf *block); | 301 | LSL_Leaf *addFunction(LSL_Leaf *type, LSL_Leaf *identifier, LSL_Leaf *open, LSL_Leaf *params, LSL_Leaf *close, LSL_Leaf *block); |
302 | LSL_Leaf *addOperation(LuaSL_yyparseParam *param, LSL_Leaf *left, LSL_Leaf *lval, LSL_Leaf *right); | 302 | LSL_Leaf *addOperation(LuaSL_compiler *compiler, LSL_Leaf *left, LSL_Leaf *lval, LSL_Leaf *right); |
303 | LSL_Leaf *addParameter(LSL_Leaf *type, LSL_Leaf *newParam); | 303 | LSL_Leaf *addParameter(LSL_Leaf *type, LSL_Leaf *newParam); |
304 | LSL_Leaf *addParenthesis(LSL_Leaf *lval, LSL_Leaf *expr, LSL_Type type, LSL_Leaf *rval); | 304 | LSL_Leaf *addParenthesis(LSL_Leaf *lval, LSL_Leaf *expr, LSL_Type type, LSL_Leaf *rval); |
305 | LSL_Leaf *addState(LuaSL_yyparseParam *param, LSL_Leaf *identifier, LSL_Leaf *block); | 305 | LSL_Leaf *addState(LuaSL_compiler *compiler, LSL_Leaf *identifier, LSL_Leaf *block); |
306 | LSL_Leaf *addStatement(LSL_Leaf *lval, LSL_Type type, LSL_Leaf *expr); | 306 | LSL_Leaf *addStatement(LSL_Leaf *lval, LSL_Type type, LSL_Leaf *expr); |
307 | LSL_Leaf *addTypecast(LSL_Leaf *lval, LSL_Leaf *type, LSL_Leaf *rval, LSL_Leaf *expr); | 307 | LSL_Leaf *addTypecast(LSL_Leaf *lval, LSL_Leaf *type, LSL_Leaf *rval, LSL_Leaf *expr); |
308 | LSL_Leaf *addVariable(LuaSL_yyparseParam *param, LSL_Leaf *type, LSL_Leaf *identifier, LSL_Leaf *assignment, LSL_Leaf *expr); | 308 | LSL_Leaf *addVariable(LuaSL_compiler *compiler, LSL_Leaf *type, LSL_Leaf *identifier, LSL_Leaf *assignment, LSL_Leaf *expr); |
309 | 309 | ||
310 | void beginBlock(LuaSL_yyparseParam *param, LSL_Leaf *block); | 310 | void beginBlock(LuaSL_compiler *compiler, LSL_Leaf *block); |
311 | LSL_Leaf *collectParameters(LSL_Leaf *list, LSL_Leaf *comma, LSL_Leaf *newParam); | 311 | LSL_Leaf *collectParameters(LSL_Leaf *list, LSL_Leaf *comma, LSL_Leaf *newParam); |
312 | void endBlock(LuaSL_yyparseParam *param, LSL_Leaf *block); | 312 | void endBlock(LuaSL_compiler *compiler, LSL_Leaf *block); |
313 | 313 | ||
314 | void *ParseAlloc(void *(*mallocProc)(size_t)); | 314 | void *ParseAlloc(void *(*mallocProc)(size_t)); |
315 | void ParseTrace(FILE *TraceFILE, char *zTracePrompt); | 315 | void ParseTrace(FILE *TraceFILE, char *zTracePrompt); |
316 | void Parse(void *yyp, int yymajor, LSL_Leaf *yyminor, LuaSL_yyparseParam *param); | 316 | void Parse(void *yyp, int yymajor, LSL_Leaf *yyminor, LuaSL_compiler *compiler); |
317 | void ParseFree(void *p, void (*freeProc)(void*)); | 317 | void ParseFree(void *p, void (*freeProc)(void*)); |
318 | 318 | ||
319 | 319 | ||
320 | #endif // __LSL_TREE_H__ | 320 | #endif // __LUASL_LSL_TREE_H__ |
321 | 321 | ||