Syntax extension
From Gallium
(Redirected from Syntax extension reference)
A syntax extension is a module that can parse a particular syntax.
Contents |
[edit]
Syntax extension statement: DELETE
DELETE_RULE Gram <rule name>: <rule definition> END;
[edit]
Syntax extension statement
[edit]
Special constructs
- list of symbols, possibly empty: LIST0 rule | LIST0 [ <rule definition> -> <action> ]
- list of symbols with a separator, possibly empty: LIST0 rule SEP <symbol> | LIST0 [ <rule definition> -> <action> ] SEP <symbol>
- list of symbols with at least one element: LIST1 rule | LIST1 [ <rule definition> -> <action> ]
- list of symbols with a separator and at least one element: LIST1 rule SEP <symbol> | LIST1 [ <rule definition> -> <action> ] SEP <symbol>
- optional symbol: OPT <symbol>
[edit]
Levels
FIRST, LAST, LEVEL level, AFTER level, BEFORE level