From b27dab5443ca5919e7727fd2666559a6498d8c3d Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Sat, 21 Jan 2012 19:24:53 +1000 Subject: Parse 'crements. --- LuaSL/src/LuaSL_compile.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'LuaSL/src/LuaSL_compile.c') diff --git a/LuaSL/src/LuaSL_compile.c b/LuaSL/src/LuaSL_compile.c index 5a3a68b..cb64038 100644 --- a/LuaSL/src/LuaSL_compile.c +++ b/LuaSL/src/LuaSL_compile.c @@ -432,6 +432,16 @@ LSL_Leaf *addOperation(LuaSL_compiler *compiler, LSL_Leaf *left, LSL_Leaf *lval, return lval; } +LSL_Leaf *addCrement(LuaSL_compiler *compiler, LSL_Leaf *variable, LSL_Leaf *crement) +{ + if ((variable) && (crement)) + { + crement->basicType = variable->basicType; + } + + return crement; +} + LSL_Leaf *addParameter(LuaSL_compiler *compiler, LSL_Leaf *type, LSL_Leaf *identifier) { LSL_Identifier *result = calloc(1, sizeof(LSL_Identifier)); -- cgit v1.1