diff options
Diffstat (limited to 'LuaSL')
-rw-r--r-- | LuaSL/src/LuaSL_lemon_yaccer.y | 2 | ||||
-rw-r--r-- | LuaSL/src/constants.lsl | 7 |
2 files changed, 8 insertions, 1 deletions
diff --git a/LuaSL/src/LuaSL_lemon_yaccer.y b/LuaSL/src/LuaSL_lemon_yaccer.y index e2af75e..a9caaa4 100644 --- a/LuaSL/src/LuaSL_lemon_yaccer.y +++ b/LuaSL/src/LuaSL_lemon_yaccer.y | |||
@@ -175,7 +175,7 @@ statement(A) ::= type(B) LSL_IDENTIFIER(C) LSL_ASSIGNMENT_PLAIN(D) expr(E) LSL_S | |||
175 | statement(A) ::= type(B) LSL_IDENTIFIER(C) LSL_STATEMENT(F). { A = addStatement(F, LSL_IDENTIFIER, addVariable(compiler, B, C, NULL, NULL)); } | 175 | statement(A) ::= type(B) LSL_IDENTIFIER(C) LSL_STATEMENT(F). { A = addStatement(F, LSL_IDENTIFIER, addVariable(compiler, B, C, NULL, NULL)); } |
176 | 176 | ||
177 | %right LSL_DOT LSL_IDENTIFIER LSL_FUNCTION_CALL. | 177 | %right LSL_DOT LSL_IDENTIFIER LSL_FUNCTION_CALL. |
178 | identifier ::= identifier LSL_DOT LSL_IDENTIFIER. | 178 | identifier(A) ::= identifier LSL_DOT LSL_IDENTIFIER(B). { A = checkVariable(compiler, B); A->basicType = OT_float; } // Just a stub to get it to work for now. |
179 | identifier(A) ::= LSL_IDENTIFIER(B). { A = checkVariable(compiler, B); } | 179 | identifier(A) ::= LSL_IDENTIFIER(B). { A = checkVariable(compiler, B); } |
180 | 180 | ||
181 | %right LSL_DECREMENT_PRE LSL_INCREMENT_PRE LSL_DECREMENT_POST LSL_INCREMENT_POST. | 181 | %right LSL_DECREMENT_PRE LSL_INCREMENT_PRE LSL_DECREMENT_POST LSL_INCREMENT_POST. |
diff --git a/LuaSL/src/constants.lsl b/LuaSL/src/constants.lsl index 682fa05..a3b01e4 100644 --- a/LuaSL/src/constants.lsl +++ b/LuaSL/src/constants.lsl | |||
@@ -160,6 +160,13 @@ string EOF = "\n\n\n"; | |||
160 | rotation ZERO_ROTATION = <0.0, 0.0, 0.0, 1.0>; | 160 | rotation ZERO_ROTATION = <0.0, 0.0, 0.0, 1.0>; |
161 | vector ZERO_VECTOR = <0.0, 0.0, 0.0>; | 161 | vector ZERO_VECTOR = <0.0, 0.0, 0.0>; |
162 | 162 | ||
163 | // Temporary dummy variables to got vector and rotation thingies to work for now. | ||
164 | |||
165 | float s = 1.0; | ||
166 | float x = 0.0; | ||
167 | float y = 0.0; | ||
168 | float z = 0.0; | ||
169 | |||
163 | // Functions. | 170 | // Functions. |
164 | 171 | ||
165 | float llPow(float number, float places){} | 172 | float llPow(float number, float places){} |