-
-
Notifications
You must be signed in to change notification settings - Fork 45
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
Parser debugger #173
Comments
I played with We still may need to add logging (with |
Playwight has the concept of traces, which write out the steps that are taken in a way that can be played back in their webapp It's surprisingly useful, and I could imagine a similar concept |
That's a good idea, instead of focusing on how to render the output, find a well defined format that can be used in proven visualizers. Even tools doing performance analysis have flame graphs that could he used (would show the nested/stacked logic at least). |
yes, you'd need to allow for custom (user built) parsers of course, but as long as you could keep track of the cursor, and entry / exit points you should be able to visualize (unecesary) loops, and where it's getting stuck (i.e. not finding a requested parse). My experience with using Parlot, has tended to be, unit test everything, because so often you get stuck on why didn't it find this char |
I am looking for ideas on how we could provide some debug functionality on parsers. I believe that it would help the design experience to have some kind of interactive visualization of an input and output. There are many ways this could look like:
EnterParser
event. Ideally using logging such that this could be added to any existing application/parser.Diagnostics could also be used to output a custom set of events that happen and could then be read with a custom app to go back and forth the parsing.
The text was updated successfully, but these errors were encountered: