ABCDEFGHIJKLMNOPQRSTUVWXYZ
1
LISP in Google Sheets with named functionsAuthor: zick (https://github.com/zick)
2
3
遊び方How to use
4
1. Googleアカウントでログインしてこのページを開く1. Sign in to your Google Account, and open this page
5
2. メニューの [ファイル] - [コピーを作成] を選択2. Select [File] - [Make a copy] from the menu
6
3. [コピーを作成] をクリックして編集可能なコピーを作る3. Click [Make a copy] to create a editable copy
7
4. コピーしたファイルの [REPS] シートに移動4. Open the copied file, and move to sheet [REPS]
8
5. A列(A2以降)に好きな式を入力5. Type your expressions to column A (below A2)
9
10
11
仕組みHow does it work
12
このLISPインタプリタは「名前付き関数」で作られていますThis LISP intepreter is implemented with "named functions"
13
[データ] - [名前付き関数] を選択するとすべてが分かりますYou can see everything from [Data] - [Named functions]
14
(編集可能なコピーで選択する必要があります)(You can see it only in a editable copy)
15
16
17
Supported functions / special forms(see also https://github.com/zick/ZickStandardLisp)
18
QUOTEYou can use ' sign like '(A B C)
19
IF
20
LAMBDAThis make a lexical closure
21
DEFUN
22
SETQThis makes a global variable when the variable doesn't exist
23
CAR
24
CDR
25
CONS
26
EQ
27
ATOM
28
NUMBERP
29
SYMBOLP
30
+Two arguments only
31
-Two arguments only
32
*Two arguments only
33
/
34
MOD
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