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
The rep parser combinator makes the commit parser combinator ineffective, for example this should not parse but does:
import scala.util.parsing.combinator._
object Test extends RegexParsers {
def test = parseAll(rep(commit("a")) ~ "b", "aaab")
}
I believe the problem is Parsers.scala 649-652
@tailrec def applyp(in0: Input): ParseResult[List[T]] = p0(in0) match {
case Success(x, rest) => elems += x ; applyp(rest)
case _ => Success(elems.toList, in0)
}
should be:
@tailrec def applyp(in0: Input): ParseResult[List[T]] = p0(in0) match {
case Success(x, rest) => elems += x ; applyp(rest)
case e @ Error(_, _) => e
case _ => Success(elems.toList, in0)
}
The text was updated successfully, but these errors were encountered:
@SethTisue said:
The parser combinators library is now community-maintained. Issues with it are now tracked at scala/scala-parser-combinators#61 instead of here in the Scala JIRA.
Interested community members: if you consider this issue significant, feel free to open a new issue for it on GitHub, with links in both directions.
The rep parser combinator makes the commit parser combinator ineffective, for example this should not parse but does:
import scala.util.parsing.combinator._
object Test extends RegexParsers {
def test = parseAll(rep(commit("a")) ~ "b", "aaab")
}
I believe the problem is Parsers.scala 649-652
should be:
The text was updated successfully, but these errors were encountered: