aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/LuaSL/src/LuaSL_LSL_tree.h
diff options
context:
space:
mode:
authorDavid Walter Seikel2012-01-12 04:54:17 +1000
committerDavid Walter Seikel2012-01-12 04:54:17 +1000
commitb5ba6b85252e5052c64174d6f3abad5a4a5a2a34 (patch)
treee12191109e9036257a39beea82fec7f167c18123 /LuaSL/src/LuaSL_LSL_tree.h
parentUpdate .gitignore for lemon. (diff)
downloadSledjHamr-b5ba6b85252e5052c64174d6f3abad5a4a5a2a34.zip
SledjHamr-b5ba6b85252e5052c64174d6f3abad5a4a5a2a34.tar.gz
SledjHamr-b5ba6b85252e5052c64174d6f3abad5a4a5a2a34.tar.bz2
SledjHamr-b5ba6b85252e5052c64174d6f3abad5a4a5a2a34.tar.xz
Some general cleanup.
Diffstat (limited to '')
-rw-r--r--LuaSL/src/LuaSL_LSL_tree.h13
1 files changed, 4 insertions, 9 deletions
diff --git a/LuaSL/src/LuaSL_LSL_tree.h b/LuaSL/src/LuaSL_LSL_tree.h
index 9db83d0..9493552 100644
--- a/LuaSL/src/LuaSL_LSL_tree.h
+++ b/LuaSL/src/LuaSL_LSL_tree.h
@@ -86,13 +86,11 @@ struct _LSL_Leaf
86{ 86{
87 LSL_Leaf *left; 87 LSL_Leaf *left;
88 LSL_Leaf *right; 88 LSL_Leaf *right;
89 LSL_Token *token;
90 char *ignorableText;
91 int line, column;
89 union 92 union
90 { 93 {
91 char *commentValue;
92 char *spaceValue;
93
94 LSL_Type operationValue;
95 LSL_Leaf *expressionValue;
96 LSL_Parenthesis *parenthesis; 94 LSL_Parenthesis *parenthesis;
97 95
98 float floatValue; 96 float floatValue;
@@ -126,9 +124,6 @@ struct _LSL_Leaf
126 124
127 char *unknownValue; 125 char *unknownValue;
128 } value; 126 } value;
129 char *ignorableText;
130 LSL_Token *token;
131 int line, column;
132}; 127};
133 128
134struct _LSL_Parenthesis 129struct _LSL_Parenthesis
@@ -205,7 +200,7 @@ typedef struct
205 200
206void burnLeaf(LSL_Leaf *leaf); 201void burnLeaf(LSL_Leaf *leaf);
207LSL_Leaf *addExpression(LSL_Leaf *exp); 202LSL_Leaf *addExpression(LSL_Leaf *exp);
208LSL_Leaf *addOperation(LSL_Leaf *lval, LSL_Type type, LSL_Leaf *left, LSL_Leaf *right); 203LSL_Leaf *addOperation(LSL_Leaf *left, LSL_Leaf *lval, LSL_Leaf *right);
209LSL_Leaf *addParenthesis(LSL_Leaf *lval, LSL_Leaf *expr, LSL_Leaf *rval); 204LSL_Leaf *addParenthesis(LSL_Leaf *lval, LSL_Leaf *expr, LSL_Leaf *rval);
210LSL_Leaf *addStatement(LSL_Leaf *lval, LSL_Type type, LSL_Leaf *expr); 205LSL_Leaf *addStatement(LSL_Leaf *lval, LSL_Type type, LSL_Leaf *expr);
211 206