(parse-lines) ( lexer -- quot )


Vocabulary
parser

Inputs and outputs
lexera lexer
quota new quotation


Word description
Parses Factor source code using a custom lexer. The vocabulary search path is taken from the current scope.

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

Definition
USING: lexer quotations ;

IN: parser

: (parse-lines) ( lexer -- quot )
[ f parse-until >quotation ] with-lexer ;