Handbook
Glossary
generate-vocab ( vocab-name quot -- vocab )
Vocabulary
vocabs
.
generated
Inputs
vocab-name
an
object
quot
an
object
Outputs
vocab
an
object
Definition
USING:
compiler.units
continuations
kernel
vocabs
vocabs.parser
;
IN:
vocabs.generated
:
generate-vocab
( vocab-name quot -- vocab )
[
dup
lookup-vocab
[
]
]
dip
[
with-current-vocab
]
curry
[
[
]
[
forget-vocab
]
cleanup
]
curry
[
with-compilation-unit
]
curry
[
keep
]
curry
[
or?
]
2dip
if
;
inline