[antlr-interest] Access to lexer warning/error messages after parsing

Ana Nelson nelson.ana at gmail.com
Wed Jul 2 03:18:09 PDT 2008


I think this topic calls for a Wiki page.

:-)

(No, sorry, I'm not volunteering, but I will add my workaround to it
if anyone's interested.)




2008/7/2 Ian Moor <iwm at doc.ic.ac.uk>:
>>My intention was that you override one method and do what you want.
>>Not sure what else anybody would want. Replace System.err in override
>>with errors.add(...) and you're done.  Not sure what the long
>>conversation is about.  Can't think of an easier way.
>>
>>Ter
>
> I would use the java logger, or if the compiler has to
> run on java 1.3 or  earlier log4j, rather than write my own code
>       Ian W Moor              Department of Computing,
> iwm at doc.ic.ac.uk           Imperial College.
>                                    180 Queensgate
>                                     London SW7 2AZ UK.
>
>
>


More information about the antlr-interest mailing list