Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Compiler Tools Pccts > accentuated cha...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 1 Topic 90 of 134
Post > Topic >>

accentuated chars in lexer makes gcj failed

by "mathieu.clabaut" <mathieu.clabaut@[EMAIL PROTECTED] > Feb 7, 2005 at 07:17 AM

Hello,

the following Lexer grammar :
CHAR  : ('a'..'z'|'A'..'Z'|'_'| '-'
         | '=E9' | '=E8' | '=EA' | '=EB'
         | '=E1' | '=E0' | '=E2' | '=E4'
         | '=FA' | '=F9' | '=FB' | '=FC'          | '=EE' | '=EF'
         | '=F4' | '=F6' );

Get translated in the following pieces of code
               case '-':
               {
                        match('-');
                        break;
               }
               case '\u00e9':
               {
                        match('=E9');
                        break;
               }

 It works well when compiling in java bytecode (javac), But when using
gcj, gcj complains about the '=E9' accentuated char :
   GraphesLexer.java:671: erreur: unrecognized character in input
stream.

 If I replace '=E9' by '\u00e9', it works like a charm.
 Are their  any reason why '=E9' is used instead of 'u00e9' ?
 (It is perhaps a bug of gcj, but the difference between the case
parameter and the match() paramter looks strange to the newbie I am)...


 -mat
 




 1 Posts in Topic:
accentuated chars in lexer makes gcj failed
"mathieu.clabaut&quo  2005-02-07 07:17:14 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed Jul 23 23:33:25 CDT 2008.