summaryrefslogtreecommitdiff
path: root/docs/language/index.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/language/index.md')
-rw-r--r--docs/language/index.md26
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 }