> @lexer::header { > package mypackage; > } PS: If you do that, then for consistency you should write @parser::header as well and not just @header, although parser is the default. Otherwise it looks weird (IMO). -- O.L.