[antlr-interest] Parsing a JSP-like language

Michael Peter michael.peter at crossflare.de
Sat Oct 13 09:54:20 PDT 2007


I wish I you could replace the <% %> tag with something else, but I'm bound
to these for legacy reasons. 

However I'm really puzzled that I cannot rewrite my rule this:

TEXT : {!tagMode }?=> ~('<%')*;
or
TEXT : {!tagMode }?=> (~'<%')*;

Why? Is this by design or a bug?

Best regards,
Michael

> -----Ursprüngliche Nachricht-----
> Von: saintofqin at gmail.com [mailto:saintofqin at gmail.com] Im Auftrag von
> ???
> Gesendet: Freitag, 12. Oktober 2007 07:11
> An: Michael Peter
> Betreff: Re: [antlr-interest] Parsing a JSP-like language
> 
> Hi Peter,
>  IMHO, this style you wanted seems like dwaw a snake and then draw
> foot.:)
> Why not just a custom text node tag, f.e. <code></code>?



More information about the antlr-interest mailing list