Commit Graph

20 Commits

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