[antlr-interest] Java package in generated code
Gavin Lambert
antlr at mirality.co.nz
Thu Oct 4 01:11:25 PDT 2007
At 15:25 4/10/2007, Austin Hastings wrote:
>Use
>
>@header { ... }
>
>for parser header info (package) and use
>
>@lexer::header { ... }
>
>for lexer info.
Or for uniformity you can use @parser::header for the first one.
(It's always irritated me that the unscoped one is
parser-only. It really ought to apply to both unless specifically
told otherwise, especially since there already is something that
means 'parser-only'.)
More information about the antlr-interest
mailing list