diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2021-05-24 08:41:58 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2021-05-24 08:41:58 -0700 |
commit | f2f951350516e4b959ef28f220e31b91b466fa16 (patch) | |
tree | ee4958ffcac59dcfb909ca5e217d5a74a42b1569 /match.c | |
parent | 7b587fe3450c949f454778bfaf71870a5a872f6b (diff) | |
download | txr-f2f951350516e4b959ef28f220e31b91b466fa16.tar.gz txr-f2f951350516e4b959ef28f220e31b91b466fa16.tar.bz2 txr-f2f951350516e4b959ef28f220e31b91b466fa16.zip |
matcher: allow hash pattern to omit values.
The @(hash ...) operator now allows key-only patterns
like (42) or (@x), where x could be bound or unbound.
This has separate semantics from when a value is present.
* share/txr/stdlib/match.tl (compile-hash-match): Implement.
* tests/011/patmatch.tl: Test.
* txr.1: Document.
Diffstat (limited to 'match.c')
0 files changed, 0 insertions, 0 deletions