]> gitweb.factorcode.org Git - factor.git/commitdiff
syntax: adding documentation for STARTUP-HOOK: and SHUTDOWN-HOOK:
authorJohn Benediktsson <mrjbq7@gmail.com>
Wed, 26 Jan 2022 18:43:54 +0000 (10:43 -0800)
committerJohn Benediktsson <mrjbq7@gmail.com>
Wed, 26 Jan 2022 18:43:54 +0000 (10:43 -0800)
core/syntax/syntax-docs.factor

index f98a694cf12de930c48d3ad97fec7c8f4bdef10f..6601811f9d8011e3f136bc473fdd1489e7d7cbfa 100644 (file)
@@ -1028,3 +1028,11 @@ HELP: IDENTITY-MEMO::
 { $syntax "IDENTITY-MEMO:: word ( stack -- effect ) definition... ;" }
 { $values { "word" "a new word to define" } { "definition" "a word definition" } }
 { $description "Defines the given word at parse time as one which memoizes its output given a particular input with locals which is identical to another input. The stack effect is mandatory." } ;
+
+HELP: STARTUP-HOOK:
+{ $syntax "STARTUP-HOOK: word/quotation" }
+{ $description "Parses a word or a quotation and sets it as the startup hook for the current vocabulary." } ;
+
+HELP: SHUTDOWN-HOOK:
+{ $syntax "SHUTDOWN-HOOK: word/quotation" }
+{ $description "Parses a word or a quotation and sets it as the shutdown hook for the current vocabulary." } ;