Hi,

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.



      New Email addresses available on Yahoo!
Get the Email name you've always wanted on the new @ymail and @rocketmail. 
Hurry before someone else does!
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