[antlr-interest] Simple grammar with error

Cédric Berger cedric at berger.to
Sat Sep 15 15:12:46 PDT 2007


Alfonso wrote:

> PLUS     : '+';
> MINUS    : '-';
> DIVIDE  : '/';
> ASTERISK : '*';
> 
> OPEN_PAREN : '(' ;
> CLOSE_PAREN: ')' ;

I keep wondering why people do that...
Is that just to obfuscate the grammar and make it less readable
or is there a real rationale here?

Cedric


More information about the antlr-interest mailing list