Commit Graph

70 Commits

Author SHA1 Message Date
d2bbf681ea destructuring lets and arrows 2024-11-30 15:20:51 -08:00
067293ea85 Day5 2024-11-30 12:01:55 -08:00
d5a4d6253f port aoc2023 day4
more stuff in Prelude, typechecking fixes, solving autos
2024-11-30 10:27:06 -08:00
baeaf4295d Day3 working
- Fix string and character encoding in output
- Fix autos not solving if another extends context
2024-11-29 22:10:43 -08:00
18e44cb7d3 Improvements to erasure checking, fix to codegen issue 2024-11-29 10:02:45 -08:00
370fc8e0aa Add filenames to FC, relocate errors from other files in playground/vscode 2024-11-27 09:57:22 -08:00
d4bcbc5949 primitive erasure implementation, dead code elimination 2024-11-26 14:10:24 -08:00
07cbeec6cc add quantity to parser 2024-11-25 21:17:56 -08:00
6f954b1183 tweaks to playground files 2024-11-25 16:25:05 -08:00
5cbe594993 merge aoc lib and prelude 2024-11-23 15:08:49 -08:00
9b19c569c9 sugar in samples 2024-11-19 05:35:29 -08:00
6b36dd1cd1 First pass at sugar for instances. 2024-11-17 19:33:19 -08:00
454dccaa72 add sugar for if/then/else 2024-11-16 15:49:27 -08:00
b185065fb0 Port Prettier.idr to newt 2024-11-16 12:01:48 -08:00
26119be8b6 update readme 2024-11-15 21:16:32 -08:00
9faee86886 tweaks to output, fix scope issue in pprint 2024-11-15 16:49:31 -08:00
60abe813dc better names on solutions 2024-11-14 16:28:40 -08:00
f80fc9c0ff check for shadowed names at top level 2024-11-13 21:54: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
6abd97ee85 Improvements to grammar 2024-11-09 21:43:38 -08:00
bb749a917a forall / ∀ syntactic sugar 2024-11-09 20:17:38 -08:00
69693a4995 defer skolem issue from unsolved meta application 2024-11-09 14:50:50 -08:00
f0c9e3bf63 Add Tour.newt sample and make it the default.
Improvements to editor support.
2024-11-07 21:37:30 -08:00
eb1388caa8 change {A} to mean {_ : A} instead of {A : _} 2024-11-06 21:10:05 -08:00
375c16f4fd Search includes scope, tweak to code formatting 2024-11-06 20:53:44 -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
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
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
e8de2d4ccd Combine parser of app and operator 2024-10-29 17:59:24 -07:00
0fb5b08598 Typeclass works for Monad 2024-10-29 16:36:41 -07:00
e54aced733 Make eval less aggressive about substitution 2024-10-27 12:22:04 -07:00
95a4baf12d _+_ works with an Add typeclass now.
- add test case
- fix some issues with eval
- filter out non-candidates for auto search
2024-10-26 21:51:57 -07:00
e1ef6b5ee5 Preliminary work on autos 2024-10-25 21:07:12 -07:00
8c8cdf4f7f aoc2023 day2, codegen fixes, parsing fix 2024-10-23 20:36:39 -07:00
fe323618e7 Visible infix info from imports 2024-10-22 22:08:34 -07:00
19b42d72e5 update todo 2024-10-22 21:06:21 -07:00
9148852eb5 character lits, initial work on literal case trees 2024-10-21 22:53:05 -07:00
e67585c2b3 [ fix ] performance issue in Prettier during codegen of Tree.newt 2024-10-19 05:47:58 -07:00
1695815fe3 comment out issue in Zoo4eg 2024-10-16 22:03:09 -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
75015f094a more test cases, problem in Tree.newt 2024-10-07 20:59:50 -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
76e627825c write output to file (if -o), cmd line parser, handle dup imports 2024-09-29 11:06:48 -07:00
fa7d803ebb restructure Raw to separate import directives 2024-09-29 09:33:09 -07:00
9087ee6490 imports 2024-09-29 07:17:55 -07:00