import { optional } from "https://deno.land/x/pazza@v0.3.0/mod.ts";
Execute the embedded parser.
If it succeeds, return its value.
If it fails, return null
with a successful result.
const result = optional(digit())("a");
result.ok === true;
result.output === null;