|
338 | 338 | (go `(the ,(read-back-type Γ A) (car ,p-out)))]
|
339 | 339 | [non-Sigma
|
340 | 340 | (stop (src-loc e)
|
341 |
| - `("Not a Σ:" ,(read-back-type Γ non-Sigma)))]))] |
| 341 | + `("Not a pair type:" ,(read-back-type Γ non-Sigma)))]))] |
342 | 342 | [`(cdr ,p)
|
343 | 343 | (go-on ([`(the ,p-t ,p-out) (synth Γ r p)])
|
344 | 344 | (match (val-in-ctx Γ p-t)
|
|
348 | 348 | (cdr ,p-out)))]
|
349 | 349 | [non-Sigma
|
350 | 350 | (stop (src-loc e)
|
351 |
| - `("Not a Σ:" ,(read-back-type Γ non-Sigma)))]))] |
| 351 | + `("Not a pair type:" ,(read-back-type Γ non-Sigma)))]))] |
352 | 352 | [`(quote ,a)
|
353 | 353 | (if (atom-ok? a)
|
354 | 354 | (go `(the Atom (quote ,a)))
|
|
613 | 613 | (val-of-closure c (val-in-ctx Γ rand-out)))
|
614 | 614 | (,rator-out ,rand-out))))]
|
615 | 615 | [non-PI (stop (src-loc e)
|
616 |
| - `("Not a Π:" ,(read-back-type Γ non-PI)))]))] |
| 616 | + `("Not a function type:" ,(read-back-type Γ non-PI)))]))] |
617 | 617 | ;;; Γ ⊢ (f x y ...) synth ~> (the (Pi ((x A)) B) app')
|
618 | 618 | ;;; Γ ⊢ z ∈ A ~> z'
|
619 | 619 | ;;;---------------------------------------------------
|
|
631 | 631 | (val-of-closure c (val-in-ctx Γ rand-out)))
|
632 | 632 | (,app0 ,rand-out))))]
|
633 | 633 | [non-PI (stop (src-loc e)
|
634 |
| - `("Not a Π:" ,(read-back-type Γ non-PI)))]))] |
| 634 | + `("Not a function type:" ,(read-back-type Γ non-PI)))]))] |
635 | 635 | [x
|
636 | 636 | (cond [(and (symbol? x) (var-name? x))
|
637 | 637 | (let ((real-x (rename r x)))
|
|
0 commit comments