Handbook
Glossary
with-lambda-scope ( assoc reader-quot: ( -- quot ) -- quot )
Vocabulary
locals
.
parser
Inputs
assoc
local variables
reader-quot
a
quotation
Outputs
quot
a
quotation
Word description
Runs the quotation in a lambda scope. That means that any local variables are available for lookup in the
manifest
, but are cleaned up after the quotation finishes.
Definition
USING:
kernel
namespaces
parser
vocabs.parser
;
IN:
locals.parser
:
with-lambda-scope
( assoc reader-quot: ( -- quot ) -- quot )
H{
{
quotation-parser
lambda-parser
}
{
in-lambda?
t
}
}
-rot
[
with-words
]
2curry
with-variables
;
inline