[antlr-interest] Lexer and Parser class packaging
Martin Probst
mail at martin-probst.com
Mon Feb 5 08:40:18 PST 2007
Hi,
> You need to use @header::lexer and @header::parser. Otherwise the
> header element will only appear in one of them (can’t remember
> which it is now by default ;-).
Why is that actually so? Apparently 95% of all beginners with ANTLR 3
run into this problem, maybe you should simply adjust to the users
and make @header {} be inherited by both parser and lexer?
Regards,
Martin
More information about the antlr-interest
mailing list