3 ms·
It is possible. Some scheme compilers use C as their intermediate language. Scheme to C to binary. (Gambit/Chicken/Stalin etc.). I have a project [1][2] that co
by nakkaya 10y ago
It is possible. Some scheme compilers use C as their intermediate language. Scheme to C to binary. (Gambit/Chicken/Stalin etc.). I have a project [1][2] that compiles a subset of Clojure to C++11 that is written using literate programming [3]. It thoroughly documented and should give you an idea on how to build your own.
[1] http://dropbox.nakkaya.com/builds/ferret-manual.html http://dropbox.nakkaya.com/builds/ferret-manual.html
[2] http://nakkaya.com/2011/06/29/ferret-an-experimental-clojure-compiler/ http://nakkaya.com/2011/06/29/ferret-an-experimental-clojure... (Old version for more documentation on the idea.)
[3] https://en.wikipedia.org/wiki/Literate_programming https://en.wikipedia.org/wiki/Literate_programming