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

Prashant Deva prashant.deva at gmail.com
Tue May 2 13:09:46 PDT 2006


No, what i meant was this-
According to the parent post, it seems if we want to declare a header for a
parser, we just use-
@header{}

But to declare a header for lexer, we gotta use-
@lexer::header{}

That is where it doesnt feel uniform.

Dont you think it would be better if we used -
@parser::header{}
&
@lexer::header{}
for both the lexer & the parser.

That way it would seem more uniform :)

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


More information about the antlr-interest mailing list