Inform 7 Home Page / Documentation
§17.13. New tokens
We have now made good use of square-bracketed tokens, such as "[something]", in a variety of "Understand..." sentences. It is sometimes convenient to create new tokens of our own, to match whatever grammar we choose: this enables complicated knots of grammar to be used in many different "Understand..." sentences without having to write it all out each time.
For instance, here are new tokens: one for each of two groups of alternative prepositions.
Understand "beneath/under/by/near/beside/alongside/against" or "next to" or "in front of" as "[beside]".
Again, note that the slash indicates a choice between words only, not between entire phrases. For instance, if we write:
then the two alternative forms are "red bird" and "red robin", not "red bird" and "robin". By contrast,
will understand either "red bird" or "robin" but not "red robin". If we want to capture all three forms, we might define