diff options
Diffstat (limited to 'docs/language')
| -rw-r--r-- | docs/language/index.md | 26 | ||||
| -rw-r--r-- | docs/language/operators.md | 6 |
2 files changed, 25 insertions, 7 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 } diff --git a/docs/language/operators.md b/docs/language/operators.md index dbf17ea..183b2d3 100644 --- a/docs/language/operators.md +++ b/docs/language/operators.md @@ -8,9 +8,11 @@ ## Cast `$` -## `log +## ``log` -If no `File` is specified the output is send to `stdout` +Configurable logger, output format and destination can be changed + +## ``debugger` ## ``format` |
