diff options
| author | Kai Gunger <kgunger12@gmail.com> | 2026-07-18 18:32:09 -0400 |
|---|---|---|
| committer | Kai Gunger <kgunger12@gmail.com> | 2026-07-18 18:32:09 -0400 |
| commit | 9a216e4f48eb0e8738e4e85b33407c179ca1e37f (patch) | |
| tree | d452a01fe4f8e1f14841af487d3eefa441ddc272 /tnslc/compile/function.tnsl | |
| parent | adbb54fc81905ae43f8c2b3ee11aff2eed30e653 (diff) | |
[tnslc] Fixes for bitwise ops
Diffstat (limited to 'tnslc/compile/function.tnsl')
| -rw-r--r-- | tnslc/compile/function.tnsl | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tnslc/compile/function.tnsl b/tnslc/compile/function.tnsl index c88654a..bc64156 100644 --- a/tnslc/compile/function.tnsl +++ b/tnslc/compile/function.tnsl @@ -1750,6 +1750,14 @@ struct Function { lhs.or(s`.cb, ~rhs) ;; else if (utils.strcmp(n`.data, "^\0") == true) lhs.xor(s`.cb, ~rhs) + ;; else if (utils.strcmp(n`.data, ">>\0") == true) + lhs.shr(s`.cb, ~rhs) + ;; else if (utils.strcmp(n`.data, "<<\0") == true) + lhs.shl(s`.cb, ~rhs) + ;; else + _printf("COMPILER ERR: NOT IMPL '\0") + _printf(n`.data) + _printf("'\n\0") ;/ s`.free_after(~lhs, true) |