chore(merge): master çakışmaları çözüldü — HEAD opcode isimleri ve Seçenek A korundu

master'daki BIT_AND/BIT_OR/BIT_NOT → BAND/BOR/BNOT (bizim adlandırma).
master'daki Seçenek B (main'e inject) → Seçenek A (gerçek global slot) korundu.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
saqut 2026-06-20 15:22:34 +03:00
commit ec61290e68
1 changed files with 25 additions and 0 deletions

25
examples/test_bitwise.sqt Normal file
View File

@ -0,0 +1,25 @@
int global_x = 10;
int global_y = 3;
int main() {
// global değişken testi (#38)
print(global_x);
print(global_y);
// bitsel AND, OR, SHL, SHR (#45)
int a = 12;
int b = 10;
print(a & b);
print(a | b);
print(1 << 3);
print(16 >> 2);
// unary ~ ve !
int c = 0;
print(!c);
int d = 5;
print(!d);
print(~0);
return 0;
}