A baseline scrapscript compiler
Scrapscript is a small, pure, functional,
content-addressable, network-first programming language.
fact 5
. fact =
| 0 -> 1
| n -> n * fact (n - 1)
My previous post introduced the language a bit and then
talked about the interpreter that Chris and I built. This post is about the
compiler that Chris and I built.
In the beginning, there was an interpreter
Writing a simple tree-walking interpreter is a great way to prototype a
language implementation. It requires the minimal amount of moving parts ...
Read more at bernsteinbear.com