Handbook
Glossary
recompile ( words -- alist )
Factor handbook
»
The implementation
»
Definitions
»
Compilation units
»
Compilation units internals
Prev:
forward-reference? ( word -- ? )
Next:
modify-code-heap ( alist update-existing? reset-pics? -- )
Vocabulary
compiler
.
units
Inputs
words
a
sequence
of
word
s
Outputs
alist
an association list mapping words to compiled definitions
Generic word contract
Internal word which compiles words. Called at the end of
with-compilation-unit
.
Definition
IN:
compiler.units
HOOK:
recompile
compiler-impl
( words -- alist )
Methods
USING:
accessors
assocs
compiler.units
;
M:
f
recompile
[
def>>
]
zip-with
;
USING:
assocs
combinators
compiler
compiler.units
compiler.utilities
kernel
namespaces
sequences
;
M:
optimizing-compiler
recompile
H{
}
clone
compiled
[
[
compile?
]
filter
[
compile-word
yield-hook
get
( -- )
call-effect
]
each
compiled
get
>alist
]
with-variable
"--- compile done"
compiler-message
;