Remember it's not symbols but code objects that this refers to so I need to
use the syntactic information and only augment the objects that can be
joined
and leave the other syntactic objects like symbols from another module and
so
on.
I will try to leave the struct representation and use only lis
Hi Stefan,
On Mon 23 Jan 2012 17:06, Stefan Israelsson Tampe
writes:
> and when parse is ready to unpack S we could have
>
> S = #(syntax-object # wrap-part hygiene)
>
> Now I basically solve this problem by constructing
Why do syntax->datum and datum->syntax not work for you to pack and
unpac
Ok, here is a discussoin using code in syntax-parse.
Let's start with the defintion of a syntax-class, str in the macro package
syntax-parse:
(define-syntax-class str #:attributes () #:opaque #:commit
#:description "string"
(pattern (~and x (~fail #:unless (string? (syntax-e #'x))
So the
Hi Stefan,
On Thu 19 Jan 2012 10:50, Stefan Israelsson Tampe
writes:
> Working on porting syntax-parse is a learning experience and I know
> understand how it uses syntax-local-value as a way to lookup a syntax
> object by joining the wraps together with the total wrap at the macro
> call.
syn
Hi,
Working on porting syntax-parse is a learning experience and I know
understand how it uses
syntax-local-value as a way to lookup a syntax object by joining the wraps
together with the
total wrap at the macro call.
The question is if this really are the total wrap e.g. contains the history
of
Ok, I have tried follow your suggestion,
here is what I could make,
(with-fluids ((*macro-lookup*
(lambda (e)
(cond
((number? e)
(pk w))
((symbol? e)
Thanks for taking time to help with this!
On Sun, Jan 8, 2012 at 8:15 PM, Mark H Weaver wrote:
> Hi Stefan,
>
> Stefan Israelsson Tampe writes:
> > diff --git a/module/ice-9/psyntax.scm b/module/ice-9/psyntax.scm
> > index e522f54..70463a5 100644
> > --- a/module/ice-9/psyntax.scm
> > +++ b/mod
Hi Stefan,
Stefan Israelsson Tampe writes:
> diff --git a/module/ice-9/psyntax.scm b/module/ice-9/psyntax.scm
> index e522f54..70463a5 100644
> --- a/module/ice-9/psyntax.scm
> +++ b/module/ice-9/psyntax.scm
> @@ -155,6 +155,10 @@
> (eval-when (compile)
>(set-current-module (resolve-module '
On Sat, Jan 7, 2012 at 1:05 AM, Andy Wingo wrote:
> On Mon 05 Dec 2011 19:12, Stefan Israelsson Tampe
> writes:
>
> > (define-syntax info
> > (lambda (x)
> > (syntax-case x ()
> > ((_ x)
> > (pk (syntax-binding-info (syntax->datum #'x)))
> > #'#f
>
> I agree with
On Mon 05 Dec 2011 19:12, Stefan Israelsson Tampe
writes:
> (define-syntax info
> (lambda (x)
> (syntax-case x ()
> ((_ x)
> (pk (syntax-binding-info (syntax->datum #'x)))
> #'#f
I agree with Ian that we should be operating on syntax objects here, not
on datums.
Hi,
On Thu, Dec 8, 2011 at 10:58 PM, Ian Price wrote:
> Stefan Israelsson Tampe writes:
>
> > So I tried to get hold of the macro binding. So with the following patch
> wich should be enogh
> > for me to make progress porting rackets syntax parse to guile.
> >
> > Would be very glad if we could
Stefan Israelsson Tampe writes:
> So I tried to get hold of the macro binding. So with the following patch wich
> should be enogh
> for me to make progress porting rackets syntax parse to guile.
>
> Would be very glad if we could find a interface to expose this information
> that is sane
> and
12 matches
Mail list logo