[antlr-interest] 3.0 final will require t.g has t in it

Martin Probst mail at martin-probst.com
Mon Jul 10 12:01:27 PDT 2006


>>  So "grammar MyLang" would generate MyLangParser.(java|tokens)
>> and MyLangLexer.(java|tokens).
>
> Heh, that's pretty good!  Anybody object to this?

Well, why would you want to expose the Lexer as a top-level class if  
the user didn't even declare it explicitly? Have it be a nested class  
within the parser, that would keep the user surprise as low as possible.

Martin


More information about the antlr-interest mailing list