UNPKG

@thi.ng/parse

Version:

Purely functional parser combinators & AST generation for generic inputs

10 lines 372 B
import type { ScopeTransform, Parser } from "../api.js"; /** * Assigns given `id` to AST node. E.g. used for re-labeling parser * results defined by {@link defGrammar}. * * @param id - */ export declare const xfID: (id: string) => ScopeTransform<any>; export declare const withID: <T>(id: string, parser: Parser<T>) => Parser<T>; //# sourceMappingURL=with-id.d.ts.map