From 72cb23d7c14ae91e8a1c5aeb96f5b5e0e712970e Mon Sep 17 00:00:00 2001 From: "Mr.UNIX" Date: Tue, 9 Jul 2024 11:57:13 +0100 Subject: [PATCH] Docs: add a section for "For loops" in README.md --- README.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 8e1c7db..aa86326 100644 --- a/README.md +++ b/README.md @@ -28,6 +28,12 @@ while x < 42 { // do something }; ``` +#### For loops +```c +for define i = 0; i < 20; i++ { + // do something +}; +``` ## Roadmap - [x] Lexer @@ -37,7 +43,7 @@ while x < 42 { - [x] Functions - [x] Conditions - [x] While loops -- [ ] For loops +- [x] For loops - [ ] Arrays - [ ] Strings - [ ] Hashmaps