Query on UTF-32 encodings for letters

Tom Tromey tromey@redhat.com
Sat Jan 15 12:26:00 GMT 2005


>>>>> "Robert" == Robert Dewar <dewar@adacore.com> writes:

Robert> Looks to me like I have to spin my own here :-(

For gcj we have a perl script (gcc/java/gen-table.pl) that reads the
unicode database and writes out C code that is used by the lexer.  We
did it by hand because we wanted to ensure that our use matched what
is in the current java spec.  I don't know what Ada needs, but this
approach has worked well for us.  We use something similar for libgcj;
it is more complicated, though, since the library needs more
information than the compiler.

Tom



More information about the Gcc mailing list