yoctoparsec
yoctoparsec copied to clipboard
Example of `eof` parser
Is there an example of how you would indicate end of stream as a parser such as Parsec's eof
?
@sordina http://sordina.github.io/blog/2021/01/03/1609638326-advent19b.html
@limitedeternity 🤣 That looks familiar!
That's for other people, who'd stumble across this issue in the future, so that they wouldn't have to google how others use yoctoparsec to figure out how to indicate EOF. And I linked you because you could've provided an explaination of what exactly you did there to achieve the desired behavior, added some examples to the repository or, at the very least, just closed the issue.
Thanks @limitedeternity good idea.