diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2021-06-24 07:00:59 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2021-06-24 08:27:31 -0700 |
commit | 65f1445db0d677189ab01635906869bfda56d3d9 (patch) | |
tree | 211eb1dc4a327386d49c169b5941b205d6051969 /lisplib.c | |
parent | e4616095db06980eb3f9e80f6e9df60dfc46dfa9 (diff) | |
download | txr-65f1445db0d677189ab01635906869bfda56d3d9.tar.gz txr-65f1445db0d677189ab01635906869bfda56d3d9.tar.bz2 txr-65f1445db0d677189ab01635906869bfda56d3d9.zip |
matcher: new looping macros.
* lisplib.c (match_set_entries): Autoload on new while-match,
while-match-case and while-true-match-case symbols.
* share/txr/stdlib/match.tl (while-match, while-match-case,
while-true-match-case): New macros.
* tests/011/patmatch.tl: Tests.
* txr.1: Documented.
* share/txr/stdlib/doc-syms.tl: Updated.
Diffstat (limited to 'lisplib.c')
-rw-r--r-- | lisplib.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -882,6 +882,7 @@ static val match_set_entries(val dlt, val fun) }; val name[] = { lit("when-match"), lit("match-case"), lit("if-match"), + lit("while-match"), lit("while-match-case"), lit("while-true-match-case"), lit("lambda-match"), lit("defun-match"), lit("defmatch"), lit("each-match"), lit("append-matches"), lit("keep-matches"), lit("each-match-product"), |