bracketed

fun <A : Any> bracketed(parser: Parser<Char, A>): (ParserInput<Char>) -> ParserOutput<A>

A parser that parses an expression enclosed in brackets.

Return

A parser that parses the expression inside brackets.

Parameters

parser

The parser for the expression inside the brackets.