[antlr-interest] Header not copied to lexer file?

Brian DeVries contingencyplan at gmail.com
Fri Oct 13 19:38:38 PDT 2006


In my 3.0b4 grammar file, I have the lines

@header
{
	package parsing;
}

The generated Java parsing file contains this line. However, the
generated lexer grammar and Java files do not, resulting in a compiler
error.

What can I do to fix this, aside from manually entereing the header in
the lexer file each time?

Thanks,
~Brian DeVries


More information about the antlr-interest mailing list