mirror of
https://github.com/justinethier/cyclone.git
synced 2025-05-23 20:15:05 +02:00
Self-contained example
This commit is contained in:
parent
a1592ca61f
commit
84b4373974
1 changed files with 4 additions and 2 deletions
6
test.scm
6
test.scm
|
@ -1,3 +1,5 @@
|
|||
(define (eval2 exp . env)
|
||||
exp)
|
||||
|
||||
(define (test)
|
||||
(call/cc
|
||||
|
@ -21,8 +23,8 @@
|
|||
(repl))))))))
|
||||
(define (repl)
|
||||
(display "cyclone> ")
|
||||
(let ((c 'done)) ;(read)))) ;; fine with this line
|
||||
;(let ((c (eval 'done))) ;(read)))) ;; Crashes with this line
|
||||
;(let ((c 'done)) ;(read)))) ;; fine with this line
|
||||
(let ((c (eval2 'done))) ;(read)))) ;; Crashes with this line
|
||||
;(let ((c (read)))
|
||||
(cond
|
||||
((not (eof-object? c))
|
||||
|
|
Loading…
Add table
Reference in a new issue