diff options
| author | Mel <mel@rnrd.eu> | 2026-05-28 00:29:53 +0200 |
|---|---|---|
| committer | Mel <mel@rnrd.eu> | 2026-05-28 00:29:53 +0200 |
| commit | 7db79f43b431b94d525308699a87a3daeff31d92 (patch) | |
| tree | 7b6a6d10dc064c5ae54791dc1b65c8d42233b97a /boot/tree.c | |
| parent | ec2029cba68b1d25e1e1119d37318c1b0c581a83 (diff) | |
| download | catskill-7db79f43b431b94d525308699a87a3daeff31d92.tar.zst catskill-7db79f43b431b94d525308699a87a3daeff31d92.zip | |
Split endless and while loops into `loop` and `while`
Signed-off-by: Mel <mel@rnrd.eu>
Diffstat (limited to 'boot/tree.c')
| -rw-r--r-- | boot/tree.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/boot/tree.c b/boot/tree.c index 8c00c53..4bac27e 100644 --- a/boot/tree.c +++ b/boot/tree.c @@ -981,8 +981,8 @@ enum Tree_Statement_Loop_Style TREE_STATEMENT_LOOP_STYLE_NONE, TREE_STATEMENT_LOOP_STYLE_C, // for i int = 0; i < 10; ++i {} TREE_STATEMENT_LOOP_STYLE_FOR_EACH, // for x Obj = list {} - TREE_STATEMENT_LOOP_STYLE_WHILE, // while true {} - TREE_STATEMENT_LOOP_STYLE_ENDLESS, // while {} + TREE_STATEMENT_LOOP_STYLE_WHILE, // while cond {} + TREE_STATEMENT_LOOP_STYLE_ENDLESS, // loop {} }; // stands for both `for` and `while` loops. |
