[antlr-interest] extended ascii chars

Terence Parr parrt at cs.usfca.edu
Mon Oct 25 11:56:36 PDT 2004


Hi, somebody recently asked this I think.  antlr.g itself only accepts 
latin char until you alter antlr.g to say 0..255 instead of 0..127; 
then rebuild.

Sorry about that...

Ter

On Oct 25, 2004, at 5:20 AM, jcdur wrote:
> Can somebody explain me why I got an error because of the 'à' in
> the comment when running "java antlr.Tool" on the following file:
>
> options
> {
> 	language = "Cpp";	
> }
> /* Eléments lexicaux: */
> class Lex extends Lexer;
> options
> {
> 	charVocabulary = '\3'..'\377';
> }
> // Noeuds ne correspondant pas à des terminaux:
> tokens
> {
> 	// utilisés dans l'AST d'un ao:
> 	Foret;
> 	Arbre;
> }
>
> ENTIER: ('0'..'9')+;
>
> ...
>
> I have the same pb when this character or 'ù' appears in rules.
> Thanks,
> Jean_Claude.
>
>
>
>
>
>
> Yahoo! Groups Links
>
>
>
>
>
>
>
>
--
CS Professor & Grad Director, University of San Francisco
Creator, ANTLR Parser Generator, http://www.antlr.org
Cofounder, http://www.jguru.com
Cofounder, http://www.knowspam.net enjoy email again!





 
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