report the value not found in lzw
							parent
							
								
									7a3c086178
								
							
						
					
					
						commit
						edbaba2322
					
				| 
						 | 
					@ -69,11 +69,11 @@ ERROR: index-too-big n ;
 | 
				
			||||||
: omega-k-in-table? ( lzw -- ? )
 | 
					: omega-k-in-table? ( lzw -- ? )
 | 
				
			||||||
    [ omega-k>> ] [ table>> ] bi key? ;
 | 
					    [ omega-k>> ] [ table>> ] bi key? ;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
ERROR: not-in-table ;
 | 
					ERROR: not-in-table value ;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
: write-output ( lzw -- )
 | 
					: write-output ( lzw -- )
 | 
				
			||||||
    [
 | 
					    [
 | 
				
			||||||
        [ omega>> ] [ table>> ] bi at* [ not-in-table ] unless
 | 
					        [ omega>> ] [ table>> ] bi ?at [ not-in-table ] unless
 | 
				
			||||||
    ] [
 | 
					    ] [
 | 
				
			||||||
        [ lzw-bit-width-compress ]
 | 
					        [ lzw-bit-width-compress ]
 | 
				
			||||||
        [ output>> write-bits ] bi
 | 
					        [ output>> write-bits ] bi
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue