Handbook
Glossary
parse-fresh ( lines -- quot )
Vocabulary
parser
Inputs
lines
a
sequence
of
string
s
Outputs
quot
a
quotation
Word description
Parses Factor source code in a sequence of lines. The initial vocabulary search path is used (see
with-file-vocabs
).
Errors
Throws a parse error if the input is malformed.
Definition
USING:
combinators
kernel
namespaces
vocabs.parser
;
IN:
parser
:
parse-fresh
( lines -- quot )
[
parse-lines
auto-used?
[
print-use-hook
get
( -- )
call-effect
]
when
]
with-file-vocabs
;