Handbook
Glossary
ensure-not ( parser -- parser )
Vocabulary
peg
Inputs
parser
a
parser
Outputs
parser
a
parser
Word description
Returns a parser that succeeds if the
parser
fails but does not add anything to the AST and does not move the location in the input string. This can be used for lookahead and disambiguation, along with the
ensure
word.
"+" token "=" token ensure-not "+=" token 3array seq
Definition
USING:
kernel
peg.private
;
IN:
peg
:
ensure-not
( parser -- parser )
ensure-not-parser
boa
wrap-peg
;