13.2. What sentences are made up from

| Chapter 13: Relations |

| 13.2. What sentences are made up from

A sentence consists of two nouns with a verb between them. Usually, the two nouns are descriptions, as in:

> Mr Collins is in a lighted room.

Here "Mr Collins" and "a lighted room" are descriptions, the full rules for which were given in Chapter 5. But there are sentences where one or both of the nouns is a value instead. For instance, in

> if the score is greater than 10, ...

the sentence "the score is greater than 10" consists of two values ("the score" and "10") connected by a verb part ("is greater than").

This chapter is about getting the most out of sentences by defining new verbs to express ideas not already built in to Inform. Before we can define a new sentence verb, however, we must first look at the meanings of verbs: which Inform calls "relations".

223
| Example Formal syntax of sentences A more formal description of the sentence grammar used by Inform for both assertions and conditions. |
RB

Previous | Contents | Next