[antlr-interest] Re: Problems with Unicode support in ANTLR

Matthew Ford Matthew.Ford at forward.com.au
Thu May 16 15:10:56 PDT 2002


I have a Unicode example I did in Antlr (Java output) some time ago.  I
thought Unicode was fixed.
I include the code here (it also covers adding fonts to Java).
matthew
----- Original Message -----
From: "micheal_jor" <open.zone at virgin.net>
To: <antlr-interest at yahoogroups.com>
Sent: Friday, May 17, 2002 7:04 AM
Subject: [antlr-interest] Re: Problems with Unicode support in ANTLR


> --- In antlr-interest at y..., Brian Smith <brian-l-smith at u...> wrote:
> > Are the predefined Unicode blocks that are handled by
> > java.lang.Character.UnicodeBlock sufficient for what you need? Or,
> do
> > you need a different classification?
>
> No Unicode blocks are a different concept from Unicode General
> Categories. I don't think Java's standard libraries support Unicode
> categories.
>
> The open source ICU4J from IBM supports Unicode much better and the
> has UCharacter and UCharacterCategory classes that do the job for me.
>
> http://oss.software.ibm.com/icu4j/
>
> > I was thinking of patching ANTLR's Java generator to be able to use
> > named unicode character catagories as "pre-defined" "protected"
> lexer
> > rules, but supporting anything more than the Character class
> handles is
> > over my head.
>
> Thet would a useful addition - I mean the ability to define
> such "preset" rules in ANTLR. I can do the work for Unicode
> categories once the basic framework is in place.
>
> ter, is it OK to have ANTLR rely on additional libraries or would I
> have to somehow port the Unicode required functionality into ANTLR
> directly.
>
> Micheal
>
>
>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>

 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: Unicode.zip
Type: application/x-zip-compressed
Size: 11625 bytes
Desc: not available
Url : http://www.antlr.org/pipermail/antlr-interest/attachments/20020517/b59c51cc/Unicode.bin


More information about the antlr-interest mailing list