Rename interpreter executable

This commit is contained in:
Justin Ethier 2015-02-21 22:32:38 -05:00
parent 2c40623d91
commit 2e2dc954ae
3 changed files with 6 additions and 24 deletions

View file

@ -1,7 +1,7 @@
TESTSCM = unit-tests
TESTFILES = $(addprefix tests/, $(addsuffix .scm, $(TESTSCM)))
all: cyclone
all: cyclone icyc
trans.so: trans.scm
csc -s trans.scm
@ -19,8 +19,8 @@ cyclone: cyclone.scm trans.so cgen.so parser.so
test: $(TESTFILES) cyclone
$(foreach f,$(TESTSCM), echo tests/$(f) ; ./cyclone tests/$(f).scm && tests/$(f) && rm -rf tests/$(f);)
repl: cyclone repl.scm eval.scm parser.scm
./cyclone repl.scm
icyc: cyclone icyc.scm eval.scm parser.scm
./cyclone icyc.scm
.PHONY: tags
tags:
@ -28,5 +28,5 @@ tags:
.PHONY: clean
clean:
rm -rf a.out *.o *.so *.c *.out tags cyclone repl
rm -rf a.out *.o *.so *.c *.out tags cyclone icyc
$(foreach f,$(TESTSCM), rm -rf $(f) $(f).c tests/$(f).c;)

View file

@ -19,11 +19,9 @@ From the source directory, to build and run the compiler:
...
$ ./cyclone
To build the interpreter:
To run the interpreter:
$ make repl
...
$ ./repl
$ ./icyc
Installation
------------

View file

@ -1,16 +0,0 @@
;; 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)