Fixes a `plug' bug.

There are still problems with contexts, but this is an improvement.
This commit is contained in:
Casey Klein 2010-08-16 10:19:01 -05:00
parent 623925b5d7
commit 85093fb536
2 changed files with 13 additions and 4 deletions

View File

@ -1566,7 +1566,7 @@ before the pattern compiler is invoked.
(cons (loop (car exp))
(loop (cdr exp)))]
[(eq? the-not-hole exp)
the-hole]
the-not-hole]
[(eq? the-hole exp)
(if done?
exp

View File

@ -99,9 +99,7 @@
(define-language x (e ....))
12)))
'("...."))
;; test multiple variable non-terminals
(let ()
(define-language lang
@ -898,6 +896,17 @@
'())
'(()))
(test (apply-reduction-relation
(reduction-relation
empty-language
(--> (in-hole (name E
(in-hole ((hide-hole hole) hole)
hole))
number)
(in-hole E ,(add1 (term number)))))
(term (hole 2)))
(list (term (hole 3))))
(test (apply-reduction-relation/tag-with-names
(reduction-relation
grammar