[antlr-interest] my code is marked with start/end tokens

Jim Idle jimi at temporal-wave.com
Fri Oct 10 13:00:12 PDT 2008


On Fri, 2008-10-10 at 22:42 +0300, java nagila wrote:
> hi all,
> 
> 
> 
> i'm new to antlr, and my first real language has this thing where the
> code could be divided to many parts in arbitrary text.
> 
> 
> here is an example input, where the code (java in this case) comes in
> parts and marked by start/end tokens ( '(|' and  '|)' ):



Look at the island grammar example for how to do this. Download the
examples from the download page on the web site.


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


More information about the antlr-interest mailing list