]> gitweb.factorcode.org Git - factor.git/commitdiff
vocabs.parser: adding back unuse-words.
authorJohn Benediktsson <mrjbq7@gmail.com>
Mon, 22 Jun 2015 23:32:22 +0000 (16:32 -0700)
committerJohn Benediktsson <mrjbq7@gmail.com>
Mon, 22 Jun 2015 23:32:22 +0000 (16:32 -0700)
core/vocabs/parser/parser-docs.factor
core/vocabs/parser/parser.factor

index 9e58c0f89d188e7ae80309f1b61112f84f2994ae..3a59a59e52c476f08ceff2fc7a78ead58ae40695 100644 (file)
@@ -163,8 +163,11 @@ HELP: add-renamed-word
 
 HELP: use-words
 { $values { "assoc" assoc } }
-{ $description "Adds an assoc mapping word names to words to the current manifest." }
-{ $notes "This word is used by " { $link "locals" } " to implement lexically-scoped names." } ;
+{ $description "Adds an assoc mapping word names to words to the current manifest." } ;
+
+HELP: unuse-words
+{ $values { "assoc" assoc } }
+{ $description "Removes an assoc mapping word names to words from the current manifest." } ;
 
 HELP: ambiguous-use-error
 { $error-description "Thrown when a word name referenced in source file is available in more than one vocabulary in the manifest. Such cases must be explicitly disambiguated using " { $link POSTPONE: FROM: } ", " { $link POSTPONE: EXCLUDE: } ", " { $link POSTPONE: QUALIFIED: } ", or " { $link POSTPONE: QUALIFIED-WITH: } "." } ;
index a4f59bdc61b9e64cfdfe1dfbcff4259bd69b6c7e..3751db3fba33f654b6652703263a06294ecd9ef9 100644 (file)
@@ -170,6 +170,9 @@ TUPLE: rename word vocab words ;
 : use-words ( assoc -- )
     <extra-words> qualified-vocabs push ;
 
+: unuse-words ( assoc -- )
+    <extra-words> qualified-vocabs remove! drop ;
+
 TUPLE: ambiguous-use-error words ;
 
 : <ambiguous-use-error> ( words -- error restarts )