about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--shell/infix.mu3
1 files changed, 3 insertions, 0 deletions
diff --git a/shell/infix.mu b/shell/infix.mu
index 7df3d01b..41e8fa5d 100644
--- a/shell/infix.mu
+++ b/shell/infix.mu
@@ -406,6 +406,9 @@ fn test-infix {
 
 # helpers
 
+# return true if x is composed entirely of operator graphemes, optionally prefixed with some '$'s
+# some operator, some non-operator => pre-tokenized symbol; return false
+# all '$'s => return false
 fn operator-symbol? _x: (addr cell) -> _/eax: boolean {
   var x/esi: (addr cell) <- copy _x
   {
6-17 11:20:53 -0700 committer Kartik Agaram <vc@akkartik.com> 2018-06-17 15:57:37 -0700 4262 - literal 'null'' href='/akkartik/mu/commit/022constant.cc?h=hlt&id=01ce563dfe3e6cf58337708b9dbb60a8a99fa0f2'>01ce563d ^
4a943d4e ^










dd660682 ^









01ce563d ^


92a3d082 ^


4a943d4e ^










01ce563d ^









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