[antlr-interest] Do you know how to work it out?
Loring Craymer
lgcraymer at yahoo.com
Wed Apr 18 12:55:40 PDT 2007
Ah--I stand corrected. I hadn't checked the ST lexer
source.
--Loring
--- Terence Parr <parrt at cs.usfca.edu> wrote:
>
> On Apr 18, 2007, at 10:34 AM, Loring Craymer wrote:
>
> > You can ignore the error message; ANTLR error
> messages
> > are configurable, but only English is supported at
> the
> > moment. Under org/antlr/tools/messages/languages
> you
> > will find en.stg. In theory, you could create a
> > zh.stg with Chinese error messages and put it in
> this
> > directory. In practice, that would not
> > work--StringTemplate would have to be modified to
> read
> > unicode input first.
>
> Really? Works no problem. Even have a unit test.
> You can even
> specify the encoding. :) The stuff outside of <...>
> and $...$
> expressions can be anything. I ignore it.
>
> Ter
>
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
More information about the antlr-interest
mailing list