[antlr-interest] Lexer and Parser class packaging
Gavin Lambert
antlr at mirality.co.nz
Mon Feb 5 13:01:51 PST 2007
At 08:30 6/02/2007, Jim Idle wrote:
>One possibility though is to not have a default for the @header
{}
>which will then just leave @lexer::header and @parser::header,
>which are probably more obvious.
IMO, @header should either go to both files or it should produce
an error message telling the user to go use @lexer::header or
@parser::header instead. Having it just assume the parser::
prefix just doesn't feel right -- especially if you're using
type-hinting file extensions such as .g3l & .g3lp.
More information about the antlr-interest
mailing list