[antlr-interest] Re: Help with Java grammar
Robin Debreuil
robin at debreuil.com
Mon Apr 12 14:26:59 PDT 2004
> So there's another easy fix e.g. limiting the charVocabulary of the lexer
> to:
>
> charVocabulary='\u0003'..'\u7FFF';
>
> And change SL_COMMENT to:
>
> SL_COMMENT
> : "//"
> (~('\n'|'\r'))* ('\n'|'\r'('\n')?)?
> {$setType(Token.SKIP); newline();}
> ;
I'm just fixing this now as well, and I was wondering if that isn't better
to be 0003-FFFE for the character set for unicode? Maybe there is something
in the way bit sets work, or something about unicode I don't understand
here, so I thought I'd ask...
Thanks, very useful post btw : ).
Robin
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