semantic ( parser quot -- parser )


Vocabulary
peg

Inputs
parsera parser
quota quotation with stack effect ( object -- ? )


Outputs
parsera parser


Word description
Returns a parser that succeeds if the parser succeeds and the quotation called with the AST produced by parser on the stack returns true.

Examples
USING: kernel math peg prettyprint ; "C" [ drop t ] satisfy [ 66 > ] semantic parse .
67


Definition