diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2021-04-17 19:21:53 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2021-04-17 19:21:53 -0700 |
commit | b987a3d6fefbd31f11d7f500b259a26a0d33bd80 (patch) | |
tree | 843bcabb16d95d16a9ae8afaad4434f3efada191 /ftw.h | |
parent | af09cb0e30fd40250a0d74f5effc14713eba23bd (diff) | |
download | txr-b987a3d6fefbd31f11d7f500b259a26a0d33bd80.tar.gz txr-b987a3d6fefbd31f11d7f500b259a26a0d33bd80.tar.bz2 txr-b987a3d6fefbd31f11d7f500b259a26a0d33bd80.zip |
matcher: allow user-defined patterns via defmatch
* lisplib.c (match_set_entries): Register defmatch
and *match-symbol* to autoload match.tl.
* share/txr/stdlib/doc-syms.tl: Updated with entries for
defmatch and *match-macro*.
* share/txr/stdlib/match.tl (*match-macro*): New special
variable holding hash.
(compile-match): Handle macros via *match-macro* hash.
(defmatch): New macro.
* txr.1: Documented.
* tags.tl: Recognize defmatch forms.
Diffstat (limited to 'ftw.h')
0 files changed, 0 insertions, 0 deletions