4 ms·
Shameless plug: I'm writing similar thing as a hobby sandbox project: https://github.com/kovrik/scheme-in-kotlin https://github.com/kovrik/scheme-in-kotlin It
by kovrik 8y ago
Shameless plug: I'm writing similar thing as a hobby sandbox project: https://github.com/kovrik/scheme-in-kotlin https://github.com/kovrik/scheme-in-kotlin
It started as a Scheme R5RS implementation in Java, then I translated everything to Kotlin. Finally, decided to make it a hybrid (abomination?) of Scheme and Racket and Clojure.
Still in development, don't know how to implement macros properly. Also, it's only an interpreter for now, there is no compiler (for the same reason: don't know yet how to write a compiler for Kotlin. Use ASM?)
Anyway, it is a great and enlightening experience and I would recommend everyone to write your own lang.