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