Added preliminary loop parsing

Signed-off-by: luccie-cmd <hoedje201@gmail.com>
Signed-off-by: Lorenzo Torres <lorenzo@sagittarius-a.org>
This commit is contained in:
luccie-cmd 2025-12-02 10:38:34 +01:00 committed by Lorenzo Torres
parent eaebcd7bdd
commit 0015c2b81d
4 changed files with 428 additions and 118 deletions

20
test.c
View file

@ -1,5 +1,17 @@
import example.test.idk.idk;
//import example.test.idk.idk;
hello:
goto test;
return 5;
//hello:
//goto test;
//return 5;
// loop(0..15) |i| {
// printf("%d\n", i);
// }
return 6;
loop (0.., list) |i, v| {
printf("%d\n", i);
}
return 7;