Stephen Chang
71d65e1a44
stlc, sysf: make function tycon infix instead of prefix
...
- TODO: typecheck uses -> as datum-literal because it can't see the
actual literal, fix this
2014-08-21 13:31:11 -04:00
Stephen Chang
69ef254227
typecheck: reimpl apply-forall, doing manual subst, special-handling binding forms
2014-08-20 19:19:09 -04:00
Stephen Chang
b0769c5f1a
sysf: impl renaming of forall binders but then backed out
...
- capture when applying forall is ok since binder is renamed as well
- and since type names are valid binder names, this is ok
- TODO: what if we call inst with non-base type?
- add more variable capture tests
- typecheck: type= handles alpha-equiv
2014-08-20 14:39:24 -04:00
Stephen Chang
5a4e27a7d8
cleanup old type-error usage
2014-08-19 16:06:27 -04:00
Stephen Chang
fbca467d01
typecheck: add type-error form
2014-08-19 16:05:08 -04:00
Stephen Chang
4a5eb432af
stlc:
...
- add define-prim,
- better errors,
- add list/tc,
- single-case define-type
- started a hack of a base type env in mod-begin
2014-08-18 18:34:49 -04:00
Stephen Chang
99cc2e57e8
code cleanup
2014-08-15 19:07:47 -04:00
Stephen Chang
45dd603a08
stlc and sysf: require define to give explicit return type
...
sysf: extended cases to handle forall
2014-08-15 19:04:16 -04:00
Stephen Chang
8ece6a3986
typecheck.rkt: add apply-forall
2014-08-15 16:22:32 -04:00
Stephen Chang
723c5bbaec
separate general type checking fns from stlc
2014-08-14 15:15:42 -04:00