diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2016-09-12 06:48:23 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2016-09-12 06:48:23 -0700 |
commit | 75fde7a377a5d09cf7ace633057359a0f5ec2c68 (patch) | |
tree | 2baf52a22da7760200bb0cef5a051fa847ee0a35 /txr.1 | |
parent | b2ef30979b89bc0e8fa5f90b8bfc7d09ed3e16c2 (diff) | |
download | txr-75fde7a377a5d09cf7ace633057359a0f5ec2c68.tar.gz txr-75fde7a377a5d09cf7ace633057359a0f5ec2c68.tar.bz2 txr-75fde7a377a5d09cf7ace633057359a0f5ec2c68.zip |
awk macro: revise how implicit block works, and name.
* share/txr/stdlib/awk.tl (sys:awk-expander): Check
that :name designates a symbol, and that it isn't nil.
(awk): Move the implicit block to the outermost scope
so it encloses all of the clauses. Default to the
name awk for the block, rather than nil.
* txr.1: Document that the implicit awk block is
called awk by default, and that nil is not allowed
as a block name.
Diffstat (limited to 'txr.1')
-rw-r--r-- | txr.1 | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -37203,11 +37203,19 @@ form, specifying this symbol as the argument. If the .code :name form is omitted, the implicit block is named -.codn nil . +.codn awk . It is an error for two or more .code :name forms to appear. + +The +.code :name +clause must have an argument which is a symbol; +the symbol +.code nil +is not permitted. + .meIP (:let >> { sym | >> ( sym << init-form )}*) Regardless of what order they appear in relation to other clauses in the same |