about summary refs log tree commit diff stats
path: root/shell/infix.mu
diff options
context:
space:
mode:
Diffstat (limited to 'shell/infix.mu')
-rw-r--r--shell/infix.mu14
1 files changed, 3 insertions, 11 deletions
diff --git a/shell/infix.mu b/shell/infix.mu
index a0e81ff2..e7982d0e 100644
--- a/shell/infix.mu
+++ b/shell/infix.mu
@@ -247,6 +247,8 @@ fn test-infix {
   check-infix "abc", "abc", "F - test-infix/regular-symbol"
   check-infix "-3", "-3", "F - test-infix/negative-integer-literal"
   check-infix "[a b+c]", "[a b+c]", "F - test-infix/string-literal"
+  check-infix "$", "$", "F - test-infix/dollar-sym"
+  check-infix "$$", "$$", "F - test-infix/dollar-sym-2"
   check-infix "$a", "$a", "F - test-infix/dollar-var"
   check-infix "$+", "$+", "F - test-infix/dollar-operator"
   check-infix "(+)", "+", "F - test-infix/operator-without-args"
@@ -316,19 +318,9 @@ fn operator-symbol? _x: (addr cell) -> _/eax: boolean {
   return result
 }
 
-fn non-operator-grapheme? g: grapheme -> _/eax: boolean {
-  var operator?/eax: boolean <- operator-grapheme? g
-  compare operator?, 0/false
-  {
-    break-if-=
-    return 0/false
-  }
-  return 1/true
-}
-
 # just a short list of operator graphemes for now
 fn operator-grapheme? g: grapheme -> _/eax: boolean {
-  # '$' is special and can be in either a symbol or operator
+  # '$' is special and can be in either a symbol or operator; here we treat it as a symbol
   compare g, 0x25/percent
   {
     break-if-!=
483122b68f633119e1977cc7618'>^
8d20e92 ^
d394fd1 ^
0c2ede5 ^

475b697 ^
0c2ede5 ^
56b84d3 ^
b0bf09b ^
513e8aa ^
cef784b ^
16c3f0a ^
0c2ede5 ^
072bc26 ^
8d20e92 ^
0c2ede5 ^
072bc26 ^
3836d24 ^
56b84d3 ^
2be985f ^
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
                               

         
                                                                     
                                                                  
                                                                          
                                                     
                                                                          
                                                 

                                                                           


                                                                      
                                     
                                                                  

                                                                                   
                                                                         
                                         
                                            
                                                                         
                                              
                                    
                                                                      
                                                              
                                                                                        
                                          
                                                                       
                                           
 
 
                                                                                                
 ^
b0a216f5 ^
76612b05 ^
a082b66a ^
b0a216f5 ^
e9e4b4ff ^





612b8b8b ^
e9e4b4ff ^
5fca2a0b ^
f473be92 ^
5fca2a0b ^
9cf43c17 ^
5fca2a0b ^

c7720fff ^


a6836d5d ^

c7720fff ^
8d21b83c ^


e9e4b4ff ^
25a4162d ^
e9e4b4ff ^
0c2c782d ^
636d9393 ^
b0a216f5 ^
c6afc196 ^

c0d63e78 ^


c6afc196 ^
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
80
81
82
83
84
85
86
87
88
89