mirror of
https://github.com/justinethier/cyclone.git
synced 2025-05-19 05:39:17 +02:00
Rename interpreter executable
This commit is contained in:
parent
2c40623d91
commit
2e2dc954ae
3 changed files with 6 additions and 24 deletions
8
Makefile
8
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;)
|
||||
|
|
|
@ -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
|
||||
------------
|
||||
|
|
16
repl.scm
16
repl.scm
|
@ -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)
|
Loading…
Add table
Reference in a new issue