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

Prashant Deva pdeva at placidsystems.com
Tue May 2 12:57:23 PDT 2006


In ANTLR3 the header section is taken to mean you want this in the parser
> generated code and not the lexer generated code. They are separate
> directives. You want:
>
> @lexer::header {
> }


This does not seem like uniform syntax. 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.

PRASHANT
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20060503/80c19033/attachment.html


More information about the antlr-interest mailing list