[antlr-interest] Characters ISO-8859-1 in grammars UPDATED
Prados Valiente Enrique
Enrique.PradosValiente at reale.es
Fri Sep 3 02:55:20 PDT 2010
Sorry, add more information
Hi all,
Can I use characters like
http://www.parthia.com/fonts/crossfont_test_ISO-8859-1.htm
À Á Â Ã Ä Å Æ Ç È É Ê Ë Ì Í Î Ï Ð Ñ Ò Ó Ô Õ Ö × Ø Ù Ú Û Ü Ý Þ ß
In my gramar ¿?
Now, I have this:
fragment
AsciiStringRun :
// single-line literals only
( '\t' | ' ' .. '&' | '(' .. '~' )+
;
AsciiStringLiteral :
'\'' { $text = ""; }
( s = AsciiStringRun { $text = $s.text; } )? '\''
( '\'' {
$text = $text + "\'";
} ( s = AsciiStringRun { $text = $text + $s.text; } )? '\''
)*
;
fragment
UnicodeStringRun :
(~ '\'' )+
;
UnicodeStringLiteral :
'n' '\'' { $text = ""; }
( s = UnicodeStringRun { $text = $s.text; } )? '\''
( '\'' {
$text = $text + "\'";
} ( s = UnicodeStringRun { $text = $text + $s.text; } )? '\''
)*
;
But with this value
'RecepciónEnvío'
I get the error: NoViableAltException
Error: False
Linea: 21 Char: 85
UnexpectedType 49
Reale.Parsers.SqlOracle
[@293,795:810=''RecepciónEnvío'',<49>,21:85]
Se produjo una excepción de tipo 'Antlr.Runtime.NoViableAltException'.
en Reale.Parsers.SqlOracle.SQLOracleParser.constant() en e:\trabajo\sqlparser\antlr\pruebas\lexerexample\reale.parsers.sqloracle\simple\sqloracleparser.cs:línea 5061
If I use this value:
'RecepcionEnvio'
all is OK
Any samples, please ¿?
List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address
More information about the antlr-interest
mailing list