aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/LuaSL/src/LuaSL_compile.c
diff options
context:
space:
mode:
authorDavid Walter Seikel2012-02-03 14:13:56 +1000
committerDavid Walter Seikel2012-02-03 14:13:56 +1000
commitd5f6ee6bb2b0acabd577709468855adcc4fc18af (patch)
treeaefc99e0c1b228a0e2b0df3d45ec13284c7b7cd7 /LuaSL/src/LuaSL_compile.c
parentOnly slightly less half arsed state. lol (diff)
downloadSledjHamr-d5f6ee6bb2b0acabd577709468855adcc4fc18af.zip
SledjHamr-d5f6ee6bb2b0acabd577709468855adcc4fc18af.tar.gz
SledjHamr-d5f6ee6bb2b0acabd577709468855adcc4fc18af.tar.bz2
SledjHamr-d5f6ee6bb2b0acabd577709468855adcc4fc18af.tar.xz
Implement Lua boolean operations.
Diffstat (limited to 'LuaSL/src/LuaSL_compile.c')
-rw-r--r--LuaSL/src/LuaSL_compile.c6
1 files changed, 6 insertions, 0 deletions
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)
1536 fprintf(file, " local "); 1536 fprintf(file, " local ");
1537 fprintf(file, " --[[%s]] ", leaf->toKen->toKen); 1537 fprintf(file, " --[[%s]] ", leaf->toKen->toKen);
1538 } 1538 }
1539 else if (LSL_BOOL_AND == leaf->toKen->type)
1540 fprintf(file, " and ");
1541 else if (LSL_BOOL_OR == leaf->toKen->type)
1542 fprintf(file, " or ");
1543 else if (LSL_BOOL_NOT == leaf->toKen->type)
1544 fprintf(file, " not ");
1539 else if (LSL_CONCATENATE == leaf->toKen->type) 1545 else if (LSL_CONCATENATE == leaf->toKen->type)
1540 fprintf(file, " .. "); 1546 fprintf(file, " .. ");
1541 else if (LSL_NOT_EQUAL == leaf->toKen->type) 1547 else if (LSL_NOT_EQUAL == leaf->toKen->type)