UNPKG

parjs

Version:

Library for building parsers using combinators.

11 lines 477 B
import type { Parjser } from "../parjser"; /** A parser with logic to be determined later. Useful for defining some kinds of recursive parsers. */ export interface DelayedParjser<T> extends Parjser<T> { init(resolved: Parjser<T>): void; } /** * Returns a parser that has no logic by itself and must be initialized with another parser by * calling the parser's `init` function. */ export declare function later<T>(): DelayedParjser<T>; //# sourceMappingURL=later.d.ts.map