]> gitweb.factorcode.org Git - factor.git/commitdiff
syntax: mention support for quotations in 'MAIN:'
authorrazetime <raghuallthetime@hotmail.com>
Mon, 12 Dec 2022 15:36:59 +0000 (21:06 +0530)
committerrazetime <raghuallthetime@hotmail.com>
Mon, 12 Dec 2022 15:36:59 +0000 (21:06 +0530)
core/syntax/syntax-docs.factor

index db632bf70327ea023ddeaac6ce1ff2d8cf309cbc..68766f87b2d8cf63b1917e3474f155a0563eb295 100644 (file)
@@ -924,7 +924,11 @@ HELP: C:
 HELP: MAIN:
 { $syntax "MAIN: word" }
 { $values { "word" word } }
-{ $description "Defines the main entry point for the current vocabulary and source file. This word will be executed when this vocabulary is passed to " { $link run } " or the source file is run as a script." } ;
+{ $description "Defines the main entry point for the current vocabulary and source file. This word will be executed when this vocabulary is passed to " { $link run } " or the source file is run as a script."
+                $nl
+                "If a quotation is passed instead of a word, then it will be run as the main entry point, in the same way." 
+                { $warning "Quotation support in " { $snippet "MAIN:" } " is test functionality. Use it with caution." }
+} ;
 
 HELP: <PRIVATE
 { $syntax "<PRIVATE ... PRIVATE>" }