parse-lines ( lines -- quot )


Vocabulary
parser

Inputs and outputs
linesa sequence of strings
quota new quotation


Word description
Parses Factor source code which has been tokenized into lines. The vocabulary search path is taken from the current scope.

Errors
Throws a lexer-error if the input is malformed.

Definition
USING: arrays lexer ;

IN: parser

: parse-lines ( lines -- quot ) >array <lexer> (parse-lines) ;