-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME
72 lines (50 loc) · 1.02 KB
/
README
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
=====
aphasia
This is a [Pike-inspired] language. It supports basic calculations.
1 + 2
3
enum 20
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
x = enum 20
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
x
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
5 take x
1 2 3 4 5
5 drop x
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
-5 drop x
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
-5 take x
16 17 18 19 20
1 + x
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
x = 1 + x
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
deal x
0 0 0 2 0 3 3 4 5 0 4 0 0 4 13 14 11 16 0 17
+/x
210
*\x
1 2 6 24 120 720 5040 40320 362880 3628800 ...
x + x
2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 32 34 36 38 40
((shape x)/5) 5 shape x
1 2 3 4 5
6 7 8 9 10
11 12 13 14 15
16 17 18 19 20
y = 5 4 shape x
1 2 3 4
5 6 7 8
9 10 11 12
13 14 15 16
17 18 19 20
y * y
1 4 9 16
25 36 49 64
81 100 121 144
169 196 225 256
289 324 361 400
=====
[Pike-inspired]: https://www.youtube.com/watch?v=PXoG0WX0r_E