parsers icon indicating copy to clipboard operation
parsers copied to clipboard

Expand docs on Parser

Open skybrian opened this issue 11 years ago • 3 comments
trafficstars

Most of the operators and methods on Parser have cryptic comments. For example:

/// Applicative <*> Parser operator *(Parser p) => this >> (f) => p >> (x) { Function ff = f; return success(ff(x)); };

I think most Dart developers will be entirely mystified by this comment. It would be more user-friendly explain what this operator does without assuming you know Haskell or have read the research papers.

skybrian avatar Oct 05 '14 01:10 skybrian

Sure, this comment was mainly here for myself, It's almost a private method. I know the doc sucks currently, it's my plan to do something about it someday :)

polux avatar Oct 06 '14 07:10 polux

The guide you have here is a great start http://polux.github.io/parsers/. Would you completing the section on recursion when you get a chance? :)

atebitftw avatar Oct 22 '14 14:10 atebitftw

@prujohn see issue #13 .

polux avatar Oct 23 '14 14:10 polux