Commit Graph

59 Commits

Author SHA1 Message Date
ddc73fb41a Change Show FC format to match vscode's expectation 2025-10-11 21:47:34 -07:00
2a5e5ae4f5 add error for stray, incorrect constructors 2025-10-10 09:03:25 -07:00
be40c431fe Add error when a constructor is used for a primitive argument.
Add testing for errors.
2025-10-06 15:21:54 -07:00
1432316fac SortedMap uses any comparator 2025-09-01 15:48:20 -07:00
fcee117260 [ libs ] move prelude file to src 2025-07-27 15:02:53 -07:00
0c72d690e3 [ libs ] add DecEq to Prelude 2025-07-27 15:02:49 -07:00
bcf34c0941 [ auto ] try autos if a meta in their type is solved
Also cut tryEval if the result is a lambda
2025-07-27 14:52:24 -07:00
a79f92793b [ fix ] solve autos in data declarations 2025-07-26 08:09:46 -07:00
0e110cd14f [ unify ] unify literals correctly 2025-07-26 08:07:48 -07:00
cae4368cd9 misc cleanup 2025-04-22 20:30:29 -07:00
8faecfdf9b record update syntax 2025-04-19 20:11:07 -07:00
549cca19e3 Add flags to TopEntry, detect duplicate constructors, fix issue with missing constructors in CompileExp. 2025-04-05 14:33:54 -07:00
5ab2a28bcf Prep to switch from Def to CExp for backend passes. 2025-03-15 15:46:56 -07:00
e3ae301c9c performance and code size improvements
- Use default case for constructors with no explicit match.
- self-compile is 15s now
- code size is 60% smaller

code size and self compile time on par with the idris-built version
2025-01-18 21:33:49 -08:00
5a6dcdb92b try solving autos when a related constraint is added 2025-01-02 22:44:17 -08:00
9ed2b2077d fixes and changes for porting
- forward declaration of records
- fixes to projections
- drop record accessors (use projections instead)
- changes to names to disambiguate
2025-01-01 20:21:07 -08:00
9a2eac0bd7 remove a Text.Parser dependency (about 10%), and alternate tokenizer 2024-12-28 21:51:55 -08:00
a6e68ac2a2 ability to run code and check output in tests 2024-12-28 13:19:15 -08:00
9655434b2a add namespaces to names 2024-12-26 18:51:46 -08:00
8d8078f968 improvements to erasure checking 2024-12-06 20:34:40 -08:00
e265248b11 change syntax for javascript code literals 2024-11-25 21:53:23 -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
3daf6b4dc2 add list concat sample 2024-11-09 10:01:50 -08:00
bbd4832671 printing improvements, improve case eval 2024-11-09 09:34:37 -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
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
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
e6502abeed update docs and a test 2024-10-30 08:21:33 -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
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
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
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
41a7563ad5 Variant on Tree, try not to expand too much 2024-10-17 21:55:50 -07:00
50ee14fc09 Get Tree.newt working 2024-10-16 22:39:44 -07:00
1695815fe3 comment out issue in Zoo4eg 2024-10-16 22:03:09 -07:00
75015f094a more test cases, problem in Tree.newt 2024-10-07 20:59:50 -07:00
38b09ac028 dotting issue 2024-10-03 21:37:50 -07:00
497ef7a9f0 Fix unification issues, add debug messages 2024-10-02 19:56:42 -07:00
76e627825c write output to file (if -o), cmd line parser, handle dup imports 2024-09-29 11:06:48 -07:00
9087ee6490 imports 2024-09-29 07:17:55 -07:00
beb7b1a623 1 + 1 = 2 2024-09-28 21:18:03 -07:00
94ffbdb3a2 fixes to casetree 2024-09-28 11:14:44 -07:00