summaryrefslogtreecommitdiffstats
path: root/match.h
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2021-01-26 00:46:57 -0800
committerKaz Kylheku <kaz@kylheku.com>2021-01-26 00:46:57 -0800
commitdeae97f0dfdf0ea33bba2912f05bb6b350553b94 (patch)
tree7d7a344efe14c3c5acb861870d07d71038f1face /match.h
parent030f25146ff5d2f6671ef1b615fc4217004632e5 (diff)
downloadtxr-deae97f0dfdf0ea33bba2912f05bb6b350553b94.tar.gz
txr-deae97f0dfdf0ea33bba2912f05bb6b350553b94.tar.bz2
txr-deae97f0dfdf0ea33bba2912f05bb6b350553b94.zip
matcher: allow pat/var argument: @[expr var pat]
* share/txr/stdlib/match.tl (compile-dwim-predicate-match): Drop redundant bindable check of sym, since compile-var-match checks this. Support third argument which gives a pattern or variable which captures the value from the predicate function, which might be interesting (not just true/false). * tests/011/patmatch.tl: New tests. * txr.1: Documented.
Diffstat (limited to 'match.h')
0 files changed, 0 insertions, 0 deletions