[antlr-interest] case sensitivity for ANTLR v3 lexers
Terence Parr
parrt at cs.usfca.edu
Tue May 16 16:28:38 PDT 2006
On May 16, 2006, at 4:09 PM, Don Caton wrote:
> Ter:
>
>> All error strings are in a template group now :) People will
>> be able to send in their language.stg files and errors will
>> come out in the locale's strings. :) All ST stuff allows
>> char encoding ...
>
> Not sure what that means. I looked at ST a few times but I never
> really
> grokked it. Your "about" article talks mostly about web page
> generation,
> and there's no C++ version to play with, so I really had no reason
> to look
> at it any further.
Well, it kinda needs reflection...C++ would make this challenging.
See my latest language oriented article? See st.org
> I understand that you're using ST to generate code in 3.0, but how
> is that
> relevant at runtime? Will ST be required at runtime as well?
Oh, sorry...i meant ANTLR v3 errors not parse errors. Just override
reportError(Exception e) and you're groovy!
> All I'm really looking for is an overridable "getErrorString()"
> method, or
> something like that, so I can supply an appropriate error message
> depending
> on the end user's locale. The default implementation could use the
> English
> messages, please just allow some clean way of overriding them at
> runtime.
You have, sir! See the runtime stuff...doesn't use ST at all.
Ter
More information about the antlr-interest
mailing list