1
1
mirror of https://github.com/kanaka/mal.git synced 2024-09-11 13:55:55 +03:00

crystal: Prepare to implement with Crystal

This commit is contained in:
rhysd 2015-05-02 01:45:03 +09:00
parent 7ab0f63e30
commit 58b84dd5ca
3 changed files with 11 additions and 1 deletions

1
.gitignore vendored
View File

@ -57,3 +57,4 @@ nim/nimcache
.ivy2
.sbt
groovy/*.class
.crystal

View File

@ -10,7 +10,7 @@ PYTHON = python
# Settings
#
IMPLS = bash c clojure coffee cpp cs erlang factor forth go groovy \
IMPLS = bash c clojure coffee cpp crystal cs erlang factor forth go groovy \
haskell java julia js lua make mal ocaml matlab miniMAL nim \
perl php ps python r racket ruby rust scala swift vb guile
@ -57,6 +57,7 @@ c_STEP_TO_PROG = c/$($(1))
clojure_STEP_TO_PROG = clojure/src/$($(1)).clj
coffee_STEP_TO_PROG = coffee/$($(1)).coffee
cpp_STEP_TO_PROG = cpp/$($(1))
crystal_STEP_TO_PROG = crystal/$($(1)).cr
cs_STEP_TO_PROG = cs/$($(1)).exe
erlang_STEP_TO_PROG = erlang/$($(1))
factor_STEP_TO_PROG = factor/src/$($(1))/$($(1)).factor
@ -98,6 +99,7 @@ c_RUNSTEP = ../$(2) $(3)
clojure_RUNSTEP = lein with-profile +$(1) trampoline run $(3)
coffee_RUNSTEP = coffee ../$(2) $(3)
cpp_RUNSTEP = ../$(2) $(3)
crystal_RUNSTEP = crystal run ../$(2) $(3)
cs_RUNSTEP = mono ../$(2) --raw $(3)
erlang_RUNSTEP = ../$(2) $(3)
factor_RUNSTEP = factor ../$(2) $(3)

View File

@ -139,6 +139,13 @@ cd coffee
coffee ./stepX_YYY
```
### Crystal
```
cd crystal
crystal run ./stepX_YYY.cr
```
### Erlang
*The Erlang implementation was created by [Nathan Fiedler (nlfiedler)](https://github.com/nlfiedler)*