An example of the syntax, from a version of Dijkstra's algorithm[0]:
The current node is a node that varies.
A node can be found, examined, or unreached.
A node has a number called the total distance.
Definition: a node is near if its total distance is 10 or less.
Following relates various nodes to one node (called the precedent).
The verb to follow (he follows, they follow, he followed, it is followed, he is following) implies the following relation.
> but many have told me later that they really like coding an IF game using Inform 7 once
TIL a programming language purpose built for text adventure games, Is there any example of a famous game written using it with source? I wonder whether inform is specifically useful where there's meta programming within the game.
Also, You seem to take extra care and effort in teaching your students and I appreciate it.
> Is there any example of a famous game written using it with source?
Here's a page of links to Inform source for a number of games including Zork. Obviously it's a rewrite of Zork using Inform as Infocom predate Inform by many years.
> What’s an IF game? Very difficult to search that; Google prioritizes matches containing the English word ‘if’.
Replace "IF" with "text adventure" and you'll get better results. Their heyday was pre-Windows and the classic names to look for are Infocom (US), Scott Adams (US), and Level 9 (UK).
Note well that people who enjoy Interactive Fiction (what we used to call "text adventures") ought to be the most likely people to forgive the fact that a pseudo-natural language interface is, in fact, much pickier with regard to accepted input than actual natural language. (what we used to call tolerance for "guess the verb")
* It's very well documented. The entire compiler design and language grammar is detailed to near text-book standards.
* It's a language that none of my students have ever heard of before
* The syntax of the language is an English-like syntax which weirdly trips up most CS students the first time they see it
* It's a great example of a language used for specialty purposes. No kitchen-sink language here.
Students at first hate it...but many have told me later that they really like coding an IF game using Inform 7 once they get the hang of it.