-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
125 lines (78 loc) · 7.35 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Source §2</title>
<link rel="shortcut icon"
type="image/x-icon"
href="/images/sourcepower.ico" />
<script src="scripts/prettify/prettify.js"> </script>
<script src="scripts/prettify/lang-css.js"> </script>
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css">
<link type="text/css" rel="stylesheet" href="styles/jsdoc-default.css">
</head>
<body>
<div id="main">
<h1 class="page-title">Source §2</h1>
<!-- changed by MH on 1/7/2019 from default template. See "MH" below -->
<!-- changed by MH on 3/6/2021 from default template. See "MH" below -->
<h3> </h3>
<section>
<article><p>Source §2 is a small programming language, designed for the second chapter
of the textbook
<a href="https://sourceacademy.org/sicpjs">Structure and Interpretation
of Computer Programs, JavaScript Adaptation</a> (SICP JS).</p>
<h2>What names are predeclared in Source §2?</h2>
<p>On the right, you see all predeclared names of Source §2, in alphabetical
order. Click on a name to see how it is defined and used. They come in
these groups:</p>
<ul>
<li>
<a href="../AUXILIARY/">AUXILIARY</a>: Auxiliary constants and functions
</li>
<li>
<a href="../MISC/">MISC</a>: Miscellaneous constants and functions
</li>
<li>
<a href="../MATH/">MATH</a>: Mathematical constants and functions
</li>
<li>
<a href="../LISTS/">LISTS</a>: Support for lists
</li>
</ul>
<h2>What can you do in Source §2?</h2>
<p>You can use all features of
<a href="../source_1/">Source §1</a> and all
features that are introduced in
<a href="https://sourceacademy.org/sicpjs/2">chapter 2</a> of the
textbook.
Below are the features that Source §2 adds to Source §1.</p>
<h3>The empty list <code>null</code></h3>
<p>Source §2 provides a new primitive value, <code>null</code>, that serves as empty list.</p>
<h3>The LIST functions</h3>
<p>To work with lists, you can use the functions in the
<a href="../LISTS/">LISTS</a> group of predeclared functions, already mentioned
above.</p>
<h2>You want the definitive specs?</h2>
<p>For our development team, we are maintaining a definitive description
of the language, called the
<a href="../source_2.pdf">Specification of Source §2</a>. Feel free to
take a peek!</p></article>
</section>
</div>
<nav>
<h3>Predeclared names</h3><ul><li><a href="global.html#__access_export__">__access_export__</a></li><li><a href="global.html#__access_named_export__">__access_named_export__</a></li><li><a href="global.html#accumulate">accumulate</a></li><li><a href="global.html#append">append</a></li><li><a href="global.html#arity">arity</a></li><li><a href="global.html#build_list">build_list</a></li><li><a href="global.html#char_at">char_at</a></li><li><a href="global.html#display">display</a></li><li><a href="global.html#display_list">display_list</a></li><li><a href="global.html#draw_data">draw_data</a></li><li><a href="global.html#enum_list">enum_list</a></li><li><a href="global.html#equal">equal</a></li><li><a href="global.html#error">error</a></li><li><a href="global.html#filter">filter</a></li><li><a href="global.html#for_each">for_each</a></li><li><a href="global.html#get_time">get_time</a></li><li><a href="global.html#head">head</a></li><li><a href="global.html#Infinity">Infinity</a></li><li><a href="global.html#is_boolean">is_boolean</a></li><li><a href="global.html#is_function">is_function</a></li><li><a href="global.html#is_list">is_list</a></li><li><a href="global.html#is_null">is_null</a></li><li><a href="global.html#is_number">is_number</a></li><li><a href="global.html#is_pair">is_pair</a></li><li><a href="global.html#is_string">is_string</a></li><li><a href="global.html#is_undefined">is_undefined</a></li><li><a href="global.html#length">length</a></li><li><a href="global.html#list">list</a></li><li><a href="global.html#list_ref">list_ref</a></li><li><a href="global.html#list_to_string">list_to_string</a></li><li><a href="global.html#map">map</a></li><li><a href="global.html#math_abs">math_abs</a></li><li><a href="global.html#math_acos">math_acos</a></li><li><a href="global.html#math_acosh">math_acosh</a></li><li><a href="global.html#math_asin">math_asin</a></li><li><a href="global.html#math_asinh">math_asinh</a></li><li><a href="global.html#math_atan">math_atan</a></li><li><a href="global.html#math_atan2">math_atan2</a></li><li><a href="global.html#math_atanh">math_atanh</a></li><li><a href="global.html#math_cbrt">math_cbrt</a></li><li><a href="global.html#math_ceil">math_ceil</a></li><li><a href="global.html#math_clz32">math_clz32</a></li><li><a href="global.html#math_cos">math_cos</a></li><li><a href="global.html#math_cosh">math_cosh</a></li><li><a href="global.html#math_E">math_E</a></li><li><a href="global.html#math_exp">math_exp</a></li><li><a href="global.html#math_expm1">math_expm1</a></li><li><a href="global.html#math_floor">math_floor</a></li><li><a href="global.html#math_fround">math_fround</a></li><li><a href="global.html#math_hypot">math_hypot</a></li><li><a href="global.html#math_imul">math_imul</a></li><li><a href="global.html#math_LN2">math_LN2</a></li><li><a href="global.html#math_LN10">math_LN10</a></li><li><a href="global.html#math_log">math_log</a></li><li><a href="global.html#math_log1p">math_log1p</a></li><li><a href="global.html#math_log2">math_log2</a></li><li><a href="global.html#math_LOG2E">math_LOG2E</a></li><li><a href="global.html#math_log10">math_log10</a></li><li><a href="global.html#math_LOG10E">math_LOG10E</a></li><li><a href="global.html#math_max">math_max</a></li><li><a href="global.html#math_min">math_min</a></li><li><a href="global.html#math_PI">math_PI</a></li><li><a href="global.html#math_pow">math_pow</a></li><li><a href="global.html#math_random">math_random</a></li><li><a href="global.html#math_round">math_round</a></li><li><a href="global.html#math_sign">math_sign</a></li><li><a href="global.html#math_sin">math_sin</a></li><li><a href="global.html#math_sinh">math_sinh</a></li><li><a href="global.html#math_sqrt">math_sqrt</a></li><li><a href="global.html#math_SQRT1_2">math_SQRT1_2</a></li><li><a href="global.html#math_SQRT2">math_SQRT2</a></li><li><a href="global.html#math_tan">math_tan</a></li><li><a href="global.html#math_tanh">math_tanh</a></li><li><a href="global.html#math_trunc">math_trunc</a></li><li><a href="global.html#member">member</a></li><li><a href="global.html#NaN">NaN</a></li><li><a href="global.html#pair">pair</a></li><li><a href="global.html#parse_int">parse_int</a></li><li><a href="global.html#prompt">prompt</a></li><li><a href="global.html#remove">remove</a></li><li><a href="global.html#remove_all">remove_all</a></li><li><a href="global.html#reverse">reverse</a></li><li><a href="global.html#stringify">stringify</a></li><li><a href="global.html#tail">tail</a></li><li><a href="global.html#undefined">undefined</a></li></ul>
</nav>
<br class="clear">
<footer>
generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.11</a> from
<a href="https://github.com/source-academy/js-slang">Github repository js-slang</a>
on Wed Apr 23 2025 02:49:20 GMT+0000 (Coordinated Universal Time)
</footer>
<script> prettyPrint(); </script>
<script src="scripts/linenumber.js"> </script>
</body>
</html>