parse-until ( end -- vec )
Factor documentation > Factor handbook > The language > Parsing words > Nested structure
Prev:parse-literal ( accum end quot -- accum )
Next:delimiter


Vocabulary
parser

Inputs and outputs
enda word
veca new vector


Word description
Parses objects from parser input until end. Outputs a new vector with the results.

Examples
This word is used to implement ARTICLE:.

Notes
This word should only be called from parsing words.

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

Definition
USING: kernel vectors ;

IN: parser

: parse-until ( end -- vec ) 100 <vector> swap (parse-until) ;