Function between

  • Takes three parsers, open, close, and parser. between matches something that matches parser, surrounded by open and close. It returns the result of parser. If any of the parsers fail, between fails.

    Type Parameters

    • O
    • C
    • P

    Parameters

    • open: Parser<O>

      parser for the opening delimiter

    • close: Parser<C>

      parser for the closing delimiter

    • parser: Parser<P>

      parser for the content

    Returns Parser<P>

    a parser that returns the result of parser.

Generated using TypeDoc