71cf4f39f5
Make $ special
2024-11-30 15:51:06 -08:00
18e44cb7d3
Improvements to erasure checking, fix to codegen issue
2024-11-29 10:02:45 -08:00
e265248b11
change syntax for javascript code literals
2024-11-25 21:53:23 -08:00
b185065fb0
Port Prettier.idr to newt
2024-11-16 12:01:48 -08:00
e6944bc842
Add example from youtube, allow unicode type names
2024-11-14 21:07:49 -08:00
60abe813dc
better names on solutions
2024-11-14 16:28:40 -08:00
a186c15477
suppress closure env in printing
2024-11-13 22:03:00 -08:00
0589a30d40
Address a few issues in Combinatory.newt
2024-11-13 20:25:02 -08:00
9e72ed67fc
refactoring
...
- move over to env for unify et al
- fix issue where constraint had short context
- drop parameters block - make it clear where context is being used
2024-11-12 21:34:43 -08:00
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