delay ( quot -- parser )


Vocabulary
peg

Inputs
quota quotation


Outputs
parsera parser


Word description
Delays the construction of a parser until it is actually required to parse. This allows for calling a parser that results in a recursive call to itself. The quotation should return the constructed parser and is called the first time the parser is run. The compiled result is memoized for future runs. See box for a word that calls the quotation at compile time.

Definition