Commit Graph

28 Commits

Author SHA1 Message Date
greg 276dad56d7 Handle tuple literals in type system 2018-03-03 11:55:20 -08:00
greg 695e733584 Sum types in type schema 2018-03-03 11:52:07 -08:00
greg 9bfd751db6 Kill unused import 2018-03-03 11:32:38 -08:00
greg 9ab1ca28f8 Improve tokenizer debug output 2018-03-02 22:11:25 -08:00
greg a105c84943 Kill debug 2018-03-01 22:54:03 -08:00
greg 2b8d63d9cc Better debugging for types 2018-03-01 22:32:38 -08:00
greg c807c20292 Use UVars in type signatures of functions 2018-03-01 03:35:09 -08:00
greg 55e372a670 Introduced fresh type variable method 2018-02-28 05:45:20 -08:00
greg c50626241e Continuing work 2018-02-27 03:01:05 -08:00
greg 232bec97a7 Re-added symbol table infra 2018-02-26 21:43:53 -08:00
greg ce1d967f08 Some logic for function call inferring 2018-02-26 21:28:11 -08:00
greg daa0062108 Starting on function application typechecking 2018-02-26 21:00:36 -08:00
greg f7659a5598 Handle variable lookups 2018-02-26 18:23:10 -08:00
greg d9e96398a4 More operator stuff 2018-02-26 02:21:21 -08:00
greg bb2e1ae27a Added type information to binop definitions
Also started centralizing precedence there too
2018-02-24 17:37:23 -08:00
greg d229a57837 Finished initial BinOp/PrefixOp 2018-02-23 19:06:37 -08:00
greg 501b975fb6 Move bx! macro up to mod.rs
And make use of it in parser
2018-02-23 03:04:19 -08:00
greg 83315e97ac Move anno-to-type to a method on TypeName 2018-02-23 02:30:34 -08:00
greg 1caccc6ae2 Some work on binops 2018-02-23 01:49:37 -08:00
greg 23af2b1455 Some more type-checking work 2018-02-22 19:59:53 -08:00
greg e7103b925b type of a declaration should be Void, not Unit
I think this makes sense

Also kill some compiler warnings
2018-02-22 03:25:05 -08:00
greg c35401da65 Types in bindings 2018-02-22 03:21:58 -08:00
greg d51a9a73d7 Simplified match 2018-02-22 00:31:13 -08:00
greg 12f55fa844 More static type work 2018-02-21 18:12:46 -08:00
greg bb0fb716e4 Finished basic constant type inference 2018-02-21 14:14:24 -08:00
greg 687d482853 More type implementing - WIP
This has a borrowing bug currently
2018-02-21 04:32:30 -08:00
greg 4c8b4c8c71 Starting basic type stuff 2018-02-21 03:39:40 -08:00
greg c674148772 Starting over with types 2018-02-21 02:35:09 -08:00