match macro problem
Gary Baumgartner <[email protected]>
| Newsgroups | gmane.lisp.scheme.scsh |
|---|---|
| Message-ID | <[email protected]> |
I'm having trouble with a macro that expands into a use of
match from Andrew Wright's match-s48.scm:
A very simple example of the problem:
> (define-syntax m
(syntax-rules ()
((_) (match 1 (x 2)))))
> (m)
Error: syntax error in pattern
#{Generated x 1455}
Since match is not implemented with define-syntax and syntax-rules,
I assume I'm running into a problem mixing the two styles.
Gary Baumgartner