summaryrefslogtreecommitdiff
path: root/docs/syntax.md
diff options
context:
space:
mode:
authornodist <kevin.comas.git@gmail.com>2026-08-27 20:35:51 -0400
committernodist <kevin.comas.git@gmail.com>2026-08-27 20:35:51 -0400
commit85773659adcced87804c6304fb71c9ea33ae43eb (patch)
treed9dde3bf623c104989a1d9d1b7aba1348c8ce80b /docs/syntax.md
parentfd6892ff64b102bd494da0b1eea3113e758e6995 (diff)
all types have log opHEADmain
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
+```