feat(furc): introduce while loop statement

Refs: #2
This commit is contained in:
2026-06-12 23:10:26 +02:00
parent 97c01bc96c
commit 767970c69b
11 changed files with 151 additions and 24 deletions
+5 -9
View File
@@ -11,16 +11,12 @@ int main(void) {
try {
std::string programStr = R"(
func main() {
x = 5;
x -= 3;
if (x < 3) {
y = x * 2;
w = y;
} else {
y = x - 3;
x = 0;
y = 10;
z = 1;
while (x < y) {
x = x + z;
}
w = x - y;
z = x + y;
}
)";
furc::front::parser parser("<TEMP>", programStr);