Package cc. ekblad. konbini
Types
The result of parsing a string.
Represents an ongoing parsing computation.
Functions
Creates an atomically parser.
Executes the given parser atomically. The parser either succeeds, or the entire parser fails.
Creates a ParserState.bracket parser.
Creates a ParserState.chain parser.
Creates a ParserState.chain1 parser.
Creates a ParserState.chainl parser.
Creates a ParserState.chainr parser.
Creates a ParserState.char parser.
Consumes the next character and fails if it is not in the given list of expected characters. If the list of expected characters is empty, the parser will match any character.
Creates a ParserState.fail parser.
Creates a ParserState.many parser.
Parses zero or more instances of p. As this parser potentially matches zero elements, it will never fail.
Creates a ParserState.oneOf parser.
Tries the given parsers in order, returning the result of the first one to succeed. Fails with the error message of the last parser, if none of the given parsers succeed.
Tries the given parsers in order, returning the result of the first one to succeed. Fails if none of the given parsers succeed.
Applies the receiver parser to the given input. If skipWhitespace is true, any whitespace at the beginning of the input is skipped.
Like parse, but with a custom parser state.
Applies the receiver parser to the given input. If ignoreWhitespace is true, any whitespace at the beginning or end of the input is ignored.
Like parseToEnd, but with a custom parser state.
Creates ParserState.regex parser.
Creates a ParserState.string parser.