Commit Graph

17 Commits

Author SHA1 Message Date
dfe47548cf Make a few more things classes. 2020-09-17 18:30:41 -07:00
ed1f9a1460 Make some refactors for name mangling and encapsulation. 2020-09-15 18:51:28 -07:00
18aac4c8fd Require mangled names for global variables. 2020-09-15 14:39:31 -07:00
03465c07ce Refactor errors and update post draft. 2020-09-11 21:29:49 -07:00
4cdb9360fb Factor type into case strategy constructor. 2020-09-11 13:03:00 -07:00
99f7f45d51 Actually use the environment for binop functions. 2020-09-10 16:03:56 -07:00
e7afa126c8 Stop using mangled names for local variables. 2020-09-10 15:14:19 -07:00
688463570c Add assertion regarding local name mangling. 2020-09-10 15:05:02 -07:00
828be79ab5 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
2ede230704 Add type errors to identifier nodes. 2020-09-10 12:59:26 -07:00
87b51819e8 Prevent case compilation from crashing and burning. 2020-09-10 12:53:55 -07:00
b03e68bb28 Add more built-in boolean-specific instructions. 2020-09-10 12:44:41 -07:00
9393e35a84 Register booleans as internal types. 2020-09-10 00:54:35 -07:00
c7b2a4959f 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
1f7a53ccf6 Add sources for unification type errors. 2020-09-09 15:26:18 -07:00
34357163cd Print locations in non-unification type errors. 2020-09-09 15:15:25 -07:00
e7367ef86e Fork off version 13 of the compiler. 2020-09-08 18:38:05 -07:00