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

generated SyntaxError class is missing format() method #67

Closed
pcardune opened this issue Aug 31, 2021 · 1 comment
Closed

generated SyntaxError class is missing format() method #67

pcardune opened this issue Aug 31, 2021 · 1 comment

Comments

@pcardune
Copy link
Contributor

The current version of peggy will generate a SyntaxError class that has a format() method for displaying a more informative error message. This is described in the documentation here, and implemented in the peggy source here: lib/compiler/passes/generate-js.js

It would be great to have this feature built into ts-pegjs as well! Should I try submitting a pull request for this?

@pjmolina
Copy link
Contributor

Please, do it! Really appreciated.

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

No branches or pull requests

2 participants