Package [root]
Types
Link copied to clipboard
A parser returns the remaining unparsed input and the typed result of parsing the input
Link copied to clipboard
Wraps a string with a pointer to the head of the remaining unparsed input to prevent repeatedly creating substrings
Functions
Link copied to clipboard
Returns a parser that consumes 1 or more
Link copied to clipboard
fun <T, S> Parser<T>.between(p: Parser<S>): (Parseable) -> ParserOutput<T>?
Content copied to clipboard
Returns a parser for input surrounded the same parser to the left and to the right
fun <T, S, U> Parser<T>.between(p: Pair<Parser<S>, Parser<U>>): (Parseable) -> ParserOutput<T>?
Content copied to clipboard
fun <T, S, U> Parser<T>.between(left: Parser<S>, right: Parser<U>): (Parseable) -> ParserOutput<T>?
Content copied to clipboard
Returns a parser for input surrounded by a pair of parsers
Link copied to clipboard
Link copied to clipboard
Helper function to wrap a string for input to a parser