diff --git a/core/parser/notes/notes-docs.factor b/core/parser/notes/notes-docs.factor new file mode 100644 index 0000000000..f9a86c6934 --- /dev/null +++ b/core/parser/notes/notes-docs.factor @@ -0,0 +1,10 @@ +USING: help.markup help.syntax io ; +IN: parser.notes + +HELP: parser-notes +{ $var-description "A boolean controlling whether the parser will print various notes. Switched on by default. If a source file is being run for its effect on " { $link output-stream } ", this variable should be switched off, to prevent parser notes from polluting the output." } ; + +HELP: parser-notes? +{ $values { "?" "a boolean" } } +{ $description "Tests if the parser will print various notes and warnings. To disable parser notes, either set " { $link parser-notes } " to " { $link f } ", or pass the " { $snippet "-quiet" } " command line switch." } ; + diff --git a/core/parser/parser-docs.factor b/core/parser/parser-docs.factor index ea6a136b95..ec0810509b 100644 --- a/core/parser/parser-docs.factor +++ b/core/parser/parser-docs.factor @@ -110,13 +110,6 @@ HELP: save-location { $values { "definition" "a definition specifier" } } { $description "Saves the location of a definition and associates this definition with the current source file." } ; -HELP: parser-notes -{ $var-description "A boolean controlling whether the parser will print various notes. Switched on by default. If a source file is being run for its effect on " { $link output-stream } ", this variable should be switched off, to prevent parser notes from polluting the output." } ; - -HELP: parser-notes? -{ $values { "?" "a boolean" } } -{ $description "Tests if the parser will print various notes and warnings. To disable parser notes, either set " { $link parser-notes } " to " { $link f } ", or pass the " { $snippet "-quiet" } " command line switch." } ; - HELP: bad-number { $error-description "Indicates the parser encountered an invalid numeric literal." } ;