[antlr-interest] Rewrite to templates broken?

Johannes Luber jaluber at gmx.de
Mon Jan 28 15:52:40 PST 2008


Xavier schrieb:
> I'm able to avoid the effects mentioned in my earlier post by using
> 
> file:	(line NewLine)* line? EOF;
> 
> line:   nonComment? comment?
>                 {
>                          Console.Out.WriteLine("[line]" + $text + "[/line]");
>                  }
>                  ->template(out={$text}) "[line]<out>[/line]"
> 
> 

Could you please post - or send me directly - a complete grammar? 
Otherwise I can't test it.

Johannes


More information about the antlr-interest mailing list