How to Read MaxL Railroad Diagrams

The MaxL grammar is illustrated using a railroad syntax notation. The railroad diagrams illustrate all the valid (grammatically correct) statements that can be parsed by MaxL.

Anatomy of MaxL Statements
Railroad Diagram Symbols
Sample Railroad Diagram

Anatomy of MaxL Statements

Keywords and variables on the main line are required; optional grammar is recessed. A vertical stack of words represents alternatives. Bold words indicate defaults when no word is chosen.

Railroad Diagram Symbols

Statement begins here.
Statement continues on next line.
Statement is continued from previous line.
Statement ends here.
Alternatives: optionally select one keyword. Boldface indicates default if no selection is made.
Alternatives: selection of one keyword is required.
A comma-separated list of any length is permitted.
Word is not further defined. Replace with value of format shown in the Terminals table.
Word used in statement is further defined.
Non-terminal used in statements is defined here.

Sample Railroad Diagram

The following diagram illustrates a variant grammar that parses the following English sentence:
"The quick brown fox jumps over the lazy dog."

Valid sentences parsable by this grammar:

Copyright 1991-2002 Hyperion Solutions Corporation. All rights reserved.