Bagolly / WHISKR-A

WHISKR Arithmetics
1 stars 0 forks source link

First iteration of binary operators added #11

Closed Bagolly closed 1 year ago

Bagolly commented 1 year ago

Binary operators

The first implementation of binary operators have been added to WHISKR.

The available operators currently include:

All operators have passed basic testing successfully, but might not be bug-free in certain situations.

Usage

Limitations & Warnings

While binary operations in C# are permitted on any integral data type (byte, int, long, etc.) they will always be cast to long during parsing, except for right shifting, where the shift value will be cast to int. (Cannot shift a 64-bit number by another 64-bit number).

Mimicicax commented 1 year ago

Cannot shift a 64-bit number by another 64-bit number

A 64-bit number can be shifted by another 64-bit number, as long as its value does not exceed 63