Utility function that provides a bit cleaner interface for running a parser.
This one throws an error in case parser didn't match OR the match is incomplete (some part of input string left unparsed).
Input string is broken down to characters as [...str] unless you provide a pre-split array.
[...str]
A matched value.
A parser to run.
Input string or an array of graphemes.
Parser options.
Generated using TypeDoc
Utility function that provides a bit cleaner interface for running a parser.
This one throws an error in case parser didn't match OR the match is incomplete (some part of input string left unparsed).
Input string is broken down to characters as
[...str]
unless you provide a pre-split array.Returns
A matched value.