| 
									
										
										
										
											2010-01-14 14:04:14 -05:00
										 |  |  | ! Copyright (C) 2004, 2010 Slava Pestov. | 
					
						
							| 
									
										
										
										
											2008-07-20 05:24:37 -04:00
										 |  |  | ! See http://factorcode.org/license.txt for BSD license. | 
					
						
							| 
									
										
										
										
											2010-01-14 14:04:14 -05:00
										 |  |  | USING: accessors kernel io effects namespaces sequences | 
					
						
							|  |  |  | quotations vocabs vocabs.loader generic words | 
					
						
							|  |  |  | stack-checker.backend stack-checker.state | 
					
						
							| 
									
										
										
										
											2008-07-20 05:24:37 -04:00
										 |  |  | stack-checker.known-words stack-checker.transforms | 
					
						
							|  |  |  | stack-checker.errors stack-checker.inlining | 
					
						
							|  |  |  | stack-checker.visitor.dummy ;
 | 
					
						
							|  |  |  | IN: stack-checker | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-08-06 13:04:41 -04:00
										 |  |  | : infer ( quot -- effect )
 | 
					
						
							|  |  |  |     [ infer-quot-here ] with-infer drop ;
 | 
					
						
							| 
									
										
										
										
											2008-07-20 05:24:37 -04:00
										 |  |  | 
 | 
					
						
							|  |  |  | : infer. ( quot -- )
 | 
					
						
							| 
									
										
										
										
											2015-09-08 19:15:10 -04:00
										 |  |  |     ! Safe to call from inference transforms. | 
					
						
							| 
									
										
										
										
											2008-07-20 05:24:37 -04:00
										 |  |  |     infer effect>string print ;
 |