[antlr-interest] Acentuation in grammar

Peggy Fieland madcapmaggie at yahoo.com
Fri Sep 30 11:50:20 PDT 2005


enter them as 
'\u0xe1' | '\u0xe9' ...



--- Luciana Nunes Leal <lucianaleal2002 at yahoo.com.br>
wrote:

> 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!



More information about the antlr-interest mailing list