[antlr-interest] Lexer and Parser class packaging
Cameron Taggart
cameron.taggart at gmail.com
Sun Jun 17 19:09:51 PDT 2007
True, but we are talking about a "combined grammars, correct? When
you use @header in a combined grammar, it only affects the generated
parser class, not the generated lexer class. Essentially, in a
combined grammar class it acts the same as @parser::header.
Cameron
(resend, forgot to reply to all)
On 6/17/07, Terence Parr <parrt at cs.usfca.edu> wrote:
>
> On Jun 18, 2007, at 11:46 AM, Cameron Taggart wrote:
>
> > Yes, that works. Something along the lines of @header defaults to
> > @parser::header might be useful info too.
>
> Actually it defaults to @lexer::header in the lexer ;)
>
> Ter
>
>
More information about the antlr-interest
mailing list