[antlr-interest] Acentuation in grammar

Luciana Nunes Leal lucianaleal2002 at yahoo.com.br
Thu Sep 29 07:26:51 PDT 2005


Hi,
 
My grammar can contain characters like á, é, í, ó, ú. 
 

When my grammar is like below and I run antlr.Tool, I see the error below.

 

grammar:

CHARACTER : ('a'..'z'| OxE1 | OxE9 | OxED | OxF3 | OxFA )+ ;

 
error:
ANTLR Parser Generator   Version 2.7.5 (20050128)   1989-2005 jGuru.com
error: Lexer rule OxE1 is not defined
error: Lexer rule OxE9 is not defined
error: Lexer rule OxED is not defined
error: Lexer rule OxF3 is not defined
error: Lexer rule OxFA is not defined
..\src\lnc.g:99:36: no definition of rule mOxE1
..\src\lnc.g:99:43: no definition of rule mOxE9
..\src\lnc.g:99:50: no definition of rule mOxED
..\src\lnc.g:99:57: no definition of rule mOxF3
..\src\lnc.g:99:64: no definition of rule mOxFA
..\src\lnc.g:99:36: no definition of rule mOxE1
..\src\lnc.g:99:43: no definition of rule mOxE9
..\src\lnc.g:99:50: no definition of rule mOxED
..\src\lnc.g:99:57: no definition of rule mOxF3
..\src\lnc.g:99:64: no definition of rule mOxFA
..\src\lnc.g:99:36: warning:Alternate omitted due to empty prediction set
..\src\lnc.g:99:43: warning:Alternate omitted due to empty prediction set
..\src\lnc.g:99:50: warning:Alternate omitted due to empty prediction set
..\src\lnc.g:99:57: warning:Alternate omitted due to empty prediction set
..\src\lnc.g:99:64: warning:Alternate omitted due to empty prediction set
Exiting due to errors.
 
Is there another way that I can permit acentuation?
 
Thanks, Luciana.

		
---------------------------------
 Novo Yahoo! Messenger com voz: ligações, Yahoo! Avatars, novos emoticons e muito mais. Instale agora!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20050929/080a0c61/attachment.html


More information about the antlr-interest mailing list