From: Taylor R. Campbell Date: Sun, 4 Feb 2007 00:17:12 +0000 (+0000) Subject: Permit (SYNTAX-RULES ()), which is the only portable way to define a X-Git-Tag: 20090517-FFI~746 X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=75a52ac1f2fcad272b6b296656f8ea302657846e;p=mit-scheme.git Permit (SYNTAX-RULES ()), which is the only portable way to define a SYNTACTIC-ERROR macro. --- diff --git a/v7/src/runtime/syntax-rules.scm b/v7/src/runtime/syntax-rules.scm index 1dde799ba..29f233246 100644 --- a/v7/src/runtime/syntax-rules.scm +++ b/v7/src/runtime/syntax-rules.scm @@ -1,6 +1,6 @@ #| -*-Scheme-*- -$Id: syntax-rules.scm,v 14.10 2007/01/05 21:19:28 cph Exp $ +$Id: syntax-rules.scm,v 14.11 2007/02/04 00:17:12 riastradh Exp $ Copyright (C) 1986, 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, @@ -43,7 +43,7 @@ USA. (expand/syntax-rules form rename compare syntax-error))))) (define (expand/syntax-rules form rename compare syntax-error) - (if (syntax-match? '((* IDENTIFIER) + ((IDENTIFIER . DATUM) EXPRESSION)) + (if (syntax-match? '((* IDENTIFIER) * ((IDENTIFIER . DATUM) EXPRESSION)) (cdr form)) (let ((keywords (cadr form)) (clauses (cddr form)))