c665310653
Address issues with unify's case tree in idris
...
Clean up some stuff in prelude
Add parser for where
2024-11-19 21:35:50 -08:00
6b36dd1cd1
First pass at sugar for instances.
2024-11-17 19:33:19 -08:00
fac34e729c
add sugar for typeclass
2024-11-16 21:08:01 -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
9767d92952
more tweaks to pretty printing.
2024-11-15 20:16:02 -08:00
9faee86886
tweaks to output, fix scope issue in pprint
2024-11-15 16:49:31 -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
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
91bb79a998
Mixfix operators
2024-11-10 21:13:18 -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
bbd4832671
printing improvements, improve case eval
2024-11-09 09:34:37 -08:00
bd51c8352a
expand scrutinee in eval
2024-11-08 20:46:34 -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
d82c224bc3
address overflow in Prettier,
...
move Pi constructor to before it is constructed
2024-11-06 06:59:23 -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
91eec503d1
clean up some vscode noise from backtracking
2024-10-30 21:39:26 -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
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
16e6325df3
check for implicit
2024-10-28 21:37:02 -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
44dd074a79
Finding simple autos after elab
2024-10-26 20:41:35 -07:00
9535675191
cleanup
2024-10-26 16:03:40 -07:00
3379e6ba3f
escape some javascript keywords
2024-10-26 08:02:57 -07:00
e1ef6b5ee5
Preliminary work on autos
2024-10-25 21:07:12 -07:00
8fe9613c02
additional syntactic sugar
...
- allow multiple names in infix, typesig, and dcon defs
- align fixities with Idris
2024-10-23 21:41:36 -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
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
e67585c2b3
[ fix ] performance issue in Prettier during codegen of Tree.newt
2024-10-19 05:47:58 -07:00
41a7563ad5
Variant on Tree, try not to expand too much
2024-10-17 21:55:50 -07:00