[plt-scheme] Breaking hygiene

From: Matthew Flatt (mflatt at cs.utah.edu)
Date: Wed Apr 13 11:39:34 EDT 2005

At Wed, 13 Apr 2005 14:41:28 +0100, Matt Jadud wrote:
> (define-pass s-exp-passM
>    (export expr)
>    (new
>     [expr            ;;<-- and I'd like this to expand
>      (id)            ;;    to a definition for <expr>...

Is it just that the identifier `<expr>' is derived from the identifier

If so, generate the identifier with this:

 (define (production-id->bracketed-id id)
   (datum->syntax-object id
                         (string->symbol (format "<~a>" (syntax-e id)))))

But I suspect that I'm missing something.


Posted on the users mailing list.