[antlr-interest] Parse quotes with negation?

John B. Brodie jbb at acm.org
Sat Dec 4 19:27:35 PST 2004


Derek :- 

>I'm parsing a file format that contains quote-delimited string
>literals.  In my lexer I deal with them like this:
>
>  STRING_LITERAL : '"' (~'"')* '"' ;
>
>...deleted...

Have you defined your charVocabulary lexer option correctly?

Hope this helps...


 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/antlr-interest/

<*> To unsubscribe from this group, send an email to:
    antlr-interest-unsubscribe at yahoogroups.com

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





More information about the antlr-interest mailing list