From f2ee67558acbe3c418a7558587b56158d593d88d Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Fri, 30 Dec 2011 13:11:35 -0700 Subject: return, exit, lists added. You can't index them. They're linked lists right now, maybe that's not really what I want long-term, but it'll work for now... --- test.stage | 37 +++++++++++++++++++++++-------------- 1 file changed, 23 insertions(+), 14 deletions(-) (limited to 'test.stage') diff --git a/test.stage b/test.stage index 0963143..1c58991 100644 --- a/test.stage +++ b/test.stage @@ -11,6 +11,17 @@ global { display(object); } + // You should always have a global exit, quit, escape, something for + // dev-testing at least. + command: "exit" + { + exit(); + } +} + +function square( x ) +{ + return( x*x ); } function sillyDisplay( txt, extra ) @@ -39,22 +50,20 @@ function getThing() situation <> { - setup + command: "go" "home" { - situation.thing = 55; - player.name = "Bob"; - name = player.name + "o"; - name += " The Man"; - display("This is the setup phase for start, " + name); - sillyDisplay( "Hello", name == player.name ); - - display( exists(name) ); - delete( name ); - display( exists(name) ); + display("Home would be nice..."); + } - getThing(); - myGoto( <> ); - display("You shouldn't see this."); + command: "go" elsewhere + { + display("You don't know how to go " + elsewhere ); + } + setup + { + stuff = [5, 10, "bob"]; + display( stuff ); + exit(); } enter -- cgit v1.2.3