Problem with incomplete input when using Attoparsec

后端 未结 3 531
梦毁少年i
梦毁少年i 2021-01-12 16:16

I am converting some functioning Haskell code that uses Parsec to instead use Attoparsec in the hope of getting better performance. I have made the changes and everything c

3条回答
  •  暗喜
    暗喜 (楼主)
    2021-01-12 16:55

    If you write an attoparsec parser that consumes as much input as possible before failing, you must tell the partial result continuation when you've reached the end of your input.

提交回复
热议问题