-
Notifications
You must be signed in to change notification settings - Fork 115
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
/xml
folder structure. EachSource
program is stored in a separate.js
file. - The
Source
programs are generated by searching through executable<SNIPPET>
tags in allxml
files. The programs included their respectiveREQUIRES
andEXAMPLE
, 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.