[antlr-interest] Antlr v3.0ea8 : @header not taken into account in automatically generated lexer java code...

Terence Parr parrt at cs.usfca.edu
Tue May 2 13:02:28 PDT 2006


On May 2, 2006, at 12:57 PM, Prashant Deva wrote:
> This does not seem like uniform syntax.

uniform with what?

> It can be confusing as was in this case.
>
> I propose we put the header syntax as -
> @header::(parser|lexer) {
> }
>
> That way it would be much less confusing for beginners.

Seems more confusing to me.  It's just that there is no doc. ;)

@scopename::actionname {...}

is the syntax...works great. :)

It's uniform with $scopename::attribute as well :)

Ter


More information about the antlr-interest mailing list