bracket
inline fun <B, T> ParserState.bracket( crossinline before: Parser<B>, crossinline after: Parser<B>, crossinline p: Parser<T>): T
Content copied to clipboard
Parses p, requiring it to be preceded and followed by the before and after chars respectively. If any part of the parser fails, the entire parser fails. Returns the result of p.
inline fun <B, T> bracket( crossinline before: Parser<B>, crossinline after: Parser<B>, crossinline p: Parser<T>): ParserState.() -> T
Content copied to clipboard
Creates a ParserState.bracket parser.