SICPy_2 - nus-cs4215/x-slang-t1-xz-jj GitHub Wiki

SICPy §2

SICPy §2 is a small programming language, adapted from Source §2, designed for the second chapter of the textbook Structure and Interpretation of Computer Programs, JavaScript Adaptation (SICP JS).

What names are predeclared in SICPy 2?

MATH: Mathematical constants and functions

MISC: Miscellaneous constants and functions

LISTS: Support for lists

What can you do in SICPy §2?

You can use all features of SICPy §1 and all features that are introduced in chapter 2 of the textbook. Below are the features that SICPy §2 adds to SICPy §1.

The empty list None

SICPy §2 provides a new primitive value, None, that serves as empty list.

The LIST functions

To work with lists, you can use the functions in the LISTS group of predeclared functions, already mentioned above.

Specifications

Refer to this document for the specifications.