factor/basis/stack-checker/stack-checker.factor

18 lines
591 B
Factor
Raw Normal View History

2009-03-17 00:02:55 -04:00
! Copyright (C) 2004, 2009 Slava Pestov.
2008-07-20 05:24:37 -04:00
! See http://factorcode.org/license.txt for BSD license.
USING: kernel io effects namespaces sequences quotations vocabs
2009-03-17 00:02:55 -04:00
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
GENERIC: infer ( quot -- effect )
M: callable infer ( quot -- effect )
2008-11-03 04:06:11 -05:00
[ infer-quot-here ] with-infer drop ;
2008-07-20 05:24:37 -04:00
: infer. ( quot -- )
#! Safe to call from inference transforms.
infer effect>string print ;