Fix interpreter unit tests
parent
7bad3a77fa
commit
f6facbb47f
|
@ -2,9 +2,7 @@ IN: temporary
|
||||||
USING: errors interpreter io kernel math math-internals
|
USING: errors interpreter io kernel math math-internals
|
||||||
namespaces prettyprint sequences test ;
|
namespaces prettyprint sequences test ;
|
||||||
|
|
||||||
: done-all? ( -- ? ) done? meta-c get empty? and ;
|
: run ( -- ) done? [ step-in run ] unless ;
|
||||||
|
|
||||||
: run ( -- ) done-all? [ next do run ] unless ;
|
|
||||||
|
|
||||||
: init-interpreter ( -- )
|
: init-interpreter ( -- )
|
||||||
V{ } clone meta-d set
|
V{ } clone meta-d set
|
||||||
|
|
|
@ -50,7 +50,7 @@ SYMBOL: callframe-end
|
||||||
: (next)
|
: (next)
|
||||||
callframe-scan get callframe get nth callframe-scan inc ;
|
callframe-scan get callframe get nth callframe-scan inc ;
|
||||||
|
|
||||||
: next ( quot -- obj )
|
: next ( quot -- )
|
||||||
{
|
{
|
||||||
{ [ done? ] [ drop [ ] (meta-call) ] }
|
{ [ done? ] [ drop [ ] (meta-call) ] }
|
||||||
{ [ done-cf? ] [ drop up ] }
|
{ [ done-cf? ] [ drop up ] }
|
||||||
|
|
Loading…
Reference in New Issue