default.txt 538 B

12345678
  1. <syntax> ::= <rule> | <rule> <syntax>
  2. <rule> ::= <opt-whitespace> "<" <rule-name> ">" <opt-whitespace> "::=" <opt-whitespace> <expression> <line-end>
  3. <opt-whitespace> ::= " " <opt-whitespace> | ""
  4. <expression> ::= <list> | <list> <opt-whitespace> "|" <opt-whitespace> <expression>
  5. <line-end> ::= <opt-whitespace> <EOL> | <line-end> <line-end>
  6. <list> ::= <term> | <term> <opt-whitespace> <list>
  7. <term> ::= <literal> | "<" <rule-name> ">"
  8. <literal> ::= '"' <text> '"' | "'" <text> "'"