Syntax extension

From Gallium

(Redirected from Syntax extension reference)
Jump to: navigation, search

A syntax extension is a module that can parse a particular syntax.

Contents

Syntax extension statement: DELETE

DELETE_RULE Gram <rule name>: <rule definition> END;

Syntax extension statement

EXTEND

Entries

Levels

Rules

Symbols

Actions

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>

Levels

FIRST, LAST, LEVEL level, AFTER level, BEFORE level

Personal tools
Espace privé