- live search: timer delay would be nice
- help responder has no way to access { "foo" "bar" }
- httpd search tools
-- polish OS X menu bar code
+ ui:
"If this module is already listed in the " { $link modules } " hashtable, this word does nothing. Otherwise, it calls " { $link load-module } "." }
{ $notes "Module definitions should use the " { $link POSTPONE: REQUIRES: } " parsing word instead. In the listener, the " { $link require } " word might be more useful since it recompiles new words after loading the module." } ;
-HELP: run-files
-{ $values { "seq" "a sequence of strings" } }
-{ $description "Load a collection of source files."
-$terpri
-"If bootstrapping, this word appends the top-level forms to the currently constructing quotation instead." } ;
-
HELP: provide
{ $values { "name" "a string" } { "files" "a sequence of strings" } { "tests" "a sequence of strings" } }
{ $description "Registers a module definition and loads its source files. Usually instead of calling this word, module definitions use the parsing word " { $link POSTPONE: PROVIDE: } " instead." } ;
\r
: run-file ( file -- ) parse-file call ;\r
\r
+: no-parse-hook ( quot -- )\r
+ [ parse-hook off call ] with-scope ; inline\r
+\r
: run-files ( seq -- )\r
[\r
bootstrapping? get\r
[ parse-file % ] [ run-file ] ? each\r
] no-parse-hook ;\r
\r
-: no-parse-hook ( quot -- )\r
- [ parse-hook off call ] with-scope ; inline\r
-\r
: ?run-file ( file -- )\r
dup exists? [ [ [ run-file ] keep ] try ] when drop ;\r
\r
{ $values { "quot" "a quotation" } }
{ $description "Runs the quotation in a new dynamic scope where " { $link parse-hook } " is set to " { $link f } ". This disables the default behavior of recompiling changed definitions after a source file is loaded." } ;
+HELP: run-files
+{ $values { "seq" "a sequence of strings" } }
+{ $description "Load a collection of source files."
+$terpri
+"If bootstrapping, this word appends the top-level forms to the currently constructing quotation instead." } ;
+
HELP: parse-stream
{ $values { "stream" "an input stream" } { "name" "a file name for error reporting" } { "quot" "a new quotation" } }
{ $description "Parses Factor source code read from the stream. The initial vocabulary search path is used." }
dup empty? [
drop
] [
- [ run-files ] curry call-listener
+ [ run-files recompile ] curry call-listener
] if ;
: listener-eof ( listener -- )