UNPKG

@thi.ng/parse

Version:

Purely functional parser combinators & AST generation for generic inputs

11 lines 389 B
import type { Predicate } from "@thi.ng/api"; import type { LitParser } from "../api.js"; export declare const satisfy: <T>(pred: Predicate<T>, id?: string) => LitParser<T>; /** * Like {@link satisfy}, but avoids creating AST node and discards * result. * * @param pred - */ export declare const satisfyD: <T>(pred: Predicate<T>) => LitParser<T>; //# sourceMappingURL=satisfy.d.ts.map