-
-
Notifications
You must be signed in to change notification settings - Fork 7
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
Add debug info/trace output #140
Labels
enhancement
New feature or request
Comments
Also I think that add
Then changed some function signatures to allow embed PeppaPEG on https://github.com/mingodad/squilu :
|
@mingodad Thanks for the proposed solution. I'll take a look. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When trying to create a grammar with PeppaPEG I was not getting the expected result and the error message didn't helped me at first then I decided to add a debug info/trace to help me see where the parser was at the time of the error, I saw the already reserved
P4_Source.verbose
flag after I added the trace code (see attaced diff, ignore the changes for the Lua grammar) and I'm leaving it here just in case it can be useful to others or even be included directly tho this project:dad.diff.zip
Partial output of
peppa parse -d -G json.peg -e entry data.json
:The text was updated successfully, but these errors were encountered: