parjs
Version:
A parser-combinator library for JavaScript.
13 lines (12 loc) • 454 B
TypeScript
/**
* @module parjs/combinators
*/
/** */
import { ParjsCombinator, ParjsProjection } from "../parjser";
import { ImplicitParjser } from "../scalar-converter";
/**
* Applies the source parser, and then applies a selector on the source parser's
* result and user state to choose or create the parser to apply next.
* @param selector
*/
export declare function thenPick<A, B>(selector: ParjsProjection<A, ImplicitParjser<B>>): ParjsCombinator<A, B>;