Open MikaelMayer opened 1 year ago
Note of usability:
Token?(s: String)
whose definition is WS().e_I(S(t)).??()
WS()
and ??()
doSome further minor notes:
StringParsersBuilders
should be StringParserBuilders
, similarly for ParsersBuilders
.alphanum
would be handy, and Space
may want to exclude newlines (not sure). Also an EnclosedBy<T>(left: string, p: B<T>, right: string)
or something.ParsePair
, ParseTriple
, ParseQuadruple
would be nice. A little tedious to write, sadly.Token("foo", value)
implementation which simply does S("foo").M( _ => value)
seems convenient.Digit
can be CharTest(c => '0' <= c <= '9')
for efficiency, I think, unless there's some implementation specific reason which would make this incorrect. Or maybe one cannot prove anything about this definition.None of these are "must haves" though.
Missing
By submitting this pull request, I confirm that my contribution is made under the terms of the MIT license.