fix bug when syntax-rules expand rules including vector
This commit is contained in:
parent
b0c9c468c0
commit
b91939f5aa
|
@ -517,7 +517,7 @@
|
||||||
|
|
||||||
(compile-match-vector
|
(compile-match-vector
|
||||||
(lambda (pattern)
|
(lambda (pattern)
|
||||||
(let-values (((match vars) (compile-match-list (vector->list pattern))))
|
(let-values (((match vars) (compile-match-base (vector->list pattern))))
|
||||||
(values
|
(values
|
||||||
`(,_let ((expr (,_vector->list expr)))
|
`(,_let ((expr (,_vector->list expr)))
|
||||||
,match)
|
,match)
|
||||||
|
@ -588,9 +588,10 @@
|
||||||
(compile-expand-vector
|
(compile-expand-vector
|
||||||
(lambda (template ellipsis-valid)
|
(lambda (template ellipsis-valid)
|
||||||
(let-values (((expand1 vars1)
|
(let-values (((expand1 vars1)
|
||||||
(compile-expand-list (vector->list template) ellipsis-valid)))
|
(compile-expand-base (vector->list template) ellipsis-valid)))
|
||||||
|
(values
|
||||||
`(,_list->vector ,expand1)
|
`(,_list->vector ,expand1)
|
||||||
vars1))))
|
vars1)))))
|
||||||
|
|
||||||
(compile-expand-base template ellipsis)))
|
(compile-expand-base template ellipsis)))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue