From ecd41181760001b1f400aa74c2114425b398a56e Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Sun, 28 May 2023 08:39:56 -0700 Subject: 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. --- txr.1 | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3