yoctoparsec icon indicating copy to clipboard operation
yoctoparsec copied to clipboard

Example of `eof` parser

Open sordina opened this issue 4 years ago • 4 comments

Is there an example of how you would indicate end of stream as a parser such as Parsec's eof?

sordina avatar Dec 28 '20 23:12 sordina

@sordina http://sordina.github.io/blog/2021/01/03/1609638326-advent19b.html

limitedeternity avatar Apr 13 '22 09:04 limitedeternity

@limitedeternity 🤣 That looks familiar!

sordina avatar Apr 13 '22 10:04 sordina

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.

limitedeternity avatar Apr 13 '22 10:04 limitedeternity

Thanks @limitedeternity good idea.

sordina avatar Apr 13 '22 22:04 sordina