Another fix
							parent
							
								
									bb3468dc2b
								
							
						
					
					
						commit
						9660a9c2d6
					
				| 
						 | 
				
			
			@ -98,7 +98,7 @@ H{ } clone update-map set
 | 
			
		|||
    [
 | 
			
		||||
        over "type" word-prop dup
 | 
			
		||||
        \ tag-mask get < \ tag \ type ? , , \ eq? ,
 | 
			
		||||
    ] [ ] make define-predicate ;
 | 
			
		||||
    ] [ ] make define-predicate* ;
 | 
			
		||||
 | 
			
		||||
: register-builtin ( class -- )
 | 
			
		||||
    dup "type" word-prop builtins get set-nth ;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -69,13 +69,6 @@ M: vocab-link vocab-root
 | 
			
		|||
        vocab-tests %
 | 
			
		||||
    ] { } make ;
 | 
			
		||||
 | 
			
		||||
TUPLE: no-vocab name ;
 | 
			
		||||
 | 
			
		||||
: no-vocab ( name -- * )
 | 
			
		||||
    vocab-name \ no-vocab construct-boa throw ;
 | 
			
		||||
 | 
			
		||||
M: no-vocab summary drop "Vocabulary does not exist" ;
 | 
			
		||||
 | 
			
		||||
SYMBOL: load-help?
 | 
			
		||||
 | 
			
		||||
: source-was-loaded t swap set-vocab-source-loaded? ;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,4 +1,4 @@
 | 
			
		|||
! Copyright (C) 2007 Eduardo Cavazos, Slava Pestov.
 | 
			
		||||
! Copyright (C) 2007, 2008 Eduardo Cavazos, Slava Pestov.
 | 
			
		||||
! See http://factorcode.org/license.txt for BSD license.
 | 
			
		||||
USING: assocs strings kernel sorting namespaces sequences
 | 
			
		||||
definitions ;
 | 
			
		||||
| 
						 | 
				
			
			@ -113,3 +113,8 @@ UNION: vocab-spec vocab vocab-link ;
 | 
			
		|||
    vocab-name dictionary get delete-at ;
 | 
			
		||||
 | 
			
		||||
M: vocab-spec forget* forget-vocab ;
 | 
			
		||||
 | 
			
		||||
TUPLE: no-vocab name ;
 | 
			
		||||
 | 
			
		||||
: no-vocab ( name -- * )
 | 
			
		||||
    vocab-name \ no-vocab construct-boa throw ;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue