svn: r15886
This commit is contained in:
Robby Findler 2009-09-05 10:29:00 +00:00
parent 8838409b44
commit 72d6f85c47
2 changed files with 10 additions and 2 deletions

View File

@ -706,8 +706,8 @@
#`
(let ([case-id (gensym)])
(make-rewrite-proc
(λ (lang)
(let ([cp (compile-pattern lang `side-conditions-rewritten #t)]
(λ (lang-id)
(let ([cp (compile-pattern lang-id `side-conditions-rewritten #t)]
compile-pattern-bindings ...)
(λ (main-exp exp f other-matches)
(let ([mtchs (match-pattern cp exp)])

View File

@ -1000,6 +1000,14 @@
(:-> 1 2))
1)
'(2))
(let ()
(define-language n-lang
[n number])
(test (apply-reduction-relation
(reduction-relation n-lang [--> any ,(length (redex-match n-lang n 1))])
11)
'(1)))
(parameterize ([current-namespace syn-err-test-namespace])
(eval (quote-syntax