Re: syntax-source

2011-04-16 Thread Mark H Weaver
Stefan Israelsson Tampe writes: > I want to get source location of a macro form and played a little with > syntax-source. This should then print out something. > > (define-syntax <+> >   (lambda (x) >     (syntax-case x () >       ((o a b) >    (pk (synta

syntax-source

2011-04-16 Thread Stefan Israelsson Tampe
Hi, I want to get source location of a macro form and played a little with syntax-source. This should then print out something. (define-syntax <+> (lambda (x) (syntax-case x () ((o a b) (pk (syntax-source x)) #'(+ a b) (<+> 1 2) In trying to use