From d5f6ee6bb2b0acabd577709468855adcc4fc18af Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Fri, 3 Feb 2012 14:13:56 +1000 Subject: Implement Lua boolean operations. --- LuaSL/src/LuaSL_compile.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'LuaSL/src/LuaSL_compile.c') diff --git a/LuaSL/src/LuaSL_compile.c b/LuaSL/src/LuaSL_compile.c index 5fab5c4..4cd671d 100644 --- a/LuaSL/src/LuaSL_compile.c +++ b/LuaSL/src/LuaSL_compile.c @@ -1536,6 +1536,12 @@ static void outputLeaf(FILE *file, outputMode mode, LSL_Leaf *leaf) fprintf(file, " local "); fprintf(file, " --[[%s]] ", leaf->toKen->toKen); } + else if (LSL_BOOL_AND == leaf->toKen->type) + fprintf(file, " and "); + else if (LSL_BOOL_OR == leaf->toKen->type) + fprintf(file, " or "); + else if (LSL_BOOL_NOT == leaf->toKen->type) + fprintf(file, " not "); else if (LSL_CONCATENATE == leaf->toKen->type) fprintf(file, " .. "); else if (LSL_NOT_EQUAL == leaf->toKen->type) -- cgit v1.1