aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/LuaSL/src/LuaSL_LSL_tree.h
diff options
context:
space:
mode:
Diffstat (limited to 'LuaSL/src/LuaSL_LSL_tree.h')
-rw-r--r--LuaSL/src/LuaSL_LSL_tree.h18
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;
122typedef struct 122typedef 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
128typedef struct 128typedef 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
212typedef 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
220typedef struct LSL_AST 212typedef 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
254LSL_AST *addExpression(LSL_Expression *exp); 246LSL_AST *addExpression(LSL_AST *exp);
255LSL_Expression *addInteger(int value); 247LSL_AST *addInteger(int value);
256LSL_Expression *addOperation(LSL_Operation type, LSL_Expression *left, LSL_Expression *right); 248LSL_AST *addOperation(LSL_Operation type, LSL_AST *left, LSL_AST *right);
257 249
258int yyerror(const char *msg); 250int yyerror(const char *msg);
259int yyparse(void *param); 251int yyparse(void *param);