Handbook
Glossary
repeat0 ( parser -- parser )
Vocabulary
peg
Inputs
parser
a
parser
Outputs
parser
a
parser
Word description
Returns a parser that parses 0 or more instances of the
parser
. The AST produced is an array of the AST produced by the
parser
. An empty array indicates 0 instances were parsed.
Definition
USING:
kernel
peg.private
;
IN:
peg
:
repeat0
( parser -- parser )
repeat0-parser
boa
wrap-peg
;