A repeat statement - loops a block N times.
More...
#include <ast.h>
|
|
std::string | collection_var |
| | Name of the int variable holding the count.
|
| |
|
std::string | iterator_var |
| | Name of the loop index variable (0-based).
|
| |
|
std::vector< StmtPtr > | body |
| | Statements inside the loop body.
|
| |
|
std::optional< ExprPtr > | when_clause |
| | Optional condition guarding the whole loop.
|
| |
|
int | line |
| | 1-based source line where this node begins.
|
| |
|
int | column |
| | 1-based source column where this node begins.
|
| |
A repeat statement - loops a block N times.
Example:
repeat count as i
mkdir "module_{i}"
end