Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>There is a programming language called Inform that, in its most recent incarnation, Inform 7, looks a <em>lot</em> like natural language...in particular, written language. </p> <p>Inform is very specifically for creating text adventure games, but there is no inherent reason that the concepts couldn't be extended into other realms.</p> <p>Here's a small snippet of Inform 7 code, taken from the game Glass, by Emily Short.</p> <pre><code>Stage is a room. The old lady is a woman in the Stage. Understand "mother" or "stepmother" as the old lady. The old lady is active. The description of the lady is "She looks plucked: thin neck with folds of skin exposed, nose beaky, lips white. Perhaps when her fortunes are mended her cosmetics too will improve." The Prince is a man in the Stage. The description of the prince is "He's tolerably attractive, in his flightless way. It's hard not to pity him a little." The prince carries a glass slipper. The glass slipper is wearable. Understand "shoe" or "heel" or "toe" or "foot" as the slipper. The description of the slipper is "It is very small for an adult woman's foot." </code></pre> <p>Complete code can be found <a href="http://www.inform-fiction.org/I7Downloads/Examples/glass/source.html" rel="noreferrer">here</a>.</p> <p>This is a small simple example...it can actually handle a surprisingly robust set of ideas. </p> <p>It should be pointed out that the code isn't really a strange cypher where the constructs have hidden meanings...this code does more or less what you would expect. For example:</p> <pre><code>The old lady is a woman in the Stage. Understand "mother" or "stepmother" as the old lady. </code></pre> <p>creates an object that happens to be a female person, names that object "old lady", and places that object within the room object called the "Stage". Then two aliases ("mother" and "stepmother" are created that also both reference the "old lady" object.</p> <p>Of course, as the examples get increasingly complex, the necessary hoops to jump through also become more complex. English is, by its very nature, ambiguous, while computer code is most definitively not. So we'll never get a "perfect marriage".</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload