Re: syntax-case in the repl and in the module system
"Scott G. Miller" <[email protected]> Mon, 19 May 2008 14:40:17 -0500
| Newsgroups | gmane.comp.java.sisc.user |
|---|---|
| Message-ID | <[email protected]> |
On Mon, May 19, 2008 at 11:29 AM, Johannes Bruegmann <[email protected]> wrote: > Hello, > > i tried to port the SCSH-awk-macro from the MzScheme-port to > SISC. That worked - like the following session shows (the files > referenced in the comment can be found at the end of this mail): > ...snip Psyntax is a bit picky about the way modules reference defined bindings in their own definitions. It behaves like letrec, where right hand sides can't reference any other letrec binding at definition time. In awk.scm, this happens when it expands the syntax definitions in the awk macro. The easiest workaround is to make the dependent functions of the awk macro internal definitions, eg: (define-syntax awk (lambda (stx) (define (syntax->list ... etc Hope that works, Scott ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/