[antlr-interest] Token options in tokens section?

Gordon Tyler Gordon.Tyler at quest.com
Tue Sep 1 09:11:02 PDT 2009


Is it possible to use token options in the tokens section of a grammar? I'd like to do something like this:

tokens {
    STUFF<StuffNode>
}

Where StuffNode is a CommonTree subclass.

But I get this error when generating the parser:

error(100): NewTransform.g:27:16: syntax error: antlr: NewTransform.g:27:16: unexpected token: <

Thanks,
Gordon

---
Gordon Tyler (Software Developer)
Quest Software <http://www.quest.com/>
260 King Street East, Toronto, Ontario M5A 4L5, Canada
Voice: (416) 933-5046 | Fax: (416) 933-5001

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20090901/5943c992/attachment.html 


More information about the antlr-interest mailing list