diff options
author | Mike Buland <eichlan@xagasoft.com> | 2012-01-03 23:58:34 -0700 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2012-01-03 23:58:34 -0700 |
commit | 3a0f68b527cc85bd9847127085415739af784eca (patch) | |
tree | f6ea23fd940122d0d757182e4422f8cf86e8d071 /test.stage | |
parent | 549069762ccc35352186eb4fe1922883a0c4f213 (diff) | |
download | stage-3a0f68b527cc85bd9847127085415739af784eca.tar.gz stage-3a0f68b527cc85bd9847127085415739af784eca.tar.bz2 stage-3a0f68b527cc85bd9847127085415739af784eca.tar.xz stage-3a0f68b527cc85bd9847127085415739af784eca.zip |
Fixes for +=, -=, *=, /=
Diffstat (limited to '')
-rw-r--r-- | test.stage | 32 |
1 files changed, 10 insertions, 22 deletions
@@ -13,32 +13,20 @@ global | |||
13 | } | 13 | } |
14 | } | 14 | } |
15 | 15 | ||
16 | function subfunction() | ||
17 | { | ||
18 | if true then | ||
19 | { | ||
20 | return(); | ||
21 | } | ||
22 | display("subfunction()"); | ||
23 | } | ||
24 | |||
25 | function hello() | ||
26 | { | ||
27 | if true == true then | ||
28 | { | ||
29 | subfunction(); | ||
30 | display("Yeah!"); | ||
31 | return(); | ||
32 | } | ||
33 | display("hello()"); | ||
34 | } | ||
35 | |||
36 | situation <<start>> | 16 | situation <<start>> |
37 | { | 17 | { |
38 | setup | 18 | setup |
39 | { | 19 | { |
40 | hello(); | 20 | x = 10; |
41 | display("situation"); | 21 | display( x ); |
22 | x /= 2; | ||
23 | display( x ); | ||
24 | x *= 4; | ||
25 | display( x ); | ||
26 | x -= 10; | ||
27 | display( x ); | ||
28 | x += 20; | ||
29 | display( x ); | ||
42 | exit(); | 30 | exit(); |
43 | } | 31 | } |
44 | 32 | ||