scsh-users
[Top] [All Lists]

match macro problem

To: scsh-users@scsh.net
Subject: match macro problem
From: Gary Baumgartner <gfb@cs.toronto.edu>
Date: Tue, 5 Apr 2005 21:32:06 -0400
List-id: <scsh-users.list-id.scsh.net>
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

<Prev in Thread] Current Thread [Next in Thread>