Hi,

On Sun 18 Mar 2012 16:05, Stefan Israelsson Tampe <stefan.ita...@gmail.com> 
writes:

> It is possible to get syntax location information via syntax-source, but
> trying to implement
> something like
>
> (define-syntax syntax/loc 
>   (syntax-rules ()
>     ((_ src stx)
>      (let ((ret (syntax stx)))
>         (set-syntax-source ret (syntax-source src))
>         ret))))
>
> I fail due to not identifying what set-syntax-source should be. What's
> the silution?

`set-source-properties!': 
http://www.gnu.org/software/guile/manual/html_node/Source-Properties.html#Source-Properties

Better late than never?

Cheers,

Andy
-- 
http://wingolog.org/

  • syntax/loc Stefan Israelsson Tampe
    • Re: syntax/loc Andy Wingo

Reply via email to