[antlr-interest] Re: Parse quotes with negation?

derek_kusiak derek_kusiak at yahoo.com
Sat Dec 4 20:33:05 PST 2004



--- "John B. Brodie" <jbb at a...> wrote:
> 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...

Yes, it helps: I did not have charVocabulary set at all.  I'm
sure that's a classic newbie mistake.  I suppose that's why I
was having errors with exactly those characters NOT already
mentioned in my grammar.

Many thanks, John.





 
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