summaryrefslogtreecommitdiffstats
path: root/lisplib.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2021-02-01 23:48:35 -0800
committerKaz Kylheku <kaz@kylheku.com>2021-02-01 23:48:35 -0800
commit3546eefbbaefac9457e4f18c1d2ed0aba5a6b933 (patch)
tree6207b95d72877ba7a9c4e5cff6e81c6ed5f04cc3 /lisplib.c
parentf98f2a73750bff9b182c74d073a9c78e5316d7ae (diff)
downloadtxr-3546eefbbaefac9457e4f18c1d2ed0aba5a6b933.tar.gz
txr-3546eefbbaefac9457e4f18c1d2ed0aba5a6b933.tar.bz2
txr-3546eefbbaefac9457e4f18c1d2ed0aba5a6b933.zip
matcher: new @(with) operator.
* lisplib.c (match_instantiate): Ensure usr:with is interned. * share/txr/stdlib/match.tl (compile-with-match): New function. (compile-match): Wire in with operator. * tests/011/patmatch.tl: Test cases. * txr.1: Documented.
Diffstat (limited to 'lisplib.c')
-rw-r--r--lisplib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisplib.c b/lisplib.c
index 60612575..c0d6ded0 100644
--- a/lisplib.c
+++ b/lisplib.c
@@ -870,7 +870,7 @@ static val match_instantiate(val set_fun)
static val match_set_entries(val dlt, val fun)
{
val name_noload[] = {
- lit("all*"), lit("as"),
+ lit("all*"), lit("as"), lit("with"),
nil
};
val name[] = {