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

Use wasm-{bindgen,pack} to make a steppable "debugger" for a generated parser. #80

Open
eddyb opened this issue Apr 3, 2019 · 0 comments

Comments

@eddyb
Copy link
Member

eddyb commented Apr 3, 2019

I imagine we could very easily support both single-stepping (as a GLL parser already kind of works like that) and "breakpoints" (by stopping when parsing reaches a certain, or when one of the named rules is entered).

Ideally, we could even allow inputting a grammar, but while we can run the code generator, the resulting Rust needs a Rust compiler, so we would instead need to have an interpreter.

We'd need some sort of HTML+JS dynamic graph viewer (for visualizing SPPF/GSS), but I believe D3, at least, has something like this.

Bonus for integrating this into a VS Code extension for testing grammars.

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

1 participant