import { between } from "https://deno.land/x/pazza@v0.3.0/mod.ts";
Execute the embedded parser with a specified prefix and suffix.
If the prefix parser or suffix parser fails, the whole parser will fail.
const parser = between(char("["), char("]"), digit());
parser("[5]").output === "5";
parser("(5]").ok === false;
parser("[a]").ok === false;
parser("[5)").ok === false;