diff options
author | David Walter Seikel | 2012-01-19 15:32:43 +1000 |
---|---|---|
committer | David Walter Seikel | 2012-01-19 15:32:43 +1000 |
commit | aed05a974f1111ce7f7d63315244edb275e1e758 (patch) | |
tree | 6e610f931c81052ce4e28b4b6c636cf4c1ff2c8b /LuaSL/src/LuaSL_compile.c | |
parent | More notes about Lua quirks. (diff) | |
download | SledjHamr-aed05a974f1111ce7f7d63315244edb275e1e758.zip SledjHamr-aed05a974f1111ce7f7d63315244edb275e1e758.tar.gz SledjHamr-aed05a974f1111ce7f7d63315244edb275e1e758.tar.bz2 SledjHamr-aed05a974f1111ce7f7d63315244edb275e1e758.tar.xz |
More quirk comments.
Diffstat (limited to '')
-rw-r--r-- | LuaSL/src/LuaSL_compile.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/LuaSL/src/LuaSL_compile.c b/LuaSL/src/LuaSL_compile.c index 1007c89..3538ad4 100644 --- a/LuaSL/src/LuaSL_compile.c +++ b/LuaSL/src/LuaSL_compile.c | |||
@@ -45,6 +45,7 @@ LSL_Token LSL_Tokens[] = | |||
45 | {LSL_GREATER_THAN, ST_COMPARISON, ">", LSL_RIGHT2LEFT, NULL, evaluateOperationToken}, | 45 | {LSL_GREATER_THAN, ST_COMPARISON, ">", LSL_RIGHT2LEFT, NULL, evaluateOperationToken}, |
46 | {LSL_LESS_THAN, ST_COMPARISON, "<", LSL_RIGHT2LEFT, NULL, evaluateOperationToken}, | 46 | {LSL_LESS_THAN, ST_COMPARISON, "<", LSL_RIGHT2LEFT, NULL, evaluateOperationToken}, |
47 | // LUA - comparisons are always false if they are different types. Tables, userdata, and functions are compared by reference. Strings campare in alphabetical order, depending on current locale. | 47 | // LUA - comparisons are always false if they are different types. Tables, userdata, and functions are compared by reference. Strings campare in alphabetical order, depending on current locale. |
48 | // LUA - really only has three conditionals, as it translates a ~= b to not (a == b), a > b to b < a, and a >= b to b <= a. | ||
48 | {LSL_RIGHT_SHIFT, ST_BITWISE, ">>", LSL_LEFT2RIGHT, NULL, evaluateOperationToken}, | 49 | {LSL_RIGHT_SHIFT, ST_BITWISE, ">>", LSL_LEFT2RIGHT, NULL, evaluateOperationToken}, |
49 | {LSL_LEFT_SHIFT, ST_BITWISE, "<<", LSL_LEFT2RIGHT, NULL, evaluateOperationToken}, | 50 | {LSL_LEFT_SHIFT, ST_BITWISE, "<<", LSL_LEFT2RIGHT, NULL, evaluateOperationToken}, |
50 | {LSL_CONCATENATE, ST_ADD, "+", LSL_LEFT2RIGHT, NULL, evaluateOperationToken}, | 51 | {LSL_CONCATENATE, ST_ADD, "+", LSL_LEFT2RIGHT, NULL, evaluateOperationToken}, |