Commit Graph

23 Commits

Author SHA1 Message Date
c7593e831e Get AOC day1 working
- Fixes to codegen for literal cases.
- Fix parsing of string literals
- Work around stack overflow in Prettier
2024-10-22 20:30:20 -07:00
9148852eb5 character lits, initial work on literal case trees 2024-10-21 22:53:05 -07:00
33ec03f2da codegen fixes 2024-10-19 06:42:43 -07:00
497ef7a9f0 Fix unification issues, add debug messages 2024-10-02 19:56:42 -07:00
151f678f75 Work on usable codegen
- escape js names
- executable output
- better FC in parsing
- experiment with IO
2024-09-29 22:17:51 -07:00
e066a304cd Cleanup comments, codegen for primitive type constructors. 2024-09-14 11:39:03 -07:00
90f3229af5 Don't run switch for single cases 2024-09-11 16:23:14 -07:00
06f7ba0984 remove zero-argument functions / applications in generated code 2024-09-07 11:41:16 -07:00
796d93d7d9 tighten up generated code 2024-09-07 11:26:11 -07:00
26ed1355f5 case statement fixes 2024-09-07 10:55:51 -07:00
1d1dd678c3 I think I have case expressions compiling 2024-09-05 22:05:21 -07:00
24ce520680 Wire casetree into checking for embedded case statements 2024-09-04 22:14:40 -07:00
9db5649446 primitive string and int, primitive functions, codegen fixes 2024-08-22 19:41:24 -07:00
1fef9dcfc6 fresh names, move case stuff along a little 2024-08-13 07:43:00 -07:00
023e9e61ad codegen improvements 2024-08-12 11:54:08 -07:00
d39c9aa9b2 Add CExp 2024-08-11 22:22:09 -07:00
32536fc264 notes 2024-08-09 10:25:28 -07:00
c1c1cc0e0e compile data constructors (need to get arity in funcalls) 2024-08-09 10:03:22 -07:00
0058b6b724 Tighten up generated code 2024-08-09 07:12:42 -07:00
449b6762a6 codegen for functions.
- I think next is slightly messed up (wrong indent on first line)
- dcon need code
2024-08-08 22:59:07 -07:00
13dd77345c Process pattern in correct order 2024-08-08 10:53:45 -07:00
c0f9262c9a nf the types, block comments, more eq example now that we have implicits 2024-07-16 08:10:43 -07:00
a385d1225d wip compile, drop let 2024-07-14 16:50:39 -07:00