[antlr-interest] Specifying Java package for the Lexer?

Dennis Benzinger Dennis.Benzinger at gmx.net
Thu Sep 18 05:57:01 PDT 2008


Am 18.09.2008 14:49, Joost Kraaijeveld schrieb:
> Hi ,
> 
> Is it possible to specify the Java package (e.g. package
> name/of/my/package;) for the Lexer, just as in the @header directive for
> the Parser ?
> 
> TIA
> 

Yes,

@lexer::header {package name.of.my.package;}


HTH,
Dennis Benzinger




More information about the antlr-interest mailing list