parse-tokens ( end -- seq )
Factor handbook > The language > Parsing words > Parsing raw tokens

Prev:map-tokens ( ... end quot: ( ... token -- ... elt ) -- ... seq )


Inputs and outputs
enda string
seqa sequence of strings

Word description
Reads a sequence of tokens until the first occurrence of end. The tokens remain as strings and are not processed in any way. This word is equivalent to map-tokens with an empty quotation.

This word should only be called from parsing words.

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