From c5c227d4ed411e4828bc0b2685693e60cef585c4 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Fri, 4 Jun 2021 07:22:08 -0700 Subject: matcher: doc fix, quasiquote examples, new test. * tests/011/patmatch.tl: New test case. * txr.1: Heading fix: Quasiquote matching notation, not quasiliteral. Examples of quasiquote notation added. --- tests/011/patmatch.tl | 1 + 1 file changed, 1 insertion(+) (limited to 'tests/011/patmatch.tl') diff --git a/tests/011/patmatch.tl b/tests/011/patmatch.tl index 8a304a6d..9e566502 100644 --- a/tests/011/patmatch.tl +++ b/tests/011/patmatch.tl @@ -474,6 +474,7 @@ (mtest (when-match ^(,a ,b) '(1 2) (list a b)) (1 2) + (when-match ^(,(oddp @a) ,(evenp @b)) '(1 2) (list a b)) (1 2) (when-match ^#(,a ,b) #(1 2) (list a b)) (1 2) (when-match ^#S(,type year ,y) #S(time year 2021) (list (struct-type-name type) y)) (time 2021) -- cgit v1.2.3