summaryrefslogtreecommitdiff
path: root/test.stage
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2011-12-29 23:30:49 -0700
committerMike Buland <eichlan@xagasoft.com>2011-12-29 23:30:49 -0700
commit35f71b12dc48a928d98743f607f62b2f6dbe7307 (patch)
treef4297f57e570f52f3776392fc8ed4075db1ab4ac /test.stage
parentf66458278ce3663397fc985a1253c85b74f011e6 (diff)
downloadstage-35f71b12dc48a928d98743f607f62b2f6dbe7307.tar.gz
stage-35f71b12dc48a928d98743f607f62b2f6dbe7307.tar.bz2
stage-35f71b12dc48a928d98743f607f62b2f6dbe7307.tar.xz
stage-35f71b12dc48a928d98743f607f62b2f6dbe7307.zip
Goto works, scopes work.
Diffstat (limited to 'test.stage')
-rw-r--r--test.stage24
1 files changed, 13 insertions, 11 deletions
diff --git a/test.stage b/test.stage
index f150baa..c19dac9 100644
--- a/test.stage
+++ b/test.stage
@@ -26,22 +26,24 @@ function sillyDisplay( txt, extra )
26 } 26 }
27} 27}
28 28
29function myGoto( txt )
30{
31 display( txt );
32 goto( txt );
33}
34
29situation <<start>> 35situation <<start>>
30{ 36{
31 setup 37 setup
32 { 38 {
33 name = "Bob"; 39 player.name = "Bob";
40 name = player.name + "o";
34 name += " The Man"; 41 name += " The Man";
35 display("This is the setup phase for start, " + name); 42 display("This is the setup phase for start, " + name);
36 display( 5 <= 1 ); 43 sillyDisplay( "Hello", name == player.name );
37 display( 1 <= 1 ); 44
38 display( 0 <= 1 ); 45 myGoto( <<stuff>> );
39 sillyDisplay( "Hello", true ); 46 display("You shouldn't see this.");
40
41 if name == "Bob The Man" then
42 {
43 display("You are bob");
44 }
45 } 47 }
46 48
47 enter 49 enter
@@ -54,6 +56,6 @@ situation <<stuff>>
54{ 56{
55 enter 57 enter
56 { 58 {
57 display('''Entered stuff'''); 59 display('''Entered stuff''' + player.name);
58 } 60 }
59} 61}