[antlr-interest] Imaginary nodes in Antlr 3
geoff
ot0006 at 0x29a.org.uk
Mon Jun 18 03:21:21 PDT 2007
On Sat, 16 Jun 2007 16:26:12 +0200, Kay Roepke
<kroepke at classdump.org> wrote:
>Hi geoff!
>
>On Jun 16, 2007, at 3:38 PM, geoff wrote:
<confused about imaginary nodes>
>> Is there something I'm missing on automatic creation of imaginary
>> tokens? Clues welcome.
>
>ANTLR won't generate the token in the grammar. The text refers to the
>Token object. You still need to tell ANTLR about the token in the
>grammar, either by declaring a lexer rule or, if you want to have
>imaginary tokens, via the tokens {} section in your grammar.
>Refer to page 99 in the book.
>
>HTH,
Thanks for the page reference, Kay. Indeed it helped.
"Look in the excellent index" would also have been good advice.
--
best,
geoff stevens
regrettably the email address above will bounce
More information about the antlr-interest
mailing list