[antlr-interest] Literals not handled in grammars with import

Thomas Brandon tbrandonau at gmail.com
Mon Aug 25 07:37:45 PDT 2008


On Mon, Aug 25, 2008 at 11:44 PM, Johannes Luber <jaluber at gmx.de> wrote:
> Thomas Brandon schrieb:
>> Still, I tend to avoid literals as a style thing, and would
>> happily change but I'm reusing an existing grammar so I don't really
>> want to change it to ease bringing across future changes to the reused
>> grammar.
>
> You could always push your changes upstream. :)
>
> Johannes
Yeah, the grammar I'm reusing is actually ANTLRv3.g and ANTLRv3Tree.g.
So I don't really want to suggest stylistic changes to Ter ;) I'm sure
he is aware of the tradeoffs between the two approaches and I can see
the niceness of literals compared to cryptic token names.

Tom.


More information about the antlr-interest mailing list