[antlr-interest] Reuse of tokens and rules

Terence Parr parrt at cs.usfca.edu
Fri Jun 30 08:06:35 PDT 2006


On Jun 30, 2006, at 7:48 AM, Thomas Brandon wrote:

> Check out the island-grammar example in the v3 examples pack.  
> Should give you the basis for everything you need.
>

Note that this one is complicated in that you need to parse really to  
find the end of the embedded string.  If you can easily tell in the  
lexer, then just suck up all char in the embedded chunk and parse  
with the other grammar.  More straightforward.
Ter


More information about the antlr-interest mailing list