1
0
mirror of https://github.com/KarolS/millfork.git synced 2026-04-20 18:16:35 +00:00

Implicit ranges in for loops are dumb, remove

This commit is contained in:
Karol Stasiak
2018-12-22 01:30:54 +01:00
parent 84c3406dc7
commit acaaa5bdfe
4 changed files with 5 additions and 74 deletions
+1 -5
View File
@@ -257,7 +257,7 @@ Syntax:
```
for <variable> , <start> , <direction> , <end> {
}
for <variable> : <array,enum type or expression> {
for <variable> : <enum type> {
}
for <variable> : [ <comma separated expressions> ] {
}
@@ -282,12 +282,8 @@ for <variable> : [ <comma separated expressions> ] {
There is no `paralleldownto`, because it would do the same as `parallelto`.
* `<array>` traverse indices of an array, from 0 to length1
* `<enum type>` traverse enum constants of given type, in arbitrary order
* `<expression>` traverse from 0 to `expression` 1
* `<comma separated expressions>` traverse every value in the list
### `break` and `continue` statements