4 ms·
Here's mine, in JavaScript: https://github.com/TikhonJelvis/js-scheme https://github.com/TikhonJelvis/js-scheme Live here: http://inst.eecs.berkeley.edu/~tikhon
by tikhonj 15y ago
Here's mine, in JavaScript: https://github.com/TikhonJelvis/js-scheme https://github.com/TikhonJelvis/js-scheme
Live here: http://inst.eecs.berkeley.edu/~tikhon/scheme http://inst.eecs.berkeley.edu/~tikhon/scheme
I never got macros to work :( Still, the basics like lambdas do work.
The really cute bit is that it lets you include <script language="scheme"> blocks in your html and actually parses them. It even lets the scheme code access JavaScript objects using some special syntax.
There's one of those blocks in the source of the page; be sure to check it out.