diff options
Diffstat (limited to 'LuaSL/src/LuaSL_LSL_tree.h')
-rw-r--r-- | LuaSL/src/LuaSL_LSL_tree.h | 18 |
1 files changed, 5 insertions, 13 deletions
diff --git a/LuaSL/src/LuaSL_LSL_tree.h b/LuaSL/src/LuaSL_LSL_tree.h index 0d49737..4764ce8 100644 --- a/LuaSL/src/LuaSL_LSL_tree.h +++ b/LuaSL/src/LuaSL_LSL_tree.h | |||
@@ -122,7 +122,7 @@ typedef int LSL_Type; | |||
122 | typedef struct | 122 | typedef struct |
123 | { | 123 | { |
124 | LSL_Type type; | 124 | LSL_Type type; |
125 | struct LSL_Expression *expressions; | 125 | struct LSL_AST *expressions; |
126 | } LSL_Statement; | 126 | } LSL_Statement; |
127 | 127 | ||
128 | typedef struct | 128 | typedef struct |
@@ -167,7 +167,7 @@ typedef union LSL_Leaf | |||
167 | union LSL_Leaf *listValue; | 167 | union LSL_Leaf *listValue; |
168 | char *labelValue; | 168 | char *labelValue; |
169 | LSL_Operation operationValue; | 169 | LSL_Operation operationValue; |
170 | struct LSL_Expression *expressionValue; | 170 | struct LSL_AST *expressionValue; |
171 | LSL_Statement *doValue; | 171 | LSL_Statement *doValue; |
172 | LSL_Statement *forValue; | 172 | LSL_Statement *forValue; |
173 | LSL_Statement *ifValue; | 173 | LSL_Statement *ifValue; |
@@ -209,14 +209,6 @@ typedef struct | |||
209 | LSL_Leaf content; | 209 | LSL_Leaf content; |
210 | } LSL_Identifier; | 210 | } LSL_Identifier; |
211 | 211 | ||
212 | typedef struct LSL_Expression | ||
213 | { | ||
214 | struct LSL_Expression *left; | ||
215 | struct LSL_Expression *right; | ||
216 | LSL_Token *token; | ||
217 | LSL_Leaf content; | ||
218 | } LSL_Expression; | ||
219 | |||
220 | typedef struct LSL_AST | 212 | typedef struct LSL_AST |
221 | { | 213 | { |
222 | struct LSL_AST *left; | 214 | struct LSL_AST *left; |
@@ -251,9 +243,9 @@ typedef struct | |||
251 | #define YYLEX_PARAM ((LuaSL_yyparseParam*)data)->scanner | 243 | #define YYLEX_PARAM ((LuaSL_yyparseParam*)data)->scanner |
252 | 244 | ||
253 | 245 | ||
254 | LSL_AST *addExpression(LSL_Expression *exp); | 246 | LSL_AST *addExpression(LSL_AST *exp); |
255 | LSL_Expression *addInteger(int value); | 247 | LSL_AST *addInteger(int value); |
256 | LSL_Expression *addOperation(LSL_Operation type, LSL_Expression *left, LSL_Expression *right); | 248 | LSL_AST *addOperation(LSL_Operation type, LSL_AST *left, LSL_AST *right); |
257 | 249 | ||
258 | int yyerror(const char *msg); | 250 | int yyerror(const char *msg); |
259 | int yyparse(void *param); | 251 | int yyparse(void *param); |