diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2021-02-06 00:18:23 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2021-02-06 00:18:23 -0800 |
commit | 72e321922b438c58285314c5c816b211cdec70ef (patch) | |
tree | 29e416ed43ee24f0e87c8e95681afd1d3f6d6cf2 /tests/015/awk-fconv.expected | |
parent | 9ae3eed9230f44695b87c2a0fc6ea4a3a3a42ed1 (diff) | |
download | txr-72e321922b438c58285314c5c816b211cdec70ef.tar.gz txr-72e321922b438c58285314c5c816b211cdec70ef.tar.bz2 txr-72e321922b438c58285314c5c816b211cdec70ef.zip |
matcher: @(as) must always bind fresh variable.
It is documented that as binds a new variable. Furthermore, it
used to be called let. Yet, it back-references. Let's fix it.
* share/txr/stdlib/match.tl (compile-new-var-match): New
function: like compile-var-match but binds new variable, as if
back-referencing didn't exist.
(compile-as-match): Use compile-new-var-match.
* txr.1: Improve as documentation. Clarify that it binds a
fresh variable, and that pattern is processed in its scope.
Include an example with circular structure.
Diffstat (limited to 'tests/015/awk-fconv.expected')
0 files changed, 0 insertions, 0 deletions