Is there a kind of walkthrough/tutorial about how to develop a little Lisp interpreter?
That sounds like a fun experiment.
PS: Sorry, I am a Java OO developper. But I like to learn :)
PS: Sorry, I am a Java OO developper. But I like to learn :)
https://www.amazon.com/Lisp-Small-Pieces-Christian-Queinnec/...
But there's plenty more.
[natives.label, factorial,
[natives.lambda, [n], [natives.cond,
[ [natives.eq, n, 0], 1 ],
[ true, [natives.times, n, [factorial, [natives.plus, n, -1]]] ]
]]
]
It took me about 5 hours to get the whole think working from his paper, and I learned a lot in the process.Edit: He also links to his Scheme interpreter in Java in that article: http://norvig.com/jscheme.html
At least as many as there are TODO app examples for web frameworks...
A Lisp implemented through JavaScript arrays.