-
Couldn't load subscription status.
- Fork 132
Source Program from the Textbook
XinYue edited this page Apr 18, 2020
·
1 revision
- node.js
- This program generates all the
Source(akaJavaScript) code included in the SICP.JS textbook. - The generated folder follows the
/xmlfolder structure. EachSourceprogram is stored in a separate.jsfile. - The
Sourceprograms are generated by searching through executable<SNIPPET>tags in allxmlfiles. The programs included their respectiveREQUIRESandEXAMPLE, and thus can be run directly using "Source Academy playground".
Run npm install to install dependencies.
Run make js/ npm start js
The generated Source programs are saved in js_programs folder.
The entire program is located at nodejs. To test any changes made to the nodejs project, cd js_programs && http-server to view the textbook on a local server.