Skip to main content
Module

x/pazza/mod.ts>many1

Parser combinators library designed for Deno, but also works on browsers and Node.js.
Go to Latest
function many1
import { many1 } from "https://deno.land/x/pazza@v0.3.0/mod.ts";

Repeat them embedded parser at least once.

many1(alpha())("").ok === false;
many1(alpha())("a").output; // ==> ["a"]
many1(alpha())("a1").output; // ==> ["a"]
many1(alpha())("a1").input === "1";

Type Parameters

T
E
I extends Input
CtxIn
CtxOut

Parameters

parser: IParser<T, E, I, CtxIn, CtxOut>

embedded parser