summaryrefslogtreecommitdiffstats
path: root/txr.1
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2011-12-07 08:04:54 -0800
committerKaz Kylheku <kaz@kylheku.com>2011-12-07 08:04:54 -0800
commit7c413d6aa3ab8e0ba59c5ab243effeb6cd9b68d1 (patch)
treea548c3b4bc99fd71ead2c33c7ecf2f6e479b0938 /txr.1
parent7bf14da873daab72ade5de8235ceee4cdedf5a16 (diff)
downloadtxr-7c413d6aa3ab8e0ba59c5ab243effeb6cd9b68d1.tar.gz
txr-7c413d6aa3ab8e0ba59c5ab243effeb6cd9b68d1.tar.bz2
txr-7c413d6aa3ab8e0ba59c5ab243effeb6cd9b68d1.zip
* eval.c (progn_s): New symbol variable.
(op_progn): New static function. (eval_init): Initialize new variable, register progn operator. * txr.1: progn documented.
Diffstat (limited to 'txr.1')
-rw-r--r--txr.116
1 files changed, 16 insertions, 0 deletions
diff --git a/txr.1 b/txr.1
index bab0f4c5..f4bc42d9 100644
--- a/txr.1
+++ b/txr.1
@@ -4322,6 +4322,22 @@ alternative1 | alternative2 | ... | alternativeN
Multiple syntactic variations allowed in one place are
indicated as bar-separated items.
+.SS Operator progn
+
+.TP
+Syntax:
+(progn <form>*)
+
+.TP
+Description
+
+The progn operator evaluates forms in order, and returns the value
+of the last form. The return value of (progn) is nil.
+
+Various other operators such as let also arrange for the evaluation
+of a body of forms, the value of the last of which is returned.
+These operators are said to feature an "implicit progn".
+
.SS Operators let and let*
.TP