Rép : [antlr-interest] extended ascii chars
jcdur
Jean-Claude.Durand at imag.fr
Tue Oct 26 14:23:26 PDT 2004
Thanks a lot , but I don't think it is simply a matter of pure ascii
(7bit character) or extended ascii (8bit character)
since:
- e grave (dec 232) and e acute (dec 233) for instance, are accepted,
and a grave (dec 224) and u grave (dec 249) not !
- and all the source files of ANTLR I saw have the option
"charVocabulary = '\3'..'\377';"
Jean-Claude.
Le 25 oct. 04, à 20:56, Terence Parr a écrit :
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
Jean-Claude Durand
GETA, CLIPS, IMAG-Campus, BP 53
385, rue de la Bibliothèque
38041 Grenoble Cedex 9
France
33 (0)4 76 51 43 81
jean-claude.durand at imag.fr
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