开发者

Scala parser combinator - almost there!

After I solved the initial problem, I now believe I have parsed everything, and it now seems to be choking on the very end of the input:

Failure: [9.1] failure: string matching regex `\z' expected but `' found

^

Um, it i开发者_开发百科s finding no characters at the very end. Should I append my own "\z" EOF somehow?


You didn't really solve your original problem. See my answer, where I cover this problem. Basically, there's a \r\n at the end of the file -- which is taken to be a separator -- so it expects another repetition.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜