Hi all,

I'm doing another attempt with the hope that somebody knows the answer and 
he/she wants to share.
I have an HTML grammar and I have a lexer rule for strings:

STRING    :    '"' (ESC|~('"'|'\\'|'\n'|'\r'))* '"'
        | '\'' (ESC|~('\''|'\\'|'\n'|'\r'))* '\''
        ;

But if I have a text in html like 
    I'm just a text
then the lexer will try to identify a string and it will generate an error.

How can I solve this?

Thanks,
Adrian.


      Get your preferred Email name!
Now you can @ymail.com and @rocketmail.com. 
http://mail.promotions.yahoo.com/newdomains/aa/
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"il-antlr-interest" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/il-antlr-interest?hl=en
-~----------~----~----~----~------~----~------~--~---

List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe: 
http://www.antlr.org/mailman/options/antlr-interest/your-email-address

Reply via email to