Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Just a small typo: dependant -> dependent

...

Please note that a combined grammar may not import a combined grammar. This may seem to limit the depth of imports but it's not the case. Parser grammars don't need to explicitly import the lexer grammar they rely on, this is done only once in the root composite grammar which "glues" its dependant dependent grammars.

Code Block
lexer grammar L ;

LETTER : 'a'..'z' ;
SPACE : ' ' ;

...