[antlr-interest] Architectural Suggestion: Pluggable Error Reporting

David Holroyd dave at badgers-in-foil.co.uk
Wed Apr 25 12:27:40 PDT 2007


On Wed, Apr 25, 2007 at 02:30:46PM -0400, Marc-Andr? Laverdi?re wrote:
> Maybe the error reporting logic could be delegated to an overridable 
> BaseErrorDisplayer class. The BaseRecognizer would have a set/get pair 
> to deal with it. It would not have much performance overhead and would 
> give us some customization for people like me who would like to report 
> directly to a GUI.

+1

Though I'd go for ErrorDisplayer interface, and maybe an
ErrorDisplayer.DEFAULT instance that sends to stderr, as currently.


ta,
dave

-- 
http://david.holroyd.me.uk/


More information about the antlr-interest mailing list