pack ( begin body end -- parser )


Vocabulary
peg.parsers

Inputs
begina parser
bodya parser
enda parser


Outputs
parsera parser


Word description
Returns a parser that parses the begin, body, and end parsers in order. The begin and end parsers are hidden.

Examples
USING: peg peg.parsers prettyprint ; "hi123bye" "hi" token integer-parser "bye" token pack parse .
123


See also
surrounded-by

Definition