[plt-scheme] Syntax-objects in DrScheme

From: Jens Axel Søgaard (jensaxel at soegaard.net)
Date: Sat Jun 9 10:03:46 EDT 2007

> Try this expression in the DrScheme repl:
> 
>   (with-syntax ([(x ...) #'(x1 x2 x3)])
>     (syntax
>       (y x ... z)))

I just remembered browse-syntax from Ryan's syntax-browser:

(require (lib "syntax-browser.ss" "macro-debugger"))
(browse-syntax
   (with-syntax ([(x ...) #'(x1 x2 x3)])
     (syntax
        (y x ... z)))

Which after activating the "Syntax Object" does what I want.

Almost: I use a syntax-property to store a list of
identifiers, so it would be great to see

   ( <syntax-object-snipt> ... )

instead of

   ( #<syntax:line:col> ...) .

But that's okay for now.

Hmm. Would it make sense to add a button to syntax-object-snips
that launch the syntax-browser from the macro-debugger
collection?

/Jens Axel



Posted on the users mailing list.