Inform 7: The Program

Inform 7

Build 5Z71

Graham Nelson

Inform 7 PDF
(168pp, 478KB)

The core compiler in a natural-language design system for interactive fiction.

Artistic License 2.0




Appendix A: The Standard Rules  (168pp, 478KB)  

PDF  

This is the body of Inform 7 source text automatically included with every project compiled, and which defines most of what end users see as the Inform language.

SR0 - Preamble  (A/sr0: 3pp, 69KB)

File (853 lines) 

PDF (3pp, 69KB) 

The titling line and rubric, use options and a few other technicalities before the Standard Rules get properly started.

SR1 - Physical World Model  (A/sr1: 18pp, 179KB)

File (1100 lines) 

PDF (18pp, 179KB) 

Verbal descriptions of spatial relationships; the hierarchy of kinds of object, and their properties.

SR2 - Variables and Rulebooks  (A/sr2: 18pp, 135KB)

File (1171 lines) 

PDF (18pp, 135KB) 

The global variables and those built-in rulebooks which do not belong either to specific actions or to specific activities.

SR3 - Activities  (A/sr3: 12pp, 93KB)

File (654 lines) 

PDF (12pp, 93KB) 

The built-in activities and their default stock of rules; the locale description mechanism.

SR4 - Actions  (A/sr4: 76pp, 170KB)

File (3071 lines) 

PDF (76pp, 170KB) 

The standard stock of actions supplied with Inform, along with the rules which define them; and the Understand grammar which corresponds to them.

SR5 - Phrase Definitions  (A/sr5: 40pp, 148KB)

File (1999 lines) 

PDF (40pp, 148KB) 

The phrases making up the Inform language, and in terms of which all other phrases and rules are defined; and the final sign-off of the Standard Rules extension, including its minimal documentation.


This is a "web", a term invented by Donald Knuth in the early 1980s for a program written according to the heavily annotated literate programming dogma. For more on "inweb", visit the Inform 7 project.