Commit graph

26011 commits

Author SHA1 Message Date
Leonardo de Moura
095e07d52d chore: letrec => let rec
cc @Kha
2020-09-01 13:27:41 -07:00
Leonardo de Moura
b9d50d2adf refactor: expandDeclId 2020-09-01 13:12:36 -07:00
Leonardo de Moura
5e5b75af61 chore: remove withDeclId 2020-09-01 13:04:08 -07:00
Leonardo de Moura
d7e99c76c3 feat: mutual + namespace macro 2020-09-01 12:25:29 -07:00
Leonardo de Moura
961c6f9be8 chore: update stage0 2020-08-31 18:13:15 -07:00
Leonardo de Moura
821b1c2b6c chore: remove arity
@Kha I improved the arity calculation for `extern`s.
2020-08-31 16:38:39 -07:00
Leonardo de Moura
5da3d9bf70 fix: quotation 2020-08-31 16:35:37 -07:00
Leonardo de Moura
ce819b015f chore: update stage0 2020-08-31 16:30:45 -07:00
Leonardo de Moura
217b7fc2b8 feat: improve extern arity calculation 2020-08-31 16:29:27 -07:00
Leonardo de Moura
8e179ed829 feat: macros in mutual blocks and elabMutualDef entry point 2020-08-31 15:37:41 -07:00
Leonardo de Moura
b192293b8a feat: allow arbitrary commands (except end) in a mutual block
This is useful, for example, for having a mutual command with macros
that expand into definitions.
2020-08-31 15:37:41 -07:00
Leonardo de Moura
346537bd74 chore: update stage0 2020-08-31 15:37:41 -07:00
Leonardo de Moura
2563d03ae2 feat: add notFollowedBy 2020-08-31 15:37:41 -07:00
Leonardo de Moura
25384142c2 feat: add addPartialDecls
Helper method for implementing the idiom: unsafe decls + constant with `[implementedBy]`
2020-08-31 14:23:54 -07:00
Leonardo de Moura
1dcffe5714 feat: add setImplementedBy 2020-08-31 14:23:54 -07:00
Leonardo de Moura
9f16d01058 refactor: reduce DeclModifiers dependencies 2020-08-31 10:12:06 -07:00
Sebastian Ullrich
4bce9eb9a5 doc: document lean_st_ref_get peculiarity 2020-08-31 15:55:21 +02:00
Sebastian Ullrich
7083aeea83 chore: adapt to upstream 2020-08-31 06:50:01 -07:00
Wojciech Nawrocki
bbcc718c8d chore: more server fixes 2020-08-31 06:50:01 -07:00
Wojciech Nawrocki
7b9363c828 refactor: simplify document storage in server 2020-08-31 06:50:01 -07:00
Sebastian Ullrich
2d501ea980 chore: temporarily ignore regions leaks until we fix the server design 2020-08-31 06:50:01 -07:00
Wojciech Nawrocki
633acebd0f chore: server style fixes 2020-08-31 06:50:01 -07:00
Sebastian Ullrich
94084557cd perf: allocation-free UTF-16 position computation 2020-08-31 06:50:01 -07:00
Wojciech Nawrocki
ab27e607d6 fix: LSP utility bugs 2020-08-31 06:50:01 -07:00
Sebastian Ullrich
d33b5a8ea6 chore: remove confusing comment 2020-08-31 06:50:01 -07:00
Wojciech Nawrocki
7a7a14c8b9 chore: no leading commas 2020-08-31 06:50:01 -07:00
Wojciech Nawrocki
17acb78bb1 fix: more lenient server shutdown params 2020-08-31 06:50:01 -07:00
Wojciech Nawrocki
f3d640a7cf feat: report parser errors in server 2020-08-31 06:50:01 -07:00
Wojciech Nawrocki
70cf20c0ab feat: document Emacs setup 2020-08-31 06:50:01 -07:00
Wojciech Nawrocki
7b971c6cc5 fix: server test 2020-08-31 06:50:01 -07:00
Wojciech Nawrocki
4356017035 chore: copyright 2020-08-31 06:50:01 -07:00
Wojciech Nawrocki
23feb04d60 chore: clean up LSP code style and add more definitions from the spec 2020-08-31 06:50:01 -07:00
Wojciech Nawrocki
098c7af1b6 feat: server tests 2020-08-31 06:50:01 -07:00
Wojciech Nawrocki
e9607d3095 chore: rename Structured and Structure 2020-08-31 06:50:01 -07:00
Wojciech Nawrocki
86968b5c45 feat: fix UTF-8/16 and add ServerM monad
Emojis work now 🎉
2020-08-31 06:50:01 -07:00
Wojciech Nawrocki
58551721ee chore: namespaces 2020-08-31 06:50:01 -07:00
Wojciech Nawrocki
e1db04d347 feat: more robust snapshot-based recompilation 2020-08-31 06:50:01 -07:00
Wojciech Nawrocki
e137fa780f feat: WIP snapshots
Allow interactive editing by only recompiling parts of the file below the edit.
2020-08-31 06:50:01 -07:00
Wojciech Nawrocki
0405fde21f feat: handle hovers with null replies 2020-08-31 06:50:01 -07:00
Wojciech Nawrocki
c089ccb9c6 fix: omit header on didChange
This won't do because it breaks parsing if the header changes and recompiles all commands, but it's fine as a temporary fix.
2020-08-31 06:50:01 -07:00
Wojciech Nawrocki
a4cb8249d9 chore: fixup after rebase 2020-08-31 06:50:01 -07:00
Marc Huisinga
1b3d254dd0 feat: add emptyEnv and add initSearchPath temporarily so that server binary finds LEAN_PATH 2020-08-31 06:50:01 -07:00
Wojciech Nawrocki
c40ccfe399 feat: readme 2020-08-31 06:50:01 -07:00
Wojciech Nawrocki
6581ceba3e feat: handle close and shutdown 2020-08-31 06:50:01 -07:00
Wojciech Nawrocki
86582ac73c feat: edits seem to work now 2020-08-31 06:50:01 -07:00
Wojciech Nawrocki
2de92bf9bb fix: correct line numbers 2020-08-31 06:50:01 -07:00
Wojciech Nawrocki
46803ca25b feat: working diagnostics (modulo line numbers) 2020-08-31 06:50:01 -07:00
Marc Huisinga
e7b3d0be59 feat: initial server implementation 2020-08-31 06:50:01 -07:00
Sebastian Ullrich
75b2dc1baf refactor: simplify ppModule using new module parser 2020-08-31 15:44:58 +02:00
Sebastian Ullrich
eb9eba957f chore: update stage0 2020-08-31 14:47:00 +02:00