Redex: pass language id through for term errors
This commit is contained in:
parent
aa29fe01a8
commit
d00099dbdb
|
@ -45,7 +45,7 @@
|
|||
(syntax-e #'form))])
|
||||
(if (syntax->datum #'lang-stx)
|
||||
(let ([lang-nts (let loop ([ls #'lang-stx])
|
||||
(define slv (syntax-local-value ls))
|
||||
(define slv (syntax-local-value ls (λ () #'lang-stx)))
|
||||
(if (term-id? slv)
|
||||
(loop (term-id-prev-id slv))
|
||||
(language-id-nts ls 'term)))])
|
||||
|
|
|
@ -5,3 +5,7 @@
|
|||
(#rx"before underscore"
|
||||
([not-a-non-term AA_1])
|
||||
(term (Q_1 Q_2 (Q_3 not-a-non-term)) #:lang syn-err-lang))
|
||||
|
||||
(#rx".*define-language.*boglang"
|
||||
([bogus-language boglang])
|
||||
(term 5 #:lang bogus-language))
|
||||
|
|
Loading…
Reference in New Issue
Block a user