Black Hole and Termite
16 Jul
2009
16 Jul
'09
17:40
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
16 Jul
16 Jul
18:35
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))) >
6183
Âge (en jours)
6183
Dernière activité (en jours)
1 commentaires
1 participants
participants (1)
-
Jeremie Lasalle Ratelle