New bitwise XOR operator specified by symbol ^ (caret). Iterator dereference is now done by prefixed * (star)

This commit is contained in:
2025-01-03 07:31:45 +01:00
parent 5ab6876ea1
commit 760c1ee6da
10 changed files with 71 additions and 20 deletions
+3
View File
@@ -28,6 +28,9 @@ func TestOperator(t *testing.T) {
/* 15 */ {`0o10`, int64(8), nil},
/* 16 */ {`0b10`, int64(2), nil},
/* 17 */ {`~true`, nil, `[1:2] prefix/postfix operator "~" do not support operand 'true' [bool]`},
/* 18 */ {`1^2`, int64(3), nil},
/* 19 */ {`3^2`, int64(1), nil},
/* 19 */ {`a=1; a^=2`, int64(3), nil},
}
// t.Setenv("EXPR_PATH", ".")