between
fun <T, S, U> Parser<T>.between(p: Pair<Parser<S>, Parser<U>>): (Parseable) -> ParserOutput<T>?
Content copied to clipboard
Returns a parser for input surrounded by a pair of parsers
Parameters
p
The parser to the left, and the parser to the right
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
Parameters
p
The parser to the left, and the parser to the right
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
Parameters
left
The parser to the left of the input
right
The parser to the right of the input