[antlr-interest] Composite grammar issues

Gavin Lambert antlr at mirality.co.nz
Thu Apr 16 12:13:06 PDT 2009


At 03:31 17/04/2009, Kumar Rangarajan wrote:
>While most things just work out of the box or could be trivially 
>worked around, one breaking issue is related to the way the lexer 
>is generated, if the composite grammar defines any lexer rules. I 
>am using Java code generation, and we see that the contents of 
>the "header" defined either in the composite file or in the 
>central lexer file does not get copied to the generated lexer 
>code.

@parser::header {
   package foo;
}
@lexer::header {
   package foo;
}



More information about the antlr-interest mailing list