[antlr-interest] Is tokenVocab an Option for Parser Grammars?

Jim Idle jimi at temporal-wave.com
Mon Aug 11 10:57:21 PDT 2008


On Mon, 2008-08-11 at 10:26 -0700, titech at metaorb.com wrote:

> Jim,
> Is it possible to use a combined grammar and “import” some of the lexer rules—I’ve got a common subset of rules that I’d have to copy over and over, but I’d hate to have to make lexer rules for every literal.
> Thanks,
> --Mike

It should be possible if you are using the latest and greatest (see the
polydiff example). But it won't take you too long to make the lexer
rules with ANTLRWorks as it has a tool (right click) that will do this
for you I believe.

Jim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20080811/ff49a9f3/attachment.html 


More information about the antlr-interest mailing list