gallais / idris-tparsec

TParsec - Total Parser Combinators in Idris
https://gallais.github.io/idris-tparsec/
GNU General Public License v3.0
93 stars 10 forks source link

Add monadic and combinators #11

Closed gallais closed 6 years ago

gallais commented 6 years ago

I can't find good names for these in Idris: the m is already taken by the Maybe-tainted combinators.

clayrat commented 6 years ago

I was thinking to rename the existing ones to ..f for "failure", what do you think?

gallais commented 6 years ago

I think of it as saying that one parser is optional rather than failure. So maybe opt?

clayrat commented 6 years ago

Added in https://github.com/gallais/idris-tparsec/commit/1432b6243384c139f4d4be6601a64f081ac24b0d (renaming done in https://github.com/gallais/idris-tparsec/commit/dc306d6a8171ab94e3572d7014eab182afe4050f)

gallais commented 6 years ago

Perfect!