UNPKG

@thi.ng/parse

Version:

Purely functional parser combinators & AST generation for generic inputs

20 lines 506 B
/** * HOF predicate for matching given single char literal. * * @param c - */ export declare const litP: <T>(c: T) => (x: T) => boolean; /** * Matches single char/value `c`. * * @param c - * @param id - */ export declare const lit: <T>(c: T, id?: string) => import("../api.js").LitParser<T>; /** * Discarded literal. Same as {@link lit}, but result will be discarded. * * @param c - */ export declare const litD: <T>(c: T) => import("../api.js").LitParser<T>; //# sourceMappingURL=lit.d.ts.map