Implement bitwise operators
The code in this pull request adds implementations for the following bitwise operators:
- And
- Or
- Xor
- Not
- Bit shift left
- Bit shift right
Note that typically used '^' character for xor currently clashes with the power operator in numbat, so I have used the more cumbersome to type, but unique ⨁ character for performing the xor operation.
Note that typically used '^' character for xor currently clashes with the power operator in numbat, so I have used the more cumbersome to type, but unique ⨁ character for performing the xor operation.
That sounds like a reasonable solution. I think it would be good, having an xor keyword in addition, to make it less cumbersome.
Updated. I'm not sure why all the builds are all failing now though? I'm able to build it just fine on my workstation.
Thank you. I think the failing builds are related to #752. It should be an easy fix, which I can look into tonight.
I fixed the error, added documentation and updated the add-in.
I also changed the tokenizer implementation slightly to use the keywords map instead of custom parsing for the xor keyword.