summaryrefslogtreecommitdiffstats
path: root/lisplib.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2021-04-19 20:16:10 -0700
committerKaz Kylheku <kaz@kylheku.com>2021-04-19 20:16:10 -0700
commit8994babc7c49d3a118bb8341549fef209a21dcc2 (patch)
tree3c8cb9e07708e21d25e513f3b765a4ab8b9d941d /lisplib.c
parentf264a0cbbb22d8dd012b8b56d9e88147e2e23eb8 (diff)
downloadtxr-8994babc7c49d3a118bb8341549fef209a21dcc2.tar.gz
txr-8994babc7c49d3a118bb8341549fef209a21dcc2.tar.bz2
txr-8994babc7c49d3a118bb8341549fef209a21dcc2.zip
matcher: first pattern macro, sme.
* lisplib.c (match_instantiate): Intern sme symbol. * share/txr/stdlib/doc-syms.tl: Update with sme entry. * share/txr/stdlib/match.tl (sme): New defmatch macro. * tests/011/patmatch.tl: New tests for sme. * 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 95fa9914..422fcaaa 100644
--- a/lisplib.c
+++ b/lisplib.c
@@ -871,7 +871,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("with"), lit("scan"),
+ lit("all*"), lit("as"), lit("with"), lit("scan"), lit("sme"),
nil
};
val name[] = {