Handbook
Glossary
satisfy ( quot -- parser )
Vocabulary
peg
Inputs
quot
a
quotation
Outputs
parser
a
parser
Word description
Returns a parser that calls the quotation on the first character of the input string, succeeding if that quotation returns true. The AST is the character from the string.
Definition
USING:
kernel
peg.private
;
IN:
peg
:
satisfy
( quot -- parser )
satisfy-parser
boa
wrap-peg
;