diff options
Diffstat (limited to 'LuaSL/src/LuaSL_LSL_tree.h')
-rw-r--r-- | LuaSL/src/LuaSL_LSL_tree.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/LuaSL/src/LuaSL_LSL_tree.h b/LuaSL/src/LuaSL_LSL_tree.h index 94be1a6..64832d2 100644 --- a/LuaSL/src/LuaSL_LSL_tree.h +++ b/LuaSL/src/LuaSL_LSL_tree.h | |||
@@ -40,6 +40,7 @@ typedef struct _allowedTypes allowedTypes; | |||
40 | typedef struct _LSL_Token LSL_Token; | 40 | typedef struct _LSL_Token LSL_Token; |
41 | typedef struct _LSL_Text LSL_Text; | 41 | typedef struct _LSL_Text LSL_Text; |
42 | typedef struct _LSL_Leaf LSL_Leaf; | 42 | typedef struct _LSL_Leaf LSL_Leaf; |
43 | typedef struct _LSL_Numby LSL_Numby; | ||
43 | typedef struct _LSL_Parenthesis LSL_Parenthesis; | 44 | typedef struct _LSL_Parenthesis LSL_Parenthesis; |
44 | typedef struct _LSL_Identifier LSL_Identifier; | 45 | typedef struct _LSL_Identifier LSL_Identifier; |
45 | typedef struct _LSL_Statement LSL_Statement; | 46 | typedef struct _LSL_Statement LSL_Statement; |
@@ -185,6 +186,7 @@ struct _LSL_Leaf | |||
185 | float vectorValue[3]; | 186 | float vectorValue[3]; |
186 | float rotationValue[4]; | 187 | float rotationValue[4]; |
187 | int integerValue; | 188 | int integerValue; |
189 | LSL_Numby *numbyValue; | ||
188 | LSL_Leaf *listValue; | 190 | LSL_Leaf *listValue; |
189 | const char *stringValue; | 191 | const char *stringValue; |
190 | opType operationValue; | 192 | opType operationValue; |
@@ -199,6 +201,17 @@ struct _LSL_Leaf | |||
199 | } value; | 201 | } value; |
200 | }; | 202 | }; |
201 | 203 | ||
204 | struct _LSL_Numby | ||
205 | { | ||
206 | LSL_Text text; | ||
207 | LSL_Type type; | ||
208 | union | ||
209 | { | ||
210 | float floatValue; | ||
211 | int integerValue; | ||
212 | } value; | ||
213 | }; | ||
214 | |||
202 | struct _LSL_Parenthesis | 215 | struct _LSL_Parenthesis |
203 | { | 216 | { |
204 | LSL_Leaf *contents; | 217 | LSL_Leaf *contents; |
@@ -403,6 +416,7 @@ LSL_Leaf *addFunctionBody(LuaSL_compiler *compiler, LSL_Leaf *function, LSL_Leaf | |||
403 | LSL_Leaf *addFunctionCall(LuaSL_compiler *compiler, LSL_Leaf *identifier, LSL_Leaf *open, LSL_Leaf *params, LSL_Leaf *close); | 416 | LSL_Leaf *addFunctionCall(LuaSL_compiler *compiler, LSL_Leaf *identifier, LSL_Leaf *open, LSL_Leaf *params, LSL_Leaf *close); |
404 | LSL_Leaf *addIfElse(LuaSL_compiler *compiler, LSL_Leaf *ifBlock, LSL_Leaf *elseBlock); | 417 | LSL_Leaf *addIfElse(LuaSL_compiler *compiler, LSL_Leaf *ifBlock, LSL_Leaf *elseBlock); |
405 | LSL_Leaf *addList(LSL_Leaf *left, LSL_Leaf *list, LSL_Leaf *right); | 418 | LSL_Leaf *addList(LSL_Leaf *left, LSL_Leaf *list, LSL_Leaf *right); |
419 | LSL_Leaf *addNumby(LSL_Leaf *numby); | ||
406 | LSL_Leaf *addOperation(LuaSL_compiler *compiler, LSL_Leaf *left, LSL_Leaf *lval, LSL_Leaf *right); | 420 | LSL_Leaf *addOperation(LuaSL_compiler *compiler, LSL_Leaf *left, LSL_Leaf *lval, LSL_Leaf *right); |
407 | LSL_Leaf *addParameter(LuaSL_compiler *compiler, LSL_Leaf *type, LSL_Leaf *newParam); | 421 | LSL_Leaf *addParameter(LuaSL_compiler *compiler, LSL_Leaf *type, LSL_Leaf *newParam); |
408 | LSL_Leaf *addParenthesis(LSL_Leaf *lval, LSL_Leaf *expr, LSL_Type type, LSL_Leaf *rval); | 422 | LSL_Leaf *addParenthesis(LSL_Leaf *lval, LSL_Leaf *expr, LSL_Type type, LSL_Leaf *rval); |