You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's been a while since I've last used peglib! The error reporting is amazing!
I want to write a program that parses python and I think I have encountered a bug when using packrat parsing.
Without packrat parsing everything works fine. With packrat parsing, after the code is parsed and LineBreak? CodeSegment from the first rule are matched, it tries to match another CodeSegment but for some reason from the middle of the input. My parser prints debug output to show this.
I am sorry I didn't reduce the grammar to narrow down the error but maybe you know what's going on right away and I can spare the effort.
It's been a while since I've last used peglib! The error reporting is amazing!
I want to write a program that parses python and I think I have encountered a bug when using packrat parsing.
Without packrat parsing everything works fine. With packrat parsing, after the code is parsed and
LineBreak? CodeSegment
from the first rule are matched, it tries to match another CodeSegment but for some reason from the middle of the input. My parser prints debug output to show this.I am sorry I didn't reduce the grammar to narrow down the error but maybe you know what's going on right away and I can spare the effort.
Here is my parser:
Here is my grammar python.peg:
here is my input test.py:
and here is the debug output:
The text was updated successfully, but these errors were encountered: