sicp-reformatter
jslisp
sicp-reformatter | jslisp | |
---|---|---|
1 | 1 | |
0 | 1 | |
- | - | |
10.0 | 10.0 | |
over 9 years ago | over 4 years ago | |
JavaScript | JavaScript | |
- | - |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
sicp-reformatter
-
(Learn 'Scheme)
Pleasantly surprised to see this on HN! This is an old (and incomplete) project of mine to reformat Structure and Interpretation of Computer Programs into a browser-friendly format, with a built-in code editor and interpreter.
I think today, you can use Racket in its special SICP mode to get a much better experience. But maybe the HTML (Bootstrap) formatting is a little nicer to read (and with the bonus that it probably works on phones).
The interpreter was incomplete and written from scratch, as a learning project. This was done in the pre-WebAssembly days, so I couldn't just recompile, say, a Scheme written in C for use in the browser.
If I recall correctly, I took the SICP source files, ran a bunch of regular expressions on them to convert the content into XML, and then used XSLT to generate the web pages. I was really into XSLT at the time :)
Anyway, hope people find this useful!
Source code links:
HTML generator: https://github.com/jaredkrinke/learn-scheme
SICP-to-XML converter: https://github.com/jaredkrinke/sicp-reformatter
Interpreter: https://github.com/jaredkrinke/jslisp
jslisp
-
(Learn 'Scheme)
Pleasantly surprised to see this on HN! This is an old (and incomplete) project of mine to reformat Structure and Interpretation of Computer Programs into a browser-friendly format, with a built-in code editor and interpreter.
I think today, you can use Racket in its special SICP mode to get a much better experience. But maybe the HTML (Bootstrap) formatting is a little nicer to read (and with the bonus that it probably works on phones).
The interpreter was incomplete and written from scratch, as a learning project. This was done in the pre-WebAssembly days, so I couldn't just recompile, say, a Scheme written in C for use in the browser.
If I recall correctly, I took the SICP source files, ran a bunch of regular expressions on them to convert the content into XML, and then used XSLT to generate the web pages. I was really into XSLT at the time :)
Anyway, hope people find this useful!
Source code links:
HTML generator: https://github.com/jaredkrinke/learn-scheme
SICP-to-XML converter: https://github.com/jaredkrinke/sicp-reformatter
Interpreter: https://github.com/jaredkrinke/jslisp
What are some alternatives?
racket - The Racket repository
LIPS - Scheme based powerful lisp interpreter in JavaScript