[antlr-interest] error message internationalization

Terence Parr parrt at cs.usfca.edu
Sun Nov 21 10:18:36 PST 2004



On Nov 20, 2004, at 11:22 PM, John D. Mitchell wrote:

>
>>>>>> "Terence" == Terence Parr <parrt at cs.usfca.edu> writes:
> [...]
>
>> It even pays attention to file encoding to make message files work for
>> non-8 bit message files.
>
> Care to translate that into english?  :-)

Meanie ;)  Sure.  What I mean is that StringTemplate 2.1 is/will be 
sensitive to the local file.encoding so that if you live in China, you 
are not limited to 8-bit ascii files for templates.  ANTLR 3 has to 
allow error message files containing 16-bit unicode so file encodings 
are important.  Fortunately, ST just makes this work :)

>> ErrorManager.error(ErrorManager.CANNOT_CLOSE_FILE, fileName, ioe);
>
> And the ErrorManager than e.g., throws a Runtime exception so that the
> controlling program can e.g., continue or choke & die as it pleases,
> right?

I think the code currently throws an exception or not depending on the 
situation (in the calling code); usually i try to keep going.

Ter
--
CS Professor & Grad Director, University of San Francisco
Creator, ANTLR Parser Generator, http://www.antlr.org
Cofounder, http://www.jguru.com
Cofounder, http://www.knowspam.net enjoy email again!





 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/antlr-interest/

<*> To unsubscribe from this group, send an email to:
    antlr-interest-unsubscribe at yahoogroups.com

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





More information about the antlr-interest mailing list