diff options
author | David Walter Seikel | 2012-01-12 04:54:17 +1000 |
---|---|---|
committer | David Walter Seikel | 2012-01-12 04:54:17 +1000 |
commit | b5ba6b85252e5052c64174d6f3abad5a4a5a2a34 (patch) | |
tree | e12191109e9036257a39beea82fec7f167c18123 /LuaSL/src/LuaSL_LSL_tree.h | |
parent | Update .gitignore for lemon. (diff) | |
download | SledjHamr-b5ba6b85252e5052c64174d6f3abad5a4a5a2a34.zip SledjHamr-b5ba6b85252e5052c64174d6f3abad5a4a5a2a34.tar.gz SledjHamr-b5ba6b85252e5052c64174d6f3abad5a4a5a2a34.tar.bz2 SledjHamr-b5ba6b85252e5052c64174d6f3abad5a4a5a2a34.tar.xz |
Some general cleanup.
Diffstat (limited to 'LuaSL/src/LuaSL_LSL_tree.h')
-rw-r--r-- | LuaSL/src/LuaSL_LSL_tree.h | 13 |
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 | ||
134 | struct _LSL_Parenthesis | 129 | struct _LSL_Parenthesis |
@@ -205,7 +200,7 @@ typedef struct | |||
205 | 200 | ||
206 | void burnLeaf(LSL_Leaf *leaf); | 201 | void burnLeaf(LSL_Leaf *leaf); |
207 | LSL_Leaf *addExpression(LSL_Leaf *exp); | 202 | LSL_Leaf *addExpression(LSL_Leaf *exp); |
208 | LSL_Leaf *addOperation(LSL_Leaf *lval, LSL_Type type, LSL_Leaf *left, LSL_Leaf *right); | 203 | LSL_Leaf *addOperation(LSL_Leaf *left, LSL_Leaf *lval, LSL_Leaf *right); |
209 | LSL_Leaf *addParenthesis(LSL_Leaf *lval, LSL_Leaf *expr, LSL_Leaf *rval); | 204 | LSL_Leaf *addParenthesis(LSL_Leaf *lval, LSL_Leaf *expr, LSL_Leaf *rval); |
210 | LSL_Leaf *addStatement(LSL_Leaf *lval, LSL_Type type, LSL_Leaf *expr); | 205 | LSL_Leaf *addStatement(LSL_Leaf *lval, LSL_Type type, LSL_Leaf *expr); |
211 | 206 | ||