mirror of
https://github.com/justinethier/cyclone.git
synced 2025-05-20 14:19:17 +02:00
Initial file
This commit is contained in:
parent
2e2dc954ae
commit
b2364f8e66
1 changed files with 16 additions and 0 deletions
16
icyc.scm
Normal file
16
icyc.scm
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
;; Cyclone Scheme
|
||||||
|
;; Copyright (c) 2014, Justin Ethier
|
||||||
|
;; All rights reserved.
|
||||||
|
;;
|
||||||
|
;; This module contains a simple Read-Eval-Print Loop
|
||||||
|
;;
|
||||||
|
(display *Cyc-version-banner*)
|
||||||
|
(define (repl)
|
||||||
|
(display "cyclone> ")
|
||||||
|
(let ((c (eval (read))))
|
||||||
|
(cond
|
||||||
|
((not (eof-object? c))
|
||||||
|
(write c)
|
||||||
|
(repl))
|
||||||
|
(else #f))))
|
||||||
|
(repl)
|
Loading…
Add table
Reference in a new issue