
the error raising code, except in one place where I think the error raising code was correct to have the plural form, so I changed it back instead of changing the Redex test suite to match
9 lines
263 B
Racket
9 lines
263 B
Racket
(#rx"missing ellipsis"
|
|
([id-no-ellipsis x]) ([ellipsis ...])
|
|
(term-let ([(id-no-ellipsis ellipsis) '(a b c)]) (term id-no-ellipsis)))
|
|
|
|
(#rx"too few ellipses"
|
|
([bound x]) ([bind x])
|
|
(... (term-let ([((bind ...) ...) '()])
|
|
(term (bound ...)))))
|