[antlr-interest] Antlr grammar for xml like grammar

Ymo ymo.mail at gmail.com
Sun Aug 24 20:50:08 PDT 2008


Hi.

I am trying to write a lexer for an xml like grammar. I am pulling my hear
for i don't understand why it is not working.

The grammar goes like this :

TOK_TEXT
<% ... %>
TOK_TEXT
<%@ .... %>
<%-- COMMENT --%>


I can't  figure why my ml comments are getting eaten by the TOK_TEXT token
always.

YOur help is greatly appreciated !
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20080824/f3cac319/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Xtc.g
Type: application/octet-stream
Size: 3691 bytes
Desc: not available
Url : http://www.antlr.org/pipermail/antlr-interest/attachments/20080824/f3cac319/attachment.obj 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Main.xtl
Type: application/octet-stream
Size: 869 bytes
Desc: not available
Url : http://www.antlr.org/pipermail/antlr-interest/attachments/20080824/f3cac319/attachment-0001.obj 


More information about the antlr-interest mailing list