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 fails for input x.x$, telling me that it expects a $ instead of the ..
For me, this seems to be a problem with how indirect left-recursion is handled. I'm not sure if the original algorithm is incapable of handling this pattern, or this is an implementation bug.
Edit:
I've accidentally used | (first matching alt.) instead of ||| (longest matching alt.), I've fixed that in the code, but doesn't change the outcome.
The text was updated successfully, but these errors were encountered:
That talks about an interaction with left- and right-hand recursion and identifies a problem with the Warth et al algorithm used in the PackratParsers.
I've isolated a 3-rule pattern, where I'd expect the parser to succeed for a given input, but it fails instead. The sample grammar:
The implementation:
It fails for input
x.x$
, telling me that it expects a$
instead of the.
.For me, this seems to be a problem with how indirect left-recursion is handled. I'm not sure if the original algorithm is incapable of handling this pattern, or this is an implementation bug.
Edit:
I've accidentally used
|
(first matching alt.) instead of|||
(longest matching alt.), I've fixed that in the code, but doesn't change the outcome.The text was updated successfully, but these errors were encountered: