diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2021-01-24 13:10:20 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2021-01-24 13:10:20 -0800 |
commit | 2a6e91240f8ff72cc340b7910cec23eea0533ccd (patch) | |
tree | 10cf58c8cdba93c36603eec991b90a38c260fb28 /lib.h | |
parent | 87d89d601fba2dd1acc20e723b922da0e7210f1b (diff) | |
download | txr-2a6e91240f8ff72cc340b7910cec23eea0533ccd.tar.gz txr-2a6e91240f8ff72cc340b7910cec23eea0533ccd.tar.bz2 txr-2a6e91240f8ff72cc340b7910cec23eea0533ccd.zip |
matcher: rescind support for @(rcons ...) patterns.
There is no longer any way to write a @(rcons ...)
pattern using the range syntax, so there is no point in
supporting that operator. The silly syntax @@a..@b
which previously worked was actually due to a mistaken
requirement in the parser.
* share/txr/stdlib/match.tl (compile-range-match): Function
moved closer to compile-atom-match, below compile-vec-match.
The argument is now a range object containing patterns, so we
pull it apart with from and to.
(compile-atom-match): Pass range directly to
compile-range-match; no need to construct (rcons ...) syntax.
* tests/011/patmatch.tl: Add range tests from documentation
and a few others.
* txr.1: References to @(rcons ...) pattern scrubbed.
One wrong #R pattern example corrected.
Diffstat (limited to 'lib.h')
0 files changed, 0 insertions, 0 deletions