diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2023-05-24 06:48:18 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2023-05-24 06:48:18 -0700 |
commit | b4f23d86dd71504405f2f26278941dd8325c14ab (patch) | |
tree | f25ac7d6f3493f63b34d878e68ca3494732c0839 /txr.1 | |
parent | 8c249e7aa60489b353658c934b0668a045d7fa0c (diff) | |
download | txr-b4f23d86dd71504405f2f26278941dd8325c14ab.tar.gz txr-b4f23d86dd71504405f2f26278941dd8325c14ab.tar.bz2 txr-b4f23d86dd71504405f2f26278941dd8325c14ab.zip |
awk: widen scope of redirection macros.
This change makes it possible to use the redirection macros
like -> and ->> everywhere in the awk macro, including the
init-forms of the :let clause.
* stdlib/awk.tl (sys:awk-mac-let-outer): New macro.
(sys:awk-mac-let): Move redirection macros into
awk-mac-let-outer.
(awk): Rearrange the order of wrapping. We split the
let so the awk-retval and aws-sym are bound outermost.
Then we have the outer macros that provide the
redirection operators. Then the application-defined
lets inside of that.
* txr.1: Documented wide scope of redirection macros.
Diffstat (limited to 'txr.1')
-rw-r--r-- | txr.1 | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -69716,6 +69716,14 @@ or string, direction and type, a new stream is not opened; rather, the previously associated stream is used. +The scope of these macros is the entire containing +.code awk +form; they may be used in the +.metn init-form s +of the +.code :let +clause. + The .code -> macro indicates that the file named |