UNPKG

@thi.ng/parse

Version:

Purely functional parser combinators & AST generation for generic inputs

15 lines 432 B
import type { Parser, ScopeTransform } from "../api.js"; /** * Collects results of all direct children into an array, then discards * children. Also see {@link collect}. * * @param scope - */ export declare const xfCollect: ScopeTransform<any>; /** * Syntax sugar for `xform(parser, xfCollect)`. * * @param parser - */ export declare const collect: <T>(parser: Parser<T>) => Parser<T>; //# sourceMappingURL=collect.d.ts.map