import { manyUntil } from "https://deno.land/x/pazza@v0.3.0/mod.ts";
Repeat the embedded parser until the "end" parser succeeded.
const result = manyUntil(digit(), alpha())("123abc");
result.input === "abc";
result.output; // ==> ["1", "2", "3"]
import { manyUntil } from "https://deno.land/x/pazza@v0.3.0/mod.ts";
Repeat the embedded parser until the "end" parser succeeded.
const result = manyUntil(digit(), alpha())("123abc");
result.input === "abc";
result.output; // ==> ["1", "2", "3"]