Languages Features Creators Calendar CSV Resources Blog About Pricing Add Language
GitHub icon


Inform - Programming language

< >

Inform is a programming language created in 1993 by Graham Nelson.

#247on PLDB 30Years Old 586Users
2Books 5Papers 1mRepos

Inform is a programming language and design system for interactive fiction originally created in 1993 by Graham Nelson. Inform can generate programs designed for the Z-code or Glulx virtual machines. Versions 1 through 5 were released between 1993 and 1996. Read more on Wikipedia...

Example from hello-world:
"Hello World" by "I.F. Author" The world is a room. When play begins, say "Hello World"
! "Hello world" in Inform [ Main; print "Hello world^"; ];
Example from Linguist:
"Test Case" by Andrew Plotkin. Include Trivial Extension by Andrew Plotkin. Volume 1 - overview Chapter - setting the scene The Kitchen is a room. [Comment: this kitchen is modelled after the one in Zork, although it lacks the detail to establish this to the player.] Section - the kitchen table The spicerack is a container in the Kitchen. Table of Spices Name Flavor "cinnamon" 5 "nutmeg" 4 "szechuan pepper" 8 The description of the spicerack is "It's mostly empty." Chapter - a character A purple cow called Gelett is in the Kitchen. [This comment spans multiple lines.. ...and this line contains [nested square[] brackets]... ...which is legal in Inform 7.] Instead of examining Gelett: say "You'd rather see than be one." Instead of examining Gelett: say "You'd rather see than be one." Check smelling Gelett: say "This text contains several lines. A blank line is displayed as a paragraph break, but a simple line break is not."; stop the action. Section - cow catching Gelett has a number called the mooness. Instead of taking Gelett: increment the mooness of Gelett; if the mooness of Gelett is one: say "Gelett moos once."; else: say "Gelett moos [mooness of Gelett in words] times."; Volume 2 - the turn cycle Every turn: say "A turn passes[one of][or] placidly[or] idly[or] tediously[at random]."
Example from Wikipedia:
"Hello Deductible" by "I.F. Author" The story headline is "An Interactive Example". The Living Room is a room. "A comfortably furnished living room." The Kitchen is north of the Living Room. The Front Door is south of the Living Room. The Front Door is a door. The Front Door is closed and locked. The insurance salesman is a man in the Living Room. The description is "An insurance salesman in a tacky polyester suit. He seems eager to speak to you." Understand "man" as the insurance salesman. A briefcase is carried by the insurance salesman. The description is "A slightly worn, black briefcase." Understand "case" as the briefcase. The insurance paperwork is in the briefcase. The description is "Page after page of small legalese." Understand "papers" or "documents" or "forms" as the paperwork. Instead of listening to the insurance salesman: say "The salesman bores you with a discussion of life insurance policies. From his briefcase he pulls some paperwork which he hands to you."; move the insurance paperwork to the player.

Language features

Feature Supported Token Example
Strings "
"Hello world"
Semantic Indentation

Books about Inform from ISBNdb

title authors year publisher
Creating Interactive Fiction with Inform 7 Reed, Aaron 2010 Cengage Learning PTR
Creating Interactive Fiction With Inform 7, 1st Edition Aaron Reed 2010 Cengage Learning

Publications about Inform from Semantic Scholar

title authors year citations influentialCitations
"Risk tells us who, but not what or how"" empirical assessment of the complexity of criminogenic needs to inform correctional programming" F. Taxman and Michael Caudy 2015 83 7
Dyadic Team Interaction and Shared Cognition to Inform Human-Robot Teaming Mustafa Demir and Nathan J. Mcneese and N. Cooke 2018 5 0
Experience report: using hackage to inform language design J. Garrett Morris 2010 5 3
Using Text Mining Tools to Inform Search Term Generation: An Introduction for Librarians B. McGowan 2021 2 0
Utilizing Web Scraping and Natural Language Processing to Better Inform Pedagogical Practice Stephanie J. Lunn and Jia Zhu and Monique S. Ross 2020 1 0
snobol.html · inform.html · bison.html

View source

- Build the next great programming language · Search · v2023 · Day 208 · Docs · Acknowledgements · Traffic · Traffic Today · Mirrors · GitHub ·