From f8e387dde17e1e64ae83b9162d5042a80e0c82aa Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Sat, 14 Jan 2012 08:45:48 +1000 Subject: Little bit of clean up. --- LuaSL/src/LuaSL_LSL_tree.c | 2 +- LuaSL/src/LuaSL_LSL_tree.h | 6 ++++-- LuaSL/src/LuaSL_lexer.l | 1 - 3 files changed, 5 insertions(+), 4 deletions(-) (limited to 'LuaSL') diff --git a/LuaSL/src/LuaSL_LSL_tree.c b/LuaSL/src/LuaSL_LSL_tree.c index 5c97719..98a03e7 100644 --- a/LuaSL/src/LuaSL_LSL_tree.c +++ b/LuaSL/src/LuaSL_LSL_tree.c @@ -22,7 +22,7 @@ LSL_Token LSL_Tokens[] = {LSL_SPACE, ST_NONE, " ", LSL_NONE, NULL, NULL, NULL}, // Operators, in order of precedence, low to high - // Left to right, unless oterwise stated. + // Left to right, unless otherwise stated. // According to http://wiki.secondlife.com/wiki/Category:LSL_Operators {LSL_BOOL_AND, ST_BOOLEAN, "&&", LSL_RIGHT2LEFT, NULL, NULL, evaluateOperationToken}, // QUIRK - Seems to be some disagreement about BOOL_AND/BOOL_OR precedence. Either they are equal, or OR is higher. diff --git a/LuaSL/src/LuaSL_LSL_tree.h b/LuaSL/src/LuaSL_LSL_tree.h index d2d767c..2ef48ee 100644 --- a/LuaSL/src/LuaSL_LSL_tree.h +++ b/LuaSL/src/LuaSL_LSL_tree.h @@ -231,13 +231,15 @@ struct _LSL_Identifier // For variables and function parameters. struct _LSL_Statement { - LSL_Leaf *expressions; /// For things like a for statement, might hold three expressions. - LSL_Type type; // Expression type. + LSL_Leaf *expressions; // For things like a for statement, might hold three expressions. + LSL_Type type; // Expression type. }; struct _LSL_Block { + LSL_Block *outerBlock; LSL_Statement *statements; + LSL_Identifier *scopeVariables; }; struct _LSL_Function diff --git a/LuaSL/src/LuaSL_lexer.l b/LuaSL/src/LuaSL_lexer.l index 2b57f68..05134bc 100644 --- a/LuaSL/src/LuaSL_lexer.l +++ b/LuaSL/src/LuaSL_lexer.l @@ -2,7 +2,6 @@ #define excludeLexer #include "LuaSL_LSL_tree.h" -#include int common(YYSTYPE *lval, char *text, LuaSL_yyparseExtra *extra, boolean checkIgnorable, int type); -- cgit v1.1