Skip to content

Commit 6fc4d1f

Browse files
committed
:blackbird:
1 parent e49beaa commit 6fc4d1f

File tree

16 files changed

+540
-229
lines changed

16 files changed

+540
-229
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@
22

33
## 0.8.0.0 -- Unreleased
44

5-
* New builtin: `\lastValue`, `\unmul`.
5+
* New builtin: `\lastValue`, `\shortestValue`, `\unmul`, `\unsnoc0`.
66
* A new mode `last` is added. It outputs the last possible result. You can switch to this mode by the `-t` flag in the command line or the `\Mode last` command in the REPL.
77
* Now input can have leading and trailing spaces. The interpreter will trim them when parsing.
88
* Now Nekomata can be built with GHC 9.10.1, thanks to an update of the `haskeline` package.
9+
* Fixed a bug in the REPL. Now the REPL can correctly handle strings with whitespaces.
910

1011
### Breaking changes
1112

Nekomata.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ executable Nekomata
122122
, containers ^>=0.7
123123
, haskeline ^>=0.8
124124
, Nekomata
125-
, optparse-applicative ^>=0.18
125+
, optparse-applicative ^>=0.19
126126

127127
-- Directories containing source files.
128128
hs-source-dirs: app

analysis/corpus.txt

Lines changed: 20 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@ u∕u
2222
pƆᵖ≤
2323
ᶦP
2424
ᵃp=
25-
Ƃ£E∫Ɔž
25+
Ƃ£E∫
2626
pZ‼l
2727
Ä$Ç$→/
28-
Äřŋ∫çƆž
28+
Äřŋ∫çẐ
2929
ÄØ$ᵑ{ᵉçt?}Ø=
30-
3$ŧ←∫Ɔž
30+
3$ŧ←∫
3131
RtƊjo1cɗ
3232
ᵒ-¬
3333
ᵐĦḞ
@@ -71,12 +71,14 @@ sNP
7171
ᵐ∙
7272
ᵐ*Ŝ
7373
Ṁ←ɔõhĦ+
74+
~Ɗƶ
7475
ᵒ%ᵐ∏¬x∙
7576
ᶠ{$~¦}∑
7677
→rF:E∑
7778
rG1Ĩ
7879
3D←P∑
7980
,o;↔ᶻÐlµ
81+
oʷ{tiN}µ
8082
ƂYṀ
8183
oᶜ↔=
8284
ᵑᵉř^
@@ -138,6 +140,7 @@ xŘ↔
138140
çM-_∑
139141
u∕u#
140142
Ţ~Ƶ
143+
ᶦ{ZƊ∏
141144
Ž-Q
142145
Ň6*ƊajĭÐɗ$Ĩ
143146
Ţ≡2=
@@ -226,7 +229,7 @@ x:→&xï@Ŝ
226229
ᵏ{*+$/1%≡
227230
@ᵃ{x-¬∑}ä-
228231
ƒo↔
229-
ŢṂaş
232+
ŢṂṩ
230233
ᵐ{į→ŋ+}≡H
231234
Cᶦ{ᵈsf¡C
232235
ᴶ{ᵉhl=
@@ -255,7 +258,7 @@ O↕ᶠz$L
255258
į3ƂÐ3~ᵑᵐç3~ᵑçaᵐᶜ{0*}∑ƶ
256259
ᵒ{ᵃƂv≈Ä+ç4ŗd
257260
0UU$ᵑ{4*4ᵐ+↔3Ř;ᶻᶻ,j
258-
ḞŤxqNᵖ{@Ťů}aşᵉhl→Ð
261+
ḞŤxqNᵖ{@Ťů}ṩᵉhl→Ð
259262
,Ţ←µ
260263
ᵋ∩Ŭᵃ#/
261264
ˡ{Qƥ}Ƃ#←
@@ -276,7 +279,7 @@ R∑R∑
276279
Ë¢BÖ1Ĩ
277280
7Ƃ89\55:ŗÐçxŘ~?ŋ
278281
Ä←_∏←_ä
279-
Oᵖᵐ{Ťđṁ<}
282+
Oᵖᵐ{Ťđṁ<}
280283
Ɗ¢dÐ√
281284
"-_"ŇŧĉŁ'=ᵚcjt
282285
ᵉpttᵋ+*:,,$Ĉ
@@ -289,7 +292,7 @@ xᵐĦ*Ḟ
289292
+ᵚ%-±ç1Ĩ
290293
Ë:ᵒ&Þ←A±
291294
ƒƵ
292-
Ťᵐ↕∫Ɔž∑≤
295+
Ťᵐ↕∫∑≤
293296
~ᵉʸ{ˣ@j,u}∕~
294297
xᵒĈ:ʸ{ˣᵐ∙+±}≈j∑
295298
ᵒ{ᵋ∩?Ø?=
@@ -312,7 +315,7 @@ Jĭ?∑hÅ
312315
ʷ∑→ᵉbD
313316
ᶦ{Ƃ2ŗɔƃ3M
314317
ĎSᵉti¦
315-
ᴶ{x:ᵒ≈>~}#
318+
ᴶ{x:ᵒ≈>~}#
316319
→r$ÇƆ/←ŗ0ɔ$ᵑ∆
317320
1D∑
318321
rjŢ
@@ -364,7 +367,7 @@ R~3DᵉlhÖ*ž
364367
Ƃ;↔=#Ë=
365368
↕x-±→Ħ-ž
366369
2ᵚ~ᵖ{:∫PÄx--v%Ţ≡¿$L
367-
ᵐįŋᵖ{∫ŤlƆž≥}→ᵐɗH
370+
ᵐįŋᵖ{∫ŤlẐ≥}→ᵐɗH
368371
R*+
369372
oS5Lũᵖ{∑=
370373
Ţᵉu#c∑
@@ -373,6 +376,12 @@ Zʷ{4¦}→8¦
373376
ŧĉᵐzç0ɔYṀƵ¿ᵗ{qCᵈƆM→>N
374377
řʷ{ĕᵈĕ+coũ
375378
3$ŧY∑,¬çY3<
376-
J:ᵐ↔=
377-
Äᵐ{įŋ∫}∫Ɔžᵚ
379+
J:ᵐ↔=
380+
Äᵐ{įŋ∫}∫Ẑᵚ
378381
Ňᵗ{ƂJŁ≡
382+
p↔:CĨ→0I→T↔aj
383+
"Hᶜ"∏
384+
J$RᵒĈᵐṁƶṩ#
385+
3~Ë:3*ÐᵚŘđ↔*đ-a∑
386+
ʷ{;;$ƀ=tŁ¿,}ṩ
387+
qᵐ~ů#Å

analysis/freq_1gram.txt

Lines changed: 59 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -1,141 +1,145 @@
1-
{ : 91
2-
= : 60
3-
$ : 59
4-
: : 54
1+
{ : 94
2+
$ : 61
3+
= : 61
4+
: : 56
55
+ : 49
6-
∑ : 42
7-
ᵐ : 41
8-
→ : 38
9-
* : 34
10-
R : 34
6+
ᵐ : 43
7+
∑ : 43
8+
→ : 40
9+
* : 36
10+
R : 35
11+
} : 33
1112
x : 32
12-
} : 31
13+
- : 31
1314
← : 30
14-
- : 30
15-
o : 27
15+
o : 28
16+
j : 26
17+
↔ : 26
1618
ᵉ : 25
1719
1 : 25
20+
3 : 25
1821
ç : 25
19-
j : 25
22+
, : 24
23+
# : 24
2024
↕ : 24
2125
2 : 24
22-
, : 23
23-
3 : 23
26+
~ : 24
2427
Ť : 23
25-
: 23
26-
# : 22
28+
: 21
29+
đ : 21
2730
ᵖ : 21
28-
~ : 21
29-
ᵒ : 20
3031
S : 19
3132
u : 19
32-
đ : 19
33-
a : 19
3433
ĭ : 18
35-
Ɔ : 18
34+
p : 18
3635
Ƃ : 17
3736
l : 17
38-
p : 17
3937
∫ : 17
38+
Z : 17
39+
t : 17
40+
Ɗ : 17
4041
ĉ : 17
42+
Ð : 17
4143
L : 17
42-
ž : 16
43-
Z : 16
44-
Ð : 16
44+
" : 16
45+
; : 16
46+
a : 16
47+
ʷ : 15
48+
q : 15
4549
≡ : 15
46-
t : 15
47-
Ɗ : 15
4850
Ň : 15
4951
Ṁ : 15
5052
∙ : 15
51-
" : 14
53+
: 14
5254
< : 14
53-
q : 14
54-
; : 14
55-
ᶦ : 13
56-
ʷ : 13
55+
Ë : 14
56+
J : 14
5757
ũ : 13
5858
Ţ : 13
5959
ᵃ : 13
60-
Ë : 13
6160
± : 13
62-
J : 13
61+
: 13
6362
½ : 12
6463
ᶻ : 12
64+
Ɔ : 12
6565
≥ : 12
6666
ŋ : 12
6767
ᵑ : 12
6868
? : 12
6969
c : 12
7070
@ : 12
71+
N : 12
7172
∆ : 12
7273
_ : 12
7374
ˡ : 11
75+
ᵚ : 11
7476
Q : 11
7577
r : 11
7678
% : 11
7779
¦ : 11
78-
N : 11
7980
ᵗ : 11
80-
∏ : 11
81+
i : 11
82+
C : 11
8183
z : 11
82-
ᵚ : 10
84+
¿ : 11
85+
ᶜ : 10
8386
¬ : 10
87+
H : 10
8488
E : 10
8589
ᶠ : 10
90+
ž : 10
8691
h : 10
8792
4 : 10
8893
O : 10
89-
i : 10
90-
C : 10
91-
¿ : 10
9294
ᵈ : 10
9395
P : 9
94-
ᶜ : 9
9596
Ƶ : 9
9697
f : 9
97-
H : 9
98+
ů : 9
9899
Ä : 9
99100
ɗ : 9
100101
Ħ : 9
101102
ŗ : 9
102103
≈ : 9
103104
× : 8
104-
ů : 8
105105
∕ : 8
106106
£ : 8
107107
‼ : 8
108108
Ø : 8
109109
ŧ : 8
110+
Ĉ : 8
110111
ƒ : 8
111112
ĕ : 8
113+
ṁ : 8
114+
Ř : 8
112115
v : 8
113116
į : 8
117+
0 : 8
114118
ᴶ : 7
115119
/ : 7
116120
Ĭ : 7
117121
õ : 7
118-
ş : 7
119-
Ĉ : 7
120122
√ : 7
123+
Å : 7
124+
µ : 7
121125
ɔ : 7
122-
: 7
126+
Ĩ : 7
123127
ä : 7
124128
5 : 7
125129
> : 7
126-
Ř : 7
127-
0 : 7
128130
¢ : 7
131+
ṩ : 7
132+
Ł : 6
133+
ƀ : 6
134+
I : 6
129135
ᵏ : 6
130136
Ö : 6
131137
ƃ : 6
132138
≤ : 6
139+
Ẑ : 6
133140
ř : 6
134141
Y : 6
135-
Å : 6
136-
µ : 6
137142
Ŝ : 6
138-
Ĩ : 6
139143
D : 6
140144
M : 6
141145
8 : 6
@@ -144,16 +148,14 @@ M : 6
144148
B : 6
145149
Ṗ : 6
146150
b : 6
147-
Ł : 5
148-
ƀ : 5
149-
I : 5
150151
y : 5
151152
d : 5
152153
Ç : 5
153154
ʳ : 5
154155
G : 5
155156
ʲ : 5
156157
s : 5
158+
ƶ : 5
157159
7 : 5
158160
U : 5
159161
ᵋ : 5
@@ -163,6 +165,7 @@ A : 5
163165
Ḟ : 4
164166
k : 4
165167
F : 4
168+
T : 4
166169
ƥ : 4
167170
X : 4
168171
÷ : 4
@@ -176,8 +179,6 @@ X : 4
176179
Ṃ : 3
177180
ḟ : 3
178181
ŝ : 3
179-
T : 3
180-
ƶ : 3
181182
ʰ : 3
182183
≠ : 3
183184
ï : 3
@@ -187,6 +188,7 @@ m : 3
187188
' : 3
188189
Ĝ : 2
189190
Ƥ : 2
191+
ş : 2
190192
g : 2
191193
ɱ : 2
192194
^ : 2

0 commit comments

Comments
 (0)