diff options
| author | def <dennis@felsin9.de> | 2015-03-04 04:17:43 +0100 |
|---|---|---|
| committer | def <dennis@felsin9.de> | 2015-03-04 04:39:43 +0100 |
| commit | a2cd0a3adae2ccf2566122bcd90230d905ab59dc (patch) | |
| tree | a68fc31f5c41381c910cd5f14b9fa166f84f9755 /nim | |
| parent | 4ce9e165bafb4f14b03624f515066c3c42719dd9 (diff) | |
| download | mal-a2cd0a3adae2ccf2566122bcd90230d905ab59dc.tar.gz mal-a2cd0a3adae2ccf2566122bcd90230d905ab59dc.zip | |
Add instructions and makefile for Nim
Diffstat (limited to 'nim')
| -rw-r--r-- | nim/Makefile | 33 | ||||
| -rw-r--r-- | nim/mal.nimble | 2 |
2 files changed, 34 insertions, 1 deletions
diff --git a/nim/Makefile b/nim/Makefile new file mode 100644 index 0000000..1da1ae6 --- /dev/null +++ b/nim/Makefile @@ -0,0 +1,33 @@ +##################### + +SOURCES_BASE = types.nim reader.nim printer.nim +SOURCES_LISP = env.nim core.nim stepA_interop.nim +SOURCES = $(SOURCES_BASE) $(SOURCES_LISP) + +##################### + +SRCS = step0_repl.nim step1_read_print.nim step2_eval.nim step3_env.nim \ + step4_if_fn_do.nim step5_tco.nim step6_file.nim step7_quote.nim \ + step8_macros.nim step9_try.nim stepA_interop.nim +BINS = $(SRCS:%.nim=%) + +##################### + +all: $(BINS) mal + +mal: $(word $(words $(BINS)),$(BINS)) + cp $< $@ + +$(BINS): + nim -d:release c $@ + +clean: + rm -rf nimcache/ $(BINS) + rm -f mal + +.PHONY: stats stats-lisp + +stats: $(SOURCES) + @wc $^ +stats-lisp: $(SOURCES_LISP) + @wc $^ diff --git a/nim/mal.nimble b/nim/mal.nimble index 8c7028d..db35b0b 100644 --- a/nim/mal.nimble +++ b/nim/mal.nimble @@ -8,4 +8,4 @@ license = "MIT" bin = "step0_repl, step1_read_print, step2_eval, step3_env, step4_if_fn_do, step5_tco, step6_file, step7_quote, step8_macros, step9_try, stepA_interop" [Deps] -Requires = "nim >= 0.10.0, nre >= 0.6.0" +Requires = "nim >= 0.10.3, nre >= 0.6.0" |
