crystal: Prepare to implement with Crystal
authorrhysd <lin90162@yahoo.co.jp>
Fri, 1 May 2015 16:45:03 +0000 (01:45 +0900)
committerrhysd <lin90162@yahoo.co.jp>
Tue, 2 Jun 2015 17:26:58 +0000 (02:26 +0900)
.gitignore
Makefile
README.md

index 54864aa..cfca347 100644 (file)
@@ -57,3 +57,4 @@ nim/nimcache
 .ivy2
 .sbt
 groovy/*.class
+.crystal
index 6e8c8b6..73a705c 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -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)
index 6070812..8362248 100644 (file)
--- a/README.md
+++ b/README.md
@@ -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)*