(parse-until) ( accum end -- accum )


Vocabulary
parser

Inputs and outputs
accuma vector
enda word


Word description
Parses objects from parser input until end is encountered, adding them to the accumulator.

Notes
This word should only be called from parsing words.

See also
parse-tokens, each-token, map-tokens, parse-until

Definition
USING: kernel ;

IN: parser

: (parse-until) ( accum end -- accum )
[ parse-until-step ] keep swap
[ (parse-until) ] [ drop ] if ;