I am trying to write a bytestring parser with Attoparsec and I've been running into some puzzling behavior with the atEnd
function. Just playing around, I tried to parse the empty bytestring with atEnd
to see if it would return True
, but instead it returns a partial parse. Is this expected? Can someone quickly explain the behavior of the atEnd
function?
问问题
101 次