Commit Graph

358 Commits

Author SHA1 Message Date
da1f2705ee Remove erased function args in scheme 2026-03-21 08:25:00 -07:00
f3f9d737cf also drop singleton cases for lit / default 2026-03-20 08:01:31 -07:00
cfdddbb002 cons/nil for pair/unit in scheme backend
Some checks failed
Publish Playground / build (push) Has been cancelled
Publish Playground / deploy (push) Has been cancelled
2026-03-18 17:30:28 -07:00
5eb43f6252 Cons/Nil optimization for scheme backend 2026-03-18 17:30:17 -07:00
4ce5d470ba streamline generated code a little 2026-03-16 21:56:03 -07:00
fe96f46534 First pass at a scheme backend
Some checks failed
Publish Playground / build (push) Has been cancelled
Publish Playground / deploy (push) Has been cancelled
2026-03-16 17:03:33 -07:00
92ced8dcd2 LSP document symbols 2026-03-07 21:33:12 -08:00
90e36d8faf Remove some ambiguities in parsing 2026-03-06 21:41:26 -08:00
0d974dd42d fix parse issue for typed lamda arguments 2026-02-27 20:45:01 -08:00
7a763bf40a Looping TCO for singleton components 2026-02-26 22:18:10 -08:00
d5b5ee8265 Wire web playground to LSP code 2026-02-25 19:41:57 -08:00
4c5cd4dec0 continue after import error, fix error order 2026-02-24 22:25:16 -08:00
c15f22a180 Use deriving
Some checks failed
Publish Playground / build (push) Has been cancelled
Publish Playground / deploy (push) Has been cancelled
2026-02-24 21:21:44 -08:00
983dde4de2 derive Show and Eq, improvements to LSP 2026-02-24 20:14:30 -08:00
a789cffcce move Error to its own file 2026-02-24 11:04:38 -08:00
90e4bba766 Jump to source for imports 2026-02-24 10:28:59 -08:00
ccdb15c6ec import action for out of scope names, start introducing error types
Some checks failed
Publish Playground / build (push) Has been cancelled
Publish Playground / deploy (push) Has been cancelled
2026-02-24 09:33:53 -08:00
69a7b6bed8 Fix LSP slowness, improve error messages 2026-02-23 20:48:25 -08:00
3cc3801f4d Add "intro" to LSP, improve error locations 2026-02-23 13:16:06 -08:00
34744a8edc refactor TopContext to use a ModContext for the current context 2026-02-21 21:34:16 -08:00
0a5ad3cc9b Switch to esm, add #export statement to newt, tweaks to LSP 2026-02-21 15:08:15 -08:00
c54b856f0b Don't allow uppercase pattern variables 2026-02-20 18:44:47 -08:00
7d5789147d cleanup 2026-02-20 18:44:44 -08:00
32400bdd4e slight performance tweak 2026-02-18 21:45:26 -08:00
587b2c4a60 Change FC end column to be one past the end 2026-02-18 10:39:56 -08:00
cd31156404 add missing and case split for lsp 2026-02-17 22:01:58 -08:00
fa0eb3a26d Better location on an error 2026-02-16 21:46:49 -08:00
7f2fa27aa6 cleanup 2026-02-16 11:59:34 -08:00
d86c257426 Show user info messages in LSP, invalidate modules transitively on change 2026-02-16 09:22:49 -08:00
adff28ea0f Remove some workarounds for record update issues 2026-02-15 21:51:16 -08:00
3201139523 improvements to type checking of record updates 2026-02-15 21:38:44 -08:00
24048eadf1 use string for module names 2026-02-13 10:18:28 -08:00
4ec199b064 persist errors in modules 2026-02-13 09:58:09 -08:00
e08d201c24 Make adding primitives more robust 2026-02-13 09:26:02 -08:00
e1d83556ae LSP jump to definition 2026-02-12 21:59:56 -08:00
a9718621e3 Initial LSP implementation/vscode support
Some checks failed
Publish Playground / build (push) Has been cancelled
Publish Playground / deploy (push) Has been cancelled
2026-02-12 20:26:15 -08:00
6c4d01d4c4 check in import loop test, remove dead code/comment 2026-02-11 20:09:12 -08:00
ad4dce9d0e Use List String for module name, add abstraction for loading files (prep for LSP)
Some checks failed
Publish Playground / build (push) Has been cancelled
Publish Playground / deploy (push) Has been cancelled
2026-02-11 19:53:59 -08:00
6a16dc6150 better name for metas
Some checks failed
Publish Playground / build (push) Has been cancelled
Publish Playground / deploy (push) Has been cancelled
2026-02-11 13:32:45 -08:00
a17a9c4342 fix pipe issue in REPL, add ability to dump top in repl 2026-02-09 10:36:59 -08:00
08ed4178cf Fix FC on imports - make empty bounds the identity 2026-02-09 10:16:56 -08:00
d36f6ddacb Add missing import in vscode, fix add missing cases at EOF
Some checks failed
Publish Playground / build (push) Has been cancelled
Publish Playground / deploy (push) Has been cancelled
2026-02-07 22:25:18 -08:00
bca61f95a0 Improve error locations 2026-02-07 16:55:33 -08:00
2766a4ae01 Unsolved metas are errors 2026-02-07 16:26:07 -08:00
00296f4d10 Allow local names to override imports 2026-02-07 11:02:51 -08:00
0c206a94ab Forward declaration syntax for data
Allow:
```newt
data Foo : U
```
as a forward declaration for data. (The `Foo : U` syntax still works for
now.)
2026-02-07 07:52:00 -08:00
c3e70c9ecc operator sections
Some checks failed
Publish Playground / build (push) Has been cancelled
Publish Playground / deploy (push) Has been cancelled
2026-01-31 13:21:23 -08:00
eed5c09508 Minor changes 2026-01-31 12:52:01 -08:00
f3a18fa658 Fix stray skolem issue
Sometimes a Bound variable on the LHS became Defined to itself.
This commit also resurfaces INFO messages, to aid finding the root
cause of errors.
2026-01-31 12:49:39 -08:00
3dd9955533 Postpone non-linear solutions 2026-01-23 08:49:30 -08:00