h0tk3y / better-parse

A nice parser combinator library for Kotlin
Apache License 2.0
412 stars 42 forks source link

[Feature] Bind Combinator #5

Open Shamrock-Frost opened 6 years ago

Shamrock-Frost commented 6 years ago

Is there a reason there's no BindCombinator? I tried to add one but Parser.remainder is internal. Also, is there a reason Parser.remainder is internal? I'd prefer the ability to add combinators

Shamrock-Frost commented 6 years ago

Related: Is there a reason there's no bind for ParseResult?

h0tk3y commented 6 years ago

By the way, 0.3.2 makes Parsed<T>.remainder public. I'll take a look at the idea of bind combinator some time soon.

Shamrock-Frost commented 6 years ago

Thanks, I had been using reflection to access remainder