Implemented boolean operators

This commit is contained in:
2024-07-08 13:38:44 +02:00
parent ee16774fe7
commit b5bb291e47
9 changed files with 198 additions and 24 deletions

View File

@ -0,0 +1,29 @@
main() {
x := 0
if x != x || x != x {
exit(1)
}
if x != x || x != x || x != x {
exit(1)
}
if x == x || x != x {
if x != x || x == x {
if x == x || x != x || x != x {
if x != x || x == x || x != x {
if x != x || x != x || x == x {
exit(0)
}
}
}
}
}
exit(1)
}
exit(x) {
syscall(60, x)
}