[plt-scheme] Check syntax and macros

From: Jens Axel Soegaard (jensaxel at soegaard.net)
Date: Thu Oct 18 05:33:10 EDT 2007

Grant Rettke skrev:
> Hi I'm working on more or less my first macros that do anything interesting.
> 
> When I run check syntax in DrScheme, the references don't get pointed
> out by the arrows.
> 
> Is this to be expected or am I doing something wrong?

You need to provide a concrete example in order to get a reasonable
answer.

In simple macros like this one,

   (define-syntax let1
     (syntax-rules ()
       [(_ x e b)
        (let ([x e]) b)]))

   (let1 x 1 (+ x 2))

CheckSyntax will draw an arrow from the x in (+ x 2)
to its binder without anything special.

If you somehow manipulate the identifiers, then the
answer is "it depends".


-- 
Jens Axel Søgaard


Posted on the users mailing list.