tracing error in compilation
This commit is contained in:
parent
8f1ebec184
commit
7357c8e850
|
@ -309,6 +309,7 @@
|
||||||
|
|
||||||
[(GetControlStackLabel? op)
|
[(GetControlStackLabel? op)
|
||||||
(target-updater! m (frame-return (first (machine-control m))))]
|
(target-updater! m (frame-return (first (machine-control m))))]
|
||||||
|
|
||||||
[(CaptureEnvironment? op)
|
[(CaptureEnvironment? op)
|
||||||
(target-updater! m (make-CapturedEnvironment (drop (machine-env m)
|
(target-updater! m (make-CapturedEnvironment (drop (machine-env m)
|
||||||
(CaptureEnvironment-skip op))))]
|
(CaptureEnvironment-skip op))))]
|
||||||
|
|
|
@ -663,6 +663,57 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
(test '(begin (define a '(hello))
|
||||||
|
(define b '(world))
|
||||||
|
(define reset!
|
||||||
|
(lambda ()
|
||||||
|
(set! a '())
|
||||||
|
(reset!)))
|
||||||
|
(list a b))
|
||||||
|
'(() (world)))
|
||||||
|
|
||||||
|
|
||||||
|
(test '(begin (define a '(hello))
|
||||||
|
(define b '(world))
|
||||||
|
(define reset!
|
||||||
|
(lambda ()
|
||||||
|
(set! b '())))
|
||||||
|
(reset!)
|
||||||
|
(list a b))
|
||||||
|
'((hello) ()))
|
||||||
|
|
||||||
|
(test '(begin (define a '(hello))
|
||||||
|
(define b '(world))
|
||||||
|
(define reset!
|
||||||
|
(lambda ()
|
||||||
|
(set! a '())
|
||||||
|
'ok))
|
||||||
|
(reset!)
|
||||||
|
(list a b))
|
||||||
|
'(()(world)))
|
||||||
|
|
||||||
|
(test '(begin (define a '(hello))
|
||||||
|
(define b '(world))
|
||||||
|
(define reset!
|
||||||
|
(lambda ()
|
||||||
|
(set! b '())
|
||||||
|
'ok))
|
||||||
|
(reset!)
|
||||||
|
(list a b))
|
||||||
|
'((hello)()))
|
||||||
|
|
||||||
|
|
||||||
|
(test '(begin (define a '(hello))
|
||||||
|
(define b '(world))
|
||||||
|
(define reset!
|
||||||
|
(lambda ()
|
||||||
|
(set! a '())
|
||||||
|
(set! b '())))
|
||||||
|
(reset!)
|
||||||
|
(list a b))
|
||||||
|
'(()()))
|
||||||
|
|
||||||
|
|
||||||
#;(test (read (open-input-file "tests/conform/program0.sch"))
|
#;(test (read (open-input-file "tests/conform/program0.sch"))
|
||||||
(port->string (open-input-file "tests/conform/expected0.txt")))
|
(port->string (open-input-file "tests/conform/expected0.txt")))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user