import type { Token } from '../Lexer' ; import type { Parser , ParserOutput } from './ParserInterface' ; export function lazy < TKind , TResult > ( thunk ) { return { parse ( token ) { return thunk ( ) . parse ( token ) ; } } ; }