IN: compiler USING: help words io ; HELP: compiled? ( word -- ? ) { $values { "word" "a word" } { "?" "a boolean" } } { $description "Tests if a word is compiled." } ; HELP: compile { $values { "word" "a word" } } { $description "Compiles a word together with any uncompiled dependencies. Does nothing if the word is already compiled." } { $errors "If compilation fails, this word can throw an error. In particular, if the word's stack effect cannot be inferred, this word will throw an error. The related " { $link try-compile } " word logs errors and returns rather than throwing." } ; HELP: try-compile { $values { "word" "a word" } } { $description "Compiles a word together with any uncompiled dependencies. Does nothing if the word is already compiled." } { $errors "If compilation fails, this word logs the error to the " { $link stdio } " stream and returns normally." } ; HELP: compile-vocabs { $values { "seq" "a sequence of strings" } } { $description "Compiles all words which have not been compiled yet from the given vocabularies." } ; HELP: compile-quot { $values { "quot" "a quotation" } { "word" "a new, uninterned word" } } { $description "Creates a new uninterned word having the given quotation as its definition, and compiles it. The returned word can be passed to " { $link execute } "." } { $errors "Throws an error if the stack effect of the quotation cannot be inferred." } ; HELP: compile-1 { $values { "quot" "a quotation" } } { $description "Compiles and runs a quotation." } { $errors "Throws an error if the stack effect of the quotation cannot be inferred." } ; HELP: recompile { $description "Recompiles words whose compiled definitions have become out of date as a result of dependent words being redefined." } ; HELP: compile-all { $description "Compiles all words which have not been compiled yet." } ; IN: generator HELP: finalize-compile ( xts -- ) { $values { "xts" "an array of pairs mapping words to XTs" } } { $description "Performs relocation, atomically changes the XT of all given words, and on PowerPC, flushes the CPU instruction cache." } ;