primitives
anySingleBut
Match any character but the given one.
oneOf
Succeeds if the current character is in the supplied list of characters. Returns the parsed character.
oneOfS
A compact form of 'oneOf'. oneOfS("abc") == oneOf(['a', 'b', 'c'])
noneOf
The dual of 'oneOf'. Succeeds if the current character is not in the supplied list of characters. Returns the parsed character.
noneOfS
A compact form of 'noneOf'. noneOfS("abc") == noneOf(['a', 'b', 'c'])
takeRest
Consume the rest of the input and return it as a string. This parser never fails, but may return the empty string.
nothing
Parse nothing, but still succeed.
This serves as the zero parser in append()
operations.
everything
Parse everything; that is, consume the rest of the input until the end.
succeed
Always succeed, no matter what the input was.
fail
Always fail, no matter what the input was.
eof
Parse the end of the input