[antlr-interest] Specify java target package

Olivier Lefevre lefevrol at yahoo.com
Mon Mar 24 08:50:11 PDT 2008


Felix Dorner wrote:
> Hey,
> 
> when I use
> 
> @header{
> package "org.example.mypackage";
> }
> 
> The Parser gets annotated well, however the Lexer still stays in the 
> default package. Any way to specify a target package for the Lexer?

@lexer::header {
     package mypackage;
}



More information about the antlr-interest mailing list