diff options
| author | nodist <kevin.comas.git@gmail.com> | 2026-06-08 11:38:20 -0400 |
|---|---|---|
| committer | nodist <kevin.comas.git@gmail.com> | 2026-06-08 11:38:20 -0400 |
| commit | fd774948e6ac3506c24e6b87b6ef98403aa85951 (patch) | |
| tree | 8335f5d44694e357a08715c75d05de3964ba2434 /docs/language/index.md | |
| parent | ceb874e83d44a2c3d7c7d167fc8853694538ae53 (diff) | |
add action and remove assigment from namespace
Diffstat (limited to 'docs/language/index.md')
| -rw-r--r-- | docs/language/index.md | 26 |
1 files changed, 21 insertions, 5 deletions
diff --git a/docs/language/index.md b/docs/language/index.md index b63d3e4..a5dce76 100644 --- a/docs/language/index.md +++ b/docs/language/index.md @@ -126,7 +126,7 @@ Arguments are specified with a `[]` at the beginning of the `{}` ## Conditionals -#### Loop `@` +### Loop `@` ```text @ condition { statements } @@ -138,7 +138,23 @@ Arguments are specified with a `[]` at the beginning of the `{}` @.name condition {[args] statements } ``` -#### If `?` +#### ``break` `break .name` + +Stops a loop + +```text +@.a 1 .. 5 {[x] + @.b 1 .. 5 {[y] + ? x = y { `break .a } + } +} +``` + +#### ``continue` `continue .name` + +Move loop to next iteration + +### If `?` ```text ? condition { statements } @@ -148,10 +164,10 @@ Arguments are specified with a `[]` at the beginning of the `{}` { default statements } } -? condition {[arg] arg; .... } +? condition {[args] statements } ``` -#### Match `#` +### Match `#` ```text # match { @@ -161,7 +177,7 @@ Arguments are specified with a `[]` at the beginning of the `{}` } ``` -#### Mutation `^` +### Mutation `^` ```test ^ mutation {[args] statements } |
