]> gitweb.factorcode.org Git - factor.git/commitdiff
vocabs.parser: change unuse-vocab to remove other forms.
authorJohn Benediktsson <mrjbq7@gmail.com>
Fri, 31 Dec 2021 03:48:00 +0000 (19:48 -0800)
committerJohn Benediktsson <mrjbq7@gmail.com>
Fri, 31 Dec 2021 03:48:00 +0000 (19:48 -0800)
core/vocabs/parser/parser.factor

index 63ca0ef78ef099fd25a86f597f333a2b75b196f9..6fba66ffd728a7105696f41651f3a3b5f13f0106 100644 (file)
@@ -131,7 +131,13 @@ ERROR: unbalanced-private-declaration vocab ;
         manifest get
         [ [ load-vocab ] dip search-vocabs>> remove-eq! drop ]
         [ [ vocab-name ] dip search-vocab-names>> delete ]
-        2bi
+        [
+            [ vocab-name ] dip qualified-vocabs>> [
+                dup extra-words? [ 2drop f ] [
+                    dup vocab? [ vocab>> ] unless vocab-name =
+                ] if
+            ] with reject! drop
+        ] 2tri
     ] [ drop ] if ;
 
 TUPLE: qualified vocab prefix words ;