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
sample
or user1
.
Keywords cannot be used as terminals, unless enclosed in single quotation marks. For example, to delete a user named user, the statement drop user user;
would return an error, but drop user 'user';
would work.
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.
![]() |
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. |
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.