[antlr-interest] Using JFlex with Antlr

Andreas Ravnestad andreas.ravnestad at gmail.com
Thu Oct 4 04:03:00 PDT 2007


On 10/4/07, Johannes Luber <jaluber at gmx.de> wrote:
> Andreas Ravnestad wrote:
> > Hi Johannes,
> >
> > I ran into problems with \u10000 and above. Perhaps this has been solved
> > now? I am sorry for my unfortunate phrasing, I rather meant that the
> > support is lacking, in some ways :)
> >
> > -Andreas
> >
>
> That's a problem with the unicode handling with Java itself primarily,
> and only secondly with ANTLR. Java uses internly UTF-16 and until 1.5 it
>  couldn't even use the extended character set. AFAIK, Java still hasn't
> an equivalent to the C# construct '\U00010000', so you have to create
> the surrogate pair presentation yourself (that is described in the FAQ
> on the Unicode webpage). I also regret that ANTLR doesn't let the users
> circumvent this step for now - would be really useful.
>
> Best regards,
> Johannes Luber
>


Hi again!

I'm glad that we have sorted this out then :)

Now, I am still interested in how to couple JFlex with ANTLR. Anyone
who can share information about this?

-Andreas


More information about the antlr-interest mailing list