summaryrefslogtreecommitdiff
path: root/docs/syntax.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/syntax.md')
-rw-r--r--docs/syntax.md26
1 files changed, 12 insertions, 14 deletions
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
+```