mirror of
https://github.com/justinethier/cyclone.git
synced 2025-05-24 20:45:06 +02:00
call/cc integration
This commit is contained in:
parent
582524af81
commit
89526d79e8
1 changed files with 10 additions and 5 deletions
9
icyc.scm
9
icyc.scm
|
@ -12,11 +12,16 @@
|
||||||
;; TODO: define repl iteration, and wrap in an exception handler
|
;; TODO: define repl iteration, and wrap in an exception handler
|
||||||
|
|
||||||
(define (repl:next-line)
|
(define (repl:next-line)
|
||||||
|
; (call/cc
|
||||||
|
; (lambda (continue)
|
||||||
(with-exception-handler
|
(with-exception-handler
|
||||||
(lambda (obj)
|
(lambda (obj)
|
||||||
(write (list 'an-error-occurred obj)))
|
(write (list 'an-error-occurred obj))
|
||||||
|
); (continue #t))
|
||||||
(lambda ()
|
(lambda ()
|
||||||
(repl))))
|
(repl)))) ;)
|
||||||
|
; (repl:next-line))
|
||||||
|
;#f)
|
||||||
|
|
||||||
(define (repl)
|
(define (repl)
|
||||||
(display "cyclone> ")
|
(display "cyclone> ")
|
||||||
|
|
Loading…
Add table
Reference in a new issue