Implement comparison operators

This commit is contained in:
2024-10-13 12:59:47 +02:00
parent 0850f0a8d6
commit 582040e5d3
19 changed files with 261 additions and 43 deletions

View File

@ -0,0 +1,6 @@
proc main() {
if ((1 + 1) > 2)
printi(3);
else
printi(5);
}

View File

@ -0,0 +1,6 @@
proc main() {
if ((1 + 1) >= (2 + 3))
printi(3);
else
printi(5);
}

View File

@ -0,0 +1,6 @@
proc main() {
if (1 < 2)
printi(3);
else
printi(5);
}

View File

@ -0,0 +1,6 @@
proc main() {
if (2 <= (2 + 1))
printi(3);
else
printi(5);
}

View File

@ -0,0 +1,6 @@
proc main() {
if (1 # 2)
printi(3);
else
printi(5);
}

View File

@ -0,0 +1,9 @@
proc main() {
if (1 # 2) {
printi(3);
printi(7);
} else {
printi(5);
printi(9);
}
}