aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorDavid Walter Seikel2012-02-04 23:16:29 +1000
committerDavid Walter Seikel2012-02-04 23:16:29 +1000
commita0e0926493e6e2519df4ee98d2f894db7a445c0d (patch)
tree7e28f641c08c749f95752855502d2491224d08fb
parentFix up rotation and vector subscripts in expressions and non plain assignments. (diff)
downloadSledjHamr-a0e0926493e6e2519df4ee98d2f894db7a445c0d.zip
SledjHamr-a0e0926493e6e2519df4ee98d2f894db7a445c0d.tar.gz
SledjHamr-a0e0926493e6e2519df4ee98d2f894db7a445c0d.tar.bz2
SledjHamr-a0e0926493e6e2519df4ee98d2f894db7a445c0d.tar.xz
Change the test script into a proper LSL script.
-rw-r--r--LuaSL/Test sim/objects/test.lsl18
-rw-r--r--LuaSL/src/constants.lsl1
2 files changed, 13 insertions, 6 deletions
diff --git a/LuaSL/Test sim/objects/test.lsl b/LuaSL/Test sim/objects/test.lsl
index 56864d3..6e1d915 100644
--- a/LuaSL/Test sim/objects/test.lsl
+++ b/LuaSL/Test sim/objects/test.lsl
@@ -1,6 +1,14 @@
1/* */ 4 /* c */ + /* c0 */ 2 /* c1 */ * /* c2 */ 10 /* c3 */ + /* c4 */ 1
2 3 /* c5 */ * /* c6 */ ( /* c7 */ 5 /* c8 */ + /* c9 */ 1 /* cA */ ) /* cB */ ; /* cE */ 2default
3// Some more arithmetic - 3{
41+1; 4 state_entry()
520.5 + 20 + 1.5; 5 {
6 llSay(0, /* */ 4 /* c */ + /* c0 */ 2 /* c1 */ * /* c2 */ 10 /* c3 */ + /* c4 */
7 3 /* c5 */ * /* c6 */ ( /* c7 */ 5 /* c8 */ + /* c9 */ 1 /* cA */ ) /* cB */) ; /* cE */
8 // Some more arithmetic -
9 llSay(0, 1+1);
10 llSay(0, 20.5 + 20 + 1.5);
11 }
12}
13
6// This is the end my friend. \ No newline at end of file 14// This is the end my friend. \ No newline at end of file
diff --git a/LuaSL/src/constants.lsl b/LuaSL/src/constants.lsl
index a3b01e4..e462a95 100644
--- a/LuaSL/src/constants.lsl
+++ b/LuaSL/src/constants.lsl
@@ -267,4 +267,3 @@ integer llListen(integer channel, string name, key id, string msg){}
267 267
268 llMessageLinked(integer link, integer num, string text, key aKey){} 268 llMessageLinked(integer link, integer num, string text, key aKey){}
269 269
270