diff options
| -rw-r--r-- | docs/containers.md | 70 | ||||
| -rw-r--r-- | docs/coroutines.md | 24 | ||||
| -rw-r--r-- | docs/syntax.md | 26 | ||||
| -rw-r--r-- | docs/values.md | 12 |
4 files changed, 116 insertions, 16 deletions
diff --git a/docs/containers.md b/docs/containers.md index 7e9d97a..097744e 100644 --- a/docs/containers.md +++ b/docs/containers.md @@ -4,24 +4,90 @@ ## String +### Operators + +* ``log` + +### `@` + ## Array +### Operators + +* ``log` + +### `@` + +### De-structuring + ## Tuple +### Operators + +* ``log` + +### De-structuring + ## Table +### Operators + +* ``log` + +### De-structuring + ## Map +### Operators + +* ``log` + ## Set +### Operators + +* ``log` + ## Union +### Operators + +* ``log` + +### `#` + ## Any +### Operators + +* ``log` + +### `#` + ## Native +### Operators + +* ``log` + +## Module + +### Operators + +* ``export` + +* ``import` + +* ``log` + +### De-structuring + ## Namespace -### ``import +### Operators + +* ``use` + +* ``log` -### ``export +### De-structuring diff --git a/docs/coroutines.md b/docs/coroutines.md index 543f539..06f2056 100644 --- a/docs/coroutines.md +++ b/docs/coroutines.md @@ -4,4 +4,28 @@ ## Lambdas +### Operators + +* ``return + +* ``sync + +* ``async + +* ``await + +* ``log` + ## Generators + +### Operators + +* ``init + +* ``yield + +* ``done + +* ``next + +* ``log` diff --git a/docs/syntax.md b/docs/syntax.md index 08f87a4..8be80a6 100644 --- a/docs/syntax.md +++ b/docs/syntax.md @@ -100,20 +100,18 @@ ## Lambdas ``{[arguments] ... }` -### ``return - -### ``sync - -### ``async - -### ``await +```text +add : `{[I64 x; I64 y] x + y } +add `sync (1; 2) +``` ## Generators `^{[arguments] ... }` -### ``init - -### ``yield - -### ``done - -### ``next +```text +gen : ^{[I64 n] + @ 1 .. n {[x] `yield x } + `stop +} +it : gen `init 10 +`next it +``` diff --git a/docs/values.md b/docs/values.md index da96b32..c25be77 100644 --- a/docs/values.md +++ b/docs/values.md @@ -18,6 +18,12 @@ * `|` +* ``true` + +* ``false` + +* ``log` + ## Numbers ### Integer @@ -80,6 +86,8 @@ * ``>>` +* ``log` + ### Float * `F32` @@ -116,8 +124,12 @@ * `%` +* ``log` + ## Characters * `Char` ### Operators + +* ``log` |
