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

Ian Moor iwm at doc.ic.ac.uk
Wed Jul 2 02:53:58 PDT 2008


>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