dmajda/pegjs — pull request #243 by Mingun (2014-03-23 10:44:11+00:00)
Title: Multiply error detection in one compilation pass

... compilation.

Add to |options| new parameter: |collector|, that is object with following functions:
- emitFatalError(...)
- emitError(...)
- emitWarning(...)
- emitInfo(...)

By default, |emitFatalError| and |emitError| throws |GrammarError| with all arguments, passed to them; |emitWarning| and |emitInfo| do nothing.