Closed dcsobral closed 7 years ago
The following grammar:
lazy val grammar: Parser[String] = Literal("a") | (grammar ~ Literal("a") ^^ { case (_, x ~ y) => x + y })
will fail with:
Left(List(UnboundedRecursion(Union(parseback.Parser$Union$$Lambda$20/922872566@86be70a,parseback.Parser$Union$$Lambda$21/1651855867@480bdb19))))
when supplied an input that does not start with an "a".
The following grammar:
will fail with:
when supplied an input that does not start with an "a".