action ( parser quot -- parser )


Vocabulary
peg

Inputs
parsera parser
quota quotation with stack effect ( ast -- ast )


Outputs
parsera parser


Word description
Returns a parser that calls the parser and applies the quotation to the AST resulting from that parse. The result of the quotation is then used as the final AST. This can be used for manipulating the parse tree to produce a AST better suited for the task at hand rather than the default AST. If the quotation returns fail then the parser fails.
CHAR: 0 CHAR: 9 range [ to-digit ] action


Definition