From 2e2dc954ae18596a916442943ed4f92af1278fbb Mon Sep 17 00:00:00 2001 From: Justin Ethier Date: Sat, 21 Feb 2015 22:32:38 -0500 Subject: [PATCH] Rename interpreter executable --- Makefile | 8 ++++---- README.md | 6 ++---- repl.scm | 16 ---------------- 3 files changed, 6 insertions(+), 24 deletions(-) delete mode 100644 repl.scm diff --git a/Makefile b/Makefile index a90da68d..0e529e9d 100644 --- a/Makefile +++ b/Makefile @@ -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;) diff --git a/README.md b/README.md index a806178a..cc630ca7 100644 --- a/README.md +++ b/README.md @@ -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 ------------ diff --git a/repl.scm b/repl.scm deleted file mode 100644 index 6b35a140..00000000 --- a/repl.scm +++ /dev/null @@ -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)