We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
(Reported by Nicholas Weston.)
The parser p defined as follows doesn’t successfully parse ab.
lazy val p: PackratParser[Any] = q | "a" lazy val q: PackratParser[Any] = p ~ "b"
The parse result is
Failure(end of input expected,Input(StringSource(ab,),1))
It works if q is a regular Parser. It also works if p is directly recursive as follows.
lazy val p: PackratParser[Any] = p ~ "b" | "a"
It also happens in 2.3.0-SNAPSHOT but not when using the standard Scala parser combinator library.
See attached project.
The text was updated successfully, but these errors were encountered:
parsing-bug.zip
Sorry, something went wrong.
inkytonik
No branches or pull requests
(Reported by Nicholas Weston.)
The parser p defined as follows doesn’t successfully parse ab.
The parse result is
It works if q is a regular Parser. It also works if p is directly recursive as follows.
It also happens in 2.3.0-SNAPSHOT but not when using the standard Scala parser combinator library.
See attached project.
The text was updated successfully, but these errors were encountered: