Commit Graph

14 Commits

Author SHA1 Message Date
Danila Fedorin 6b8d3b0f8a Refactor errors and update post draft. 2020-09-11 21:29:49 -07:00
Danila Fedorin 725958137a Factor type into case strategy constructor. 2020-09-11 13:03:00 -07:00
Danila Fedorin f00a6a7783 Actually use the environment for binop functions. 2020-09-10 16:03:56 -07:00
Danila Fedorin 2a81fdd9fb Stop using mangled names for local variables. 2020-09-10 15:14:19 -07:00
Danila Fedorin 17c59e595c Add assertion regarding local name mangling. 2020-09-10 15:05:02 -07:00
Danila Fedorin 76675fbc9b Make make_case_for throw from the second time on.
Also clean up the errors thrown a little bit.
2020-09-10 14:03:04 -07:00
Danila Fedorin 1a05d5ff7a Add type errors to identifier nodes. 2020-09-10 12:59:26 -07:00
Danila Fedorin 56f0dbd02f Prevent case compilation from crashing and burning. 2020-09-10 12:53:55 -07:00
Danila Fedorin 9fc0ff961d Add more built-in boolean-specific instructions. 2020-09-10 12:44:41 -07:00
Danila Fedorin 73441dc93b Register booleans as internal types. 2020-09-10 00:54:35 -07:00
Danila Fedorin 85394b185d Add prototype impl of case specialization.
Boolean cases could be translated to ifs, and
integer cases to jumps. That's still in progress.
2020-09-09 22:49:35 -07:00
Danila Fedorin e337992410 Add sources for unification type errors. 2020-09-09 15:26:18 -07:00
Danila Fedorin eade42be49 Print locations in non-unification type errors. 2020-09-09 15:15:25 -07:00
Danila Fedorin 5dbf75b5e4 Fork off version 13 of the compiler. 2020-09-08 18:38:05 -07:00