import { isFunction } from "@thi.ng/checks/is-function" ; import type { Parser , PassValue } from "../api.js" ; param result param id export const pass = < R = any > ( result , id = "pass" ) : Parser < any > => ( ctx ) => ctx . addChild ( id , isFunction ( result ) ? result ( ) : result ) ; /**
 * Parser which consumes no input and always succeeds. No AST creation.
 */ export const passD = ( ) => true ;