[antlr-interest] HTML comments

Balvinder Singh bals1978 at hotmail.com
Fri Jun 7 00:28:42 PDT 2002

Hi ..

when I was trying recursive comment in HTML using the following rule

RecrComment : ("<!--" RecrComment "-->")=>"<!--" RecrComment "-->"
              "<!--" c:COMMENT_DATA "-->"(WS)?
COMMENT_DATA and WS are given in HTML/html.g of antlr examples dir.

then it was searching '-' token..

Then I try COMMENT rule in HTML/html.g, problem was the same.

COMMENT : "<!--" c:COMMENT_DATA "-->"(WS)?

It was also not working...

I tried also with {greedy=false}, but no improvement.


Send and receive Hotmail on your mobile device: http://mobile.msn.com


Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 

More information about the antlr-interest mailing list