@thi.ng/parse
Version:
Purely functional parser combinators & AST generation for generic inputs
6 lines • 378 B
TypeScript
import type { Fn, Predicate } from "@thi.ng/api";
import type { Parser } from "../api.js";
export declare const string: <T>(str: ArrayLike<T>, id?: string) => Parser<T>;
export declare const stringD: <T>(str: ArrayLike<T>) => Parser<T>;
export declare const stringOf: <T>(pred: Predicate<T>, id?: string, reduce?: Fn<T[], any>) => Parser<T>;
//# sourceMappingURL=string.d.ts.map