~starkingdoms/starkingdoms

ref: 5ccd4fb282fe3858f302b284a4d985d590ac79a4 starkingdoms/crates/kabel/test/runtime/arithmetic_run.kab -rw-r--r-- 240 bytes
5ccd4fb2ghostly_zsh feat: removed replicon + clientbound messages implemented, but untested 10 days ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
print 2+2; // 4
print 2+2*3; // 8
print 2 - 2; // 0
print 2.1+2.3*3; // 9
print 2 / 4; // 0.5
print 5 % 4; // 1
print 2 / -4; // -0.5
print 5 * 4 / 2; // 10
print 4 * 5 / 2; // 10

print 3 & 8 + 4; // 0
print 4 ^ 7; // 3
print 8 | 2; // 10