vocabs: support qualified lookups in no-word restarts.
parent
3f803e3893
commit
7aa0e16df8
|
@ -100,9 +100,12 @@ ERROR: no-vocab name ;
|
||||||
dictionary get values [ vocab-words ] map concat ;
|
dictionary get values [ vocab-words ] map concat ;
|
||||||
|
|
||||||
: words-named ( str -- seq )
|
: words-named ( str -- seq )
|
||||||
dictionary get values
|
dictionary get
|
||||||
[ vocab-words-assoc at ] with map
|
[ values [ vocab-words-assoc at ] with map sift ]
|
||||||
sift ;
|
[
|
||||||
|
[ ":" split1 swap ] dip at
|
||||||
|
[ vocab-words-assoc at suffix ] [ drop ] if*
|
||||||
|
] 2bi ;
|
||||||
|
|
||||||
: child-vocab? ( prefix name -- ? )
|
: child-vocab? ( prefix name -- ? )
|
||||||
swap [ drop t ] [
|
swap [ drop t ] [
|
||||||
|
|
Loading…
Reference in New Issue