[antlr-interest] How the get the token value of 'ONEOF'

Jim Idle jimi at temporal-wave.com
Tue Dec 2 09:53:20 PST 2008


On Tue, 2008-12-02 at 22:07 +0800, chain one wrote:
> Hi Jared Bunting:
> 
> 
> Thanks for your quick response.
> Your suggestion must work. But there are so many tokens just like
> 'ONEOF' in my grammar right now, to explicitly  define all of this
> kind of tokens is quiet a bit boring.
> I am wondering if there is another way to do this? If not, I will
> define them : )


AntlrWorks will convert parser literals into lexer rules for you IIRC.

Jim


> 
> 


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20081202/19be57f0/attachment.html 


More information about the antlr-interest mailing list