UNPKG

@thi.ng/parse

Version:

Purely functional parser combinators & AST generation for generic inputs

5 lines 282 B
import type { Predicate } from "@thi.ng/api"; import type { Parser } from "../api.js"; import type { ParseScope } from "../context.js"; export declare const check: <T>(parser: Parser<T>, pred: Predicate<ParseScope<T>>, msg?: string) => Parser<T>; //# sourceMappingURL=check.d.ts.map