Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiply error detection in one compilation pass #243

Closed
wants to merge 5 commits into from

Conversation

Mingun
Copy link
Contributor

@Mingun Mingun commented Mar 23, 2014

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.

… of 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.
Now errors collected by the compilation stage (check, transform, generate etc.)
Also incorporate pegjs#208.
|GrammarError| captures stack in v8.
@dmajda
Copy link
Contributor

dmajda commented Apr 27, 2014

Sorry, I won't look into this now. The error reporting API is stable until 1.0.0. I certainly want to look into adding warning support etc., but later.

@dmajda dmajda closed this Apr 27, 2014
@Mingun Mingun mentioned this pull request Mar 7, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants