From 773e2dd9d1f2150d4341b0f93774e6444507cacc Mon Sep 17 00:00:00 2001 From: Jason Self Date: Sun, 2 Jun 2019 09:49:05 -0700 Subject: [PATCH] Add File structure --- informqr/informqr.md | 37 ++++++++++++++++++++++++++++++++++++- 1 file changed, 36 insertions(+), 1 deletion(-) diff --git a/informqr/informqr.md b/informqr/informqr.md index 6da1886..6043d8d 100644 --- a/informqr/informqr.md +++ b/informqr/informqr.md @@ -641,4 +641,39 @@ You're unlikely to need these; look them up if necessary. Import variable variable ... variable; Link "compiled_file"; Switches list_of_compiler_switches; - System_file; \ No newline at end of file + System_file; + +File structure +-------------- + +A minimal source file: + + Constant Story "MYGAME"; + Constant Headline "^My first Inform game.^"; + Constant MANUAL_PRONOUNS; + + Include "Parser"; + Include "VerbLib"; + + [ Initialise; location = study; "^Hello!^"; ]; + + Class Room + with description "A bare room." + has light; + + Class Furniture + with before [; Take,Pull,Push,Pushdir: + print_ret (The) self, + " is too heavy for that."; ] + has static supporter; + + Room study "Your study'; + + Furniture "writing desk" study + with name 'writing' 'desk' 'table'; + + Object -> -> axe "rusty axe" + with name 'rusty' 'blunt' 'axe' 'hatchet' + description "It seems old and blunt."; + + Include "Grammar"; \ No newline at end of file -- 2.31.1