diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2021-07-24 21:02:34 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2021-07-24 21:10:37 -0700 |
commit | 4f60a4a6b25d42af31ac2a3da5ceb6263162304d (patch) | |
tree | a6d34ac00aa2c7e92807235cd54dc5e3f4a968c3 /shell | |
parent | 4d3c9f6b1ab2e2879c6eed37eda651c522780e6a (diff) | |
download | mu-4f60a4a6b25d42af31ac2a3da5ceb6263162304d.tar.gz |
.
Diffstat (limited to 'shell')
-rw-r--r-- | shell/infix.mu | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/shell/infix.mu b/shell/infix.mu index 3f88cabf..7df3d01b 100644 --- a/shell/infix.mu +++ b/shell/infix.mu @@ -89,8 +89,8 @@ fn transform-infix-2 _x-ah: (addr handle cell), trace: (addr trace), at-head-of- var first-ah/ecx: (addr handle cell) <- get x, left { var first/eax: (addr cell) <- lookup *first-ah - var infix?/eax: boolean <- operator-symbol? first - compare infix?, 0/false + var operator?/eax: boolean <- operator-symbol? first + compare operator?, 0/false } break-if-= var rest-ah/eax: (addr handle cell) <- get x, right @@ -127,8 +127,8 @@ fn transform-infix-2 _x-ah: (addr handle cell), trace: (addr trace), at-head-of- var first-ah/ecx: (addr handle cell) <- get x, left var rest-ah/esi: (addr handle cell) <- get x, right var first/eax: (addr cell) <- lookup *first-ah - var first-infix?/eax: boolean <- operator-symbol? first - compare first-infix?, 0/false + var first-operator?/eax: boolean <- operator-symbol? first + compare first-operator?, 0/false break-if-= var rest/eax: (addr cell) <- lookup *rest-ah { @@ -452,7 +452,6 @@ fn operator-symbol? _x: (addr cell) -> _/eax: boolean { 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; here we treat it as a symbol compare g, 0x25/percent |