-
Notifications
You must be signed in to change notification settings - Fork 3
/
longterm.term
70 lines (65 loc) · 1.42 KB
/
longterm.term
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
"tests
"paren term thing
abacus(deus magnitude)
abacus deus magnitude
"more paren term things
let it(happen)
let (it happen)
let it:happen
"colons alone in list
((()))
"treat colons as colons even if there's a space
ne ne : ne
(ne (ne ne))
"central feature about terms alone on their lines not being in a list
a
b
c
a b c
"nested colons work the same way
(((a b)))
"escaped chars can occur in the middle of unquoted atoms. Yes it was weird that you did it the other way. The intuition driving this is=> If there are no spaces a person should just be able to remove the quotes and the string should mean the same thing.
h\"ow
"h\"ow"
"
h"ow
"finalize the multiline string's newline only after finding another line matching the indent given. Only newline if the indent goes all the way up.
m "
something
(m "something\n")
"and if there's no newline
m "
something
(m something)
"and what if we be tricky and have it be invisibly different but different in meaning
m "
something
(m something)
"many open parens
-
A(B(C(D(E
N(M(E
- (A (B (C (D E)))) (N (M E))
"trailing colon
a b:
c
a (b c)
a b:c
"non trailing colon
a b :c
a (b c)
"colon chaining
a b:c:d
a (b (c d))
bug
seiosejse
opsefk
iopsdofkpsodkfpsd
kdofk
d (dsfios (Dfiosds(sjdiasjd how how how
nnnnnnnnnnnnnns
sdd
d
sdsfsd
fsdf
sdffdssdf