From 0d50ad8a31ea5ed07b83946d39e31b3f1a20bdfa Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Sat, 4 Feb 2012 12:23:48 +1000 Subject: 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. --- LuaSL/src/LuaSL_LSL_tree.h | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'LuaSL/src/LuaSL_LSL_tree.h') 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 { MF_NONE = 0, MF_LOCAL = 1, - MF_NOASSIGN = 2, - MF_PREDEC = 4, - MF_PREINC = 8, - MF_POSTDEC = 16, - MF_POSTINC = 32 + MF_NOASSIGN = 2, // These two are for completely different purposes. This one is for variable definitions with no assignment. + MF_ASSIGNEXP = 4, // These two are for completely different purposes. This one is for assignments being used as expressions. + MF_WRAPFUNC = 8, + MF_PREDEC = 16, + MF_PREINC = 32, + MF_POSTDEC = 64, + MF_POSTINC = 128 } miscFlags; struct _allowedTypes @@ -232,6 +234,7 @@ struct _LSL_Parenthesis Eina_Strbuf *rightIgnorable; #endif LSL_Type type; + miscFlags flags; }; struct _LSL_Identifier // For variables and function parameters. -- cgit v1.1