[antlr-interest] Selectively disabling lexer rules

Terence Parr parrt at cs.usfca.edu
Mon Jan 2 18:39:02 PST 2006


On Jan 2, 2006, at 6:38 PM, MenTaLguY wrote:
> On Mon, 2006-01-02 at 10:28 -0800, Terence Parr wrote:
>
>> Ugh...ruby is full of these landmines...why do languages by people
>> who don't know how to parse become popular!??  ugh.
>
> Probably because, in terms of a language's userbase, people who write
> parsers for it are a scant minority.  Consequently, there's relatively
> little incentive to make languages with easy-to-parse grammars.
>
> Sucks for us.

Yeah, the thing I've noticed though is a correlation between hard to  
parse and "gotchas" or, in the case of C++, hard to parse for humans. ;)

Ter


More information about the antlr-interest mailing list