[plt-scheme] Porting OPT-LAMBDA

From: Jens Axel Søgaard (jensaxel at soegaard.net)
Date: Tue Dec 5 16:08:26 EST 2006

Aaron Hsu skrev:
> Hello everyone,
> I am attempting to port over the OPT-LAMBDA code upon which Schemeql 
> relies to Chez Scheme.
> The problem, of course, is that I've had a bit of trouble with some of 
> macro. Specifically, it doesn't appear that I have QUOTE-SYNTAX or 
> SYNTAX/LOC. However, i can't seem to find any definition for these two 
> forms at all. Are these defined somewhere special?

As first approximation (read hack), try:

   (define-syntax quote-syntax
     (syntax-rules ()
       [(_ datum)

   (define-syntax syntax/loc
     (syntax-rules ()
       [(_ location-stx-expr template)

If it doesn't work, I'm sure the Chez people, given Danny's links to
the documentation, can produce a solution in no time.

Jens Axel Søgaard

Posted on the users mailing list.