Commit Graph

62 Commits

Author SHA1 Message Date
3daf6b4dc2 add list concat sample 2024-11-09 10:01:50 -08:00
182876d16b Playground highlights and shows info/errors from build 2024-11-05 13:44:16 -08:00
f225d0ecbd Print meta info for claims and data, update sample code 2024-11-02 22:11:58 -07:00
d09afd89e0 Fix issue in case eval 2024-11-02 19:43:04 -08:00
6baee23a73 addZero now works
distinguish two modes of unification
while pattern matching we return constraints on variables, and normally
we are more aggressive about evaluating when matching against a variable.
fixes to `let`
surface #check in vscode
2024-11-02 18:23:46 -08:00
6164893da5 Parsing updates for unicode
- Allow unicode characters in indents and operators
- Show lexing errors
2024-11-02 10:22:04 -07:00
d41558c219 thinking about IO 2024-10-31 22:17:22 -07:00
a919799134 add list monad to tests 2024-10-30 21:56:02 -07:00
56e005d2dc misc cleanup 2024-10-30 21:23:17 -07:00
30648c8e9c do blocks seem to work now 2024-10-29 22:14:04 -07:00
b844d0b676 parsing and desugaring of do blocks. (Some inference issues remain.) 2024-10-29 21:05:47 -07:00
0fb5b08598 Typeclass works for Monad 2024-10-29 16:36:41 -07:00
d96e23d954 this can be inferred 2024-10-28 21:48:00 -07:00
e54aced733 Make eval less aggressive about substitution 2024-10-27 12:22:04 -07:00
50ee14fc09 Get Tree.newt working 2024-10-16 22:39:44 -07:00
a0ceac3167 most of Tree.newt working 2024-10-16 21:27:05 -07:00
558e7722b8 [ unify ] Don't add constraints for vvar with spine. Constrain vvar instead of η expanding. 2024-10-16 21:26:53 -07:00
7a8acd4c6f something else to fix 2024-10-12 22:16:46 -07:00
125a8c5ac5 Fix issue where top level is expanded, but stuck on Case 2024-10-08 21:18:17 -07:00
75015f094a more test cases, problem in Tree.newt 2024-10-07 20:59:50 -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
9087ee6490 imports 2024-09-29 07:17:55 -07:00
beb7b1a623 1 + 1 = 2 2024-09-28 21:18:03 -07:00
eb281fa3b3 Drop incompatible constructors in case 2024-09-27 20:50:57 -07:00
0e3a9fe605 notes on typeclass 2024-09-23 22:00:29 -07:00
38f01065eb mechanism for multiple errors printed at end of file 2024-09-18 22:21:10 -07:00
4f7b78f056 add types to metas, find example that needs postpone 2024-09-17 22:11:23 -07:00
ac7a61e1fd operators in case patterns 2024-09-14 21:44:41 -07:00
086f3d6541 matching on mixfix 2024-09-14 19:46:15 -07:00
331d966ef3 drop commit/mustWork for parsec approach. allow mixfix constructors 2024-09-14 14:46:04 -07:00
4e8f15c3fb add operators 2024-09-14 09:54:20 -07:00
7a681e5239 implicit patterns 2024-09-11 21:19:40 -07:00
391c9449ac Zonk metas in functions, optional type signature on ptype 2024-09-07 21:32:57 -07:00
f4cbde2c98 typeclass experiments 2024-09-07 17:26:49 -07:00
7154f874bf add smoke tests 2024-09-07 17:24:25 -07:00
88d8c73e36 cleanup 2024-09-07 13:39:29 -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
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
31a30ff7dc fromMaybe is working, but stuff feels a little messy/fragile 2024-09-02 14:14:35 -07:00
27432840a8 investigating issue 2024-08-31 20:45:46 -07:00
f3c02ed987 more work on casetree 2024-08-31 14:47:49 -07:00
987ab18b94 case builder starting to work 2024-08-30 22:07:47 -07:00
3cba2993e2 casetree prep 2024-08-29 21:59:54 -07:00
2c20cadd09 Fix RHole, add test files, papers, piforall examples 2024-08-22 22:08:26 -07:00
f6e47c8d22 more work on case 2024-08-22 13:34:09 -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
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