I implemented vector pattern matching in termite some time ago. I'm trying to port my code in the black hole version of termite but there is a problem with vectors in macro code.
Here is an example
(define-syntax macro-test (sc-macro-transformer (lambda (form env) (pp form) `(begin))))
(macro-test '(1 2 3))
(macro-test '(1 2 3))
(macro-test #(1 2 3))
(macro-test #(#(#(source1) 1 (console) 917509) #(#(source1) 2 (console) 1048581) #(#(source1) 3 (console) 1179653)))
Afficher les réponses par date
I corrected the bug. Just had to put the vector case in strip location. Here is the patch
On Thu, Jul 16, 2009 at 1:40 PM, Jeremie Lasalle Ratelle < pouexmachinax@gmail.com> wrote:
I implemented vector pattern matching in termite some time ago. I'm trying to port my code in the black hole version of termite but there is a problem with vectors in macro code.
Here is an example
(define-syntax macro-test (sc-macro-transformer (lambda (form env) (pp form) `(begin))))
(macro-test '(1 2 3))
(macro-test '(1 2 3))
(macro-test #(1 2 3))
(macro-test #(#(#(source1) 1 (console) 917509) #(#(source1) 2 (console) 1048581) #(#(source1) 3 (console) 1179653)))