djspiewak/gll-combinators — Issue #6: Odd Left-Recursive Prefix Repetitions Result in Stream()
Author: djspiewak
Created: 2012-01-10 04:47:51+00:00
State: open

The following test case fails against the current HEAD:

```scala
"successfully process a peculiar prefix sequence" in {
lazy val expr: Parser[Any] = (
prefix ~ expr
| num
| expr ~ "+" ~ expr
)

lazy val prefix: Parser[Any] = (
prefix ~ "::" ~ expr
| expr ~ "::" ~ expr
)

lazy val num = "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "0"

expr("+2") must not(beEmpty)
}
```

As indicated, the result is `Stream()`. Needless to say, this is *never* a valid result.