Skip to content

Commit

Permalink
docs: Update README.md section on loops
Browse files Browse the repository at this point in the history
  • Loading branch information
Yag000 committed Aug 14, 2023
1 parent 99f2265 commit 01522e8
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,15 @@ if (a == 1) {

#### Loops

For now loops are not supported. To achieve the same result as a loop, use recursion. In the future loops might be supported.
While loops have been implemented, but for now keywords such as `break` and `continue` have not yet been implemented.

```monkey
let a = 1;
while (a < 4) {
puts(a);
let a = a + 1;
}
```

### Comments

Expand Down

0 comments on commit 01522e8

Please sign in to comment.