Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Inform
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=== Inform 7 programming language === Notable features include strong bias towards declarative rule-based style of programming and ability to infer types and properties of objects from the way they are used. For example, the statement "John wears a hat." creates a "person" called "John" (since only people are capable of wearing things), creates a "thing" with the "wearable" property (since only objects marked "wearable" are capable of being worn), and sets John as wearing the hat. Another notable aspect of the language is direct support for relations which track associations between objects. This includes automatically provided relations, like one object containing another or an object being worn, but the developer can add their own relations. A developer might add relations indicating love or hatred between beings, or to track which characters in a game have met each other. Inform 7 is a highly [[domain-specific programming language]], providing the writer/programmer with a much higher level of abstraction than Inform 6, and highly readable resulting source code. General-purpose logical and arithmetic statements are written in natural language (see e.g. the "Physics" example in ''The Inform Recipe Book'').<ref>{{cite web |title=10.1. Gases |url=https://ganelson.github.io/inform-website/book/RB_10_1.html |website=ganelson.github.io}}</ref> In early Inform 7, the compiler translates the code to Inform 6, much like [[CFront]] did with C++ and C.<ref name="whyni"/> The current compiler (as of version 10 of 2022) is additionally able to translate the code directly to C for a native executable,{{dubious|reason=Source is vague. It *feels* more like a inweb "literary programming" situation if you look at the "foundation" code which uses it.|date=January 2023}} and to generate an "index mini-website" describing the story.<ref>{{cite web |title=Structure of the Inform 7 compiler |url=https://ganelson.github.io/inform/structure.html |website=ganelson.github.io}}</ref>
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)