Fixes generation of any' within
in-hole' context position
This commit is contained in:
parent
319ae5f825
commit
46b3a9d13d
|
@ -343,7 +343,7 @@
|
|||
[`any
|
||||
(λ (r s a e f)
|
||||
(let*-values ([(lang nt) ((next-any-decision) langc sexpc)]
|
||||
[(term) (gen-nt lang nt #f r s a (list the-hole))])
|
||||
[(term) (gen-nt lang nt #f r s a the-not-hole)])
|
||||
(values term e)))]
|
||||
[(or (? symbol? (? nt? p)) `(cross ,(? symbol? p)))
|
||||
(let ([cross? (not (symbol? pat))])
|
||||
|
|
|
@ -518,7 +518,13 @@
|
|||
empty any 5 0 (decisions #:nt (patterns first)
|
||||
#:any (λ (langc sexpc) (values sexpc 'sexp))
|
||||
#:var (list (λ _ 'x))))
|
||||
'x))
|
||||
'x)
|
||||
(test
|
||||
(generate-term/decisions
|
||||
empty (in-hole (any hole) 7) 5 0
|
||||
(decisions #:any (list (λ (_ sexp) (values sexp 'sexp)))
|
||||
#:nt (patterns fourth)))
|
||||
(term (hole 7))))
|
||||
|
||||
;; `hide-hole' pattern
|
||||
(let ()
|
||||
|
|
Loading…
Reference in New Issue
Block a user