check errors earlier in judgment-form

closes PR 13609
closes PR 13610
This commit is contained in:
Robby Findler 2013-03-16 21:27:45 -05:00
parent fd9fce47d9
commit 99ff0adbfd

View File

@ -719,8 +719,10 @@
(define-syntax (judgment-holds stx)
(syntax-case stx ()
[(_ args ...)
#'(#%expression (judgment-holds/derivation judgment-holds #f args ...))]))
[(_ (jf-id . args))
#'(#%expression (judgment-holds/derivation judgment-holds #f (jf-id . args)))]
[(_ (jf-id . args) trm)
#'(#%expression (judgment-holds/derivation judgment-holds #f (jf-id . args) trm))]))
(define-syntax (build-derivations stx)
(syntax-case stx ()