Skip to content

Latest commit

 

History

History
20 lines (15 loc) · 795 Bytes

polygen-spec_inc_lex.markdown

File metadata and controls

20 lines (15 loc) · 795 Bytes

!comment

Appendix: Lexical rules (EBNF Rules)
------------------------------------------------------------------------
This block is locale-agnostic and is commonly shared by all versions of
the Polygen Manual. Include it via the !include(FILENAME) PP macro.

!EBNF

Term     ::= [a-z 0-9 '][a-z A-Z 0-9 ']*
          |  " [A-Z a-z 0-9 ( ) _ - ? . , ! & # + * / % $ £ ` [ ] { } ~ @ ; : | < > = ^ ' \ ]* "

Nonterm  ::= [A-Z][A-Z a-z 0-9]*

Label    ::= [A-Z a-z 0-9]+

DotLabel ::= . Label