diff options
author | David Walter Seikel | 2012-02-04 12:23:48 +1000 |
---|---|---|
committer | David Walter Seikel | 2012-02-04 12:23:48 +1000 |
commit | 0d50ad8a31ea5ed07b83946d39e31b3f1a20bdfa (patch) | |
tree | a474c283b6b9a5e2d37ae6808d22df6cd175c46c /LuaSL/src/LuaSL_LSL_tree.h | |
parent | Restore this thing so I can debug it now. (diff) | |
download | SledjHamr-0d50ad8a31ea5ed07b83946d39e31b3f1a20bdfa.zip SledjHamr-0d50ad8a31ea5ed07b83946d39e31b3f1a20bdfa.tar.gz SledjHamr-0d50ad8a31ea5ed07b83946d39e31b3f1a20bdfa.tar.bz2 SledjHamr-0d50ad8a31ea5ed07b83946d39e31b3f1a20bdfa.tar.xz |
Fix up "assignments in the middle of expressions is legal in LSL, but not in Lua" problem.
Note, only got one of these in the test scripts, so leaving copious debugging shat laying around for further testing.
Diffstat (limited to 'LuaSL/src/LuaSL_LSL_tree.h')
-rw-r--r-- | LuaSL/src/LuaSL_LSL_tree.h | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/LuaSL/src/LuaSL_LSL_tree.h b/LuaSL/src/LuaSL_LSL_tree.h index 8909c7e..1092f26 100644 --- a/LuaSL/src/LuaSL_LSL_tree.h +++ b/LuaSL/src/LuaSL_LSL_tree.h | |||
@@ -150,11 +150,13 @@ typedef enum | |||
150 | { | 150 | { |
151 | MF_NONE = 0, | 151 | MF_NONE = 0, |
152 | MF_LOCAL = 1, | 152 | MF_LOCAL = 1, |
153 | MF_NOASSIGN = 2, | 153 | MF_NOASSIGN = 2, // These two are for completely different purposes. This one is for variable definitions with no assignment. |
154 | MF_PREDEC = 4, | 154 | MF_ASSIGNEXP = 4, // These two are for completely different purposes. This one is for assignments being used as expressions. |
155 | MF_PREINC = 8, | 155 | MF_WRAPFUNC = 8, |
156 | MF_POSTDEC = 16, | 156 | MF_PREDEC = 16, |
157 | MF_POSTINC = 32 | 157 | MF_PREINC = 32, |
158 | MF_POSTDEC = 64, | ||
159 | MF_POSTINC = 128 | ||
158 | } miscFlags; | 160 | } miscFlags; |
159 | 161 | ||
160 | struct _allowedTypes | 162 | struct _allowedTypes |
@@ -232,6 +234,7 @@ struct _LSL_Parenthesis | |||
232 | Eina_Strbuf *rightIgnorable; | 234 | Eina_Strbuf *rightIgnorable; |
233 | #endif | 235 | #endif |
234 | LSL_Type type; | 236 | LSL_Type type; |
237 | miscFlags flags; | ||
235 | }; | 238 | }; |
236 | 239 | ||
237 | struct _LSL_Identifier // For variables and function parameters. | 240 | struct _LSL_Identifier // For variables and function parameters. |