We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi
I like this prj and want to use it for our iot applications
Our user cases involve bitwise operations which I am not sure are supported or not.
Regards
Ygl
The text was updated successfully, but these errors were encountered:
Relevant C# documentation: https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/operators/bitwise-and-shift-operators
It seems that they're not:
var target = new Interpreter(); var x = 0b_1100_1001_0000_0000_0000_0000_0001_0001; target.SetVariable("x", x); // operators not implemented Assert.Equal(~x, target.Eval<uint>("~x")); Assert.Equal(x >> 4, target.Eval<uint>("x >> 4")); Assert.Equal(x << 4, target.Eval<uint>("x << 4")); // failure to resolve the operator Assert.Equal(x & 4, target.Eval<uint>("x & 4")); Assert.Equal(x | 4, target.Eval<uint>("x | 4")); Assert.Equal(x ^ 4, target.Eval<uint>("x ^ 4"));
Sorry, something went wrong.
@ygl-rg do you have some example of the kind of operations you're likely to encounter?
Added support of the unary bitwise complement operator (~).
2b74bad
Added support of the shift operators (>> and <<). Fix dynamicexpresso#206
Improve bitwise operations support (#208)
23fd9c2
Added support of the unary bitwise complement operator (~). Added support of the shift operators (>> and <<). Fix #206
metoule
Successfully merging a pull request may close this issue.
Hi
I like this prj and want to use it for our iot applications
Our user cases involve bitwise operations which I am not sure are supported or not.
Regards
Ygl
The text was updated successfully, but these errors were encountered: