[antlr-interest] How to use arabic letters in my tokens ?
Ahmed Hamouda
ahmedh at horizonssoftware.com
Wed Mar 26 12:25:45 PDT 2008
Hi all,
I want to define a tokens as all possible letters that user can use
These letters contain Arabic letters.
I tried to add them by hand as the following ‘ا’ | ‘ب’ | ‘ج’…. and so, on but I received an error in the generation
I also tried to use these alternatives
| '\u00c2' | '\u00c3' | '\u00c4' | '\u00c5' | '\u00c6' | '\u00c7' | '\u00c8' | '\u00c9'
| '\u00c0' | '\u00ca' | '\u00cb' | '\u00cc' | '\u00cd' | '\u00ce' | '\u00cf'
| '\u00d0' | '\u00d1' | '\u00d2' | '\u00d3' | '\u00d4' | '\u00d5' | '\u00d6' | '\u00d7'
| '\u00d8' | '\u00d9' | '\u00da' | '\u00db' | '\u00dc' | '\u00dd' | '\u00de' | '\u00df'
| '\u0080' | '\u0081' | '\u0082' | '\u0083' | '\u0084' | '\u0085' | '\u0086' | '\u0087'
| '\u0088' | '\u0089' | '\u008a' | '\u008b' | '\u008c' | '\u008d' | '\u008e' | '\u008f'
| '\u0090' | '\u0091' | '\u0092' | '\u0093' | '\u0094' | '\u0095' | '\u0096' | '\u0097'
| '\u0098' | '\u0099' | '\u009a' | '\u009b' | '\u009c' | '\u009d' | '\u009e' | '\u009f'
| '\u00a0' | '\u00a1' | '\u00a2' | '\u00a3' | '\u00a4' | '\u00a5' | '\u00a6' | '\u00a7'
| '\u00a8' | '\u00a9' | '\u00aa' | '\u00ab' | '\u00ac' | '\u00ad' | '\u00ae' | '\u00af'
| '\u00b0' | '\u00b1' | '\u00b2' | '\u00b3' | '\u00b4' | '\u00b5' | '\u00b6' | '\u00b7'
| '\u00b8' | '\u00b9' | '\u00ba' | '\u00bb' | '\u00bc' | '\u00bd' | '\u00be' | '\u00bf'
But still not accept Arabic characters
If any1 has an idea, he will appreciated
Thank you
Best Regards
Ahmed Hamouda (MCTS)
Software Engineer
Horizons Software
Address: 93 Haroun Al Rasheed Street, Heliopolis, Cairo, Egypt. 11351.
Tel: +202-2644-3709
Mobile: +2010-33-55-879
Fax: +202-2632-0661
Website: www.horizonssoftware.com <http://www.horizonssoftware.com/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20080326/b471e81e/attachment.html
More information about the antlr-interest
mailing list