This section describes the syntax for the resource language using railroad syntax, and describes the formats used.
Resource files are used to build dialog templates, menu templates, accelerator tables, extended attribute association tables, keyboard scancode mapping tables, keyboard names and fonts. The files must be compiled before they can be used by application programs.
How to Read the Syntax Definitions
Throughout this reference, syntax is described using the following structure.
The ─── symbol indicates the beginning of a statement.
The ─── symbol indicates that the statement syntax is continued on the next line.
The ─── symbol indicates that a statement is continued from the previous line.
The ─── symbol indicates the end of a statement.
Diagrams of syntactical units other than complete statements start with the ─── symbol and end with the ─── symbol.
───STATEMENT───────required_item───────────
───STATEMENT─────┬───────────────┬───────── └─optional_item─┘
If one of the items must be chosen, one item of the stack appears on the main path.
───STATEMENT───┬──required_choice1──┬────── └──required_choice2──┘
If choosing one of the items is optional, the entire stack appears below the main path.
───STATEMENT───┬────────────────────┬────── ├──optional_choice1──┤ └──optional_choice2──┘
┌──────────────────┐ │ ───STATEMENT─────repeatable_item──┴────────
A repeat arrow above a stack indicates that a choice can be made from the stacked items, or a single choice can be repeated.
PARM1
They must be spelled exactly as shown. Variables appear in all lowercase letters, for example:
parmx
They represent user-supplied names or values.