Kipper
Kipper copied to clipboard
[Feature] Implement bitwise operators `<<`, `>>`, `>>>`, `~`, `^`, `|` and `&`
Is there an existing proposal for this?
- [X] I have searched the existing issues
This feature does not exist in the latest version
- [X] I am using the latest version
Proposal
Implement the following bitwise operators in the Kipper language:
- Zero Fill Left Bit-Shift
<<
- Signed Right Bit-Shift
>>
- Zero Fill Bit-Shift
>>>
- Bitwise NOT
~
- Bitwise XOR
^
- Bitwise OR
|
- Bitwise AND
&
Exact behaviour / changes you want
- [ ] Implement all given bitwise operators in the Kipper language.
- [ ] Implement type-checking for the operations.