about summary refs log tree commit diff stats
path: root/shell
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2021-07-24 21:35:52 -0700
committerKartik K. Agaram <vc@akkartik.com>2021-07-24 21:35:52 -0700
commit99cc27200fe77f3f3d296b5ee6bbd2641c1473f7 (patch)
treeb4bc898eafc653c3186343037b311882b8e69508 /shell
parent4f60a4a6b25d42af31ac2a3da5ceb6263162304d (diff)
downloadmu-99cc27200fe77f3f3d296b5ee6bbd2641c1473f7.tar.gz
.
Diffstat (limited to 'shell')
-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
   {