summaryrefslogtreecommitdiffstats
path: root/txr.1
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2023-05-28 08:39:56 -0700
committerKaz Kylheku <kaz@kylheku.com>2023-05-28 08:39:56 -0700
commit480f22e6979253a89f1739b96614105e8029ad15 (patch)
tree295193f529e2015b4ddd4bf6345726e9893eb3d9 /txr.1
parent0d9055c632941d3db815474d65fcaa17d9ac4988 (diff)
downloadtxr-480f22e6979253a89f1739b96614105e8029ad15.tar.gz
txr-480f22e6979253a89f1739b96614105e8029ad15.tar.bz2
txr-480f22e6979253a89f1739b96614105e8029ad15.zip
doc: compiler-let syntax
* txr.1: the compiler-let operator has a stricter syntax than shown in the synopsis; it only allows (var init-form) pairs, not single variables.
Diffstat (limited to 'txr.1')
-rw-r--r--txr.110
1 files changed, 9 insertions, 1 deletions
diff --git a/txr.1 b/txr.1
index d49f9d5c..5fb8ef08 100644
--- a/txr.1
+++ b/txr.1
@@ -88283,7 +88283,7 @@ with unused variable checking enabled.
.coNP Operator @ compiler-let
.synb
-.mets (compiler-let >> ({ sym | >> ( sym << init-form )}*) << body-form *)
+.mets (compiler-let >> ({( sym << init-form )}*) << body-form *)
.syne
.desc
The
@@ -88291,6 +88291,14 @@ The
operator strongly resembles
.code let*
but has different semantics, relevant to compilation.
+It also has a stricter syntax in that variables may not
+be symbols without a
+.metn init-form :
+only variable binding specifications of the form
+.mono
+.meti >> (sym << init-form )
+.onom
+are allowed.
Symbols bound using
.code compiler-let