guile-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: syntax/loc


From: Andy Wingo
Subject: Re: syntax/loc
Date: Wed, 16 Jan 2013 19:33:15 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux)

Hi,

On Sun 18 Mar 2012 16:05, Stefan Israelsson Tampe <address@hidden> 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/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]