Commit graph

237 commits

Author SHA1 Message Date
Wojciech Nawrocki
198be2c8a7 chore: no backticks in Name JSON 2021-08-24 08:57:41 -07:00
Wojciech Nawrocki
e4fb367f20 chore: make rpc/connect a request 2021-08-24 08:57:41 -07:00
Wojciech Nawrocki
fd016c6065 chore: address some comments 2021-08-24 08:57:41 -07:00
Wojciech Nawrocki
568cc3cf11 refactor: consistent naming of widget modules 2021-08-24 08:57:41 -07:00
Wojciech Nawrocki
ce7f31a654 feat: keep-alive semantics for RPC sessions 2021-08-24 08:57:41 -07:00
Wojciech Nawrocki
d116e2e923 feat: batch RPC release 2021-08-24 08:57:41 -07:00
Wojciech Nawrocki
ae24d8a2db feat: interactive diagnostics take 1 2021-08-24 08:57:41 -07:00
Wojciech Nawrocki
d7c3866e14 perf: tail-recursive Json.compress 2021-08-24 08:57:41 -07:00
Wojciech Nawrocki
2a20d41cd9 feat: BEq Json 2021-08-24 08:57:41 -07:00
Wojciech Nawrocki
dae1a94d53 feat: misc server additions 2021-08-24 08:57:41 -07:00
Leonardo de Moura
6ced2cdece refactor: move lean_name_eq to runtime, add lean_name_hash in C 2021-08-16 16:13:55 -07:00
Leonardo de Moura
4b58c4cc02 refactor: instances that "hide" coercions
Example:
```
instance [CoeHTCT α β] [Add β] : HAdd α β β where
  hAdd a b := Add.add a b
```
2021-08-13 17:18:55 -07:00
Leonardo de Moura
2dfde4637f fix: index out of bounds 2021-08-12 05:39:19 -07:00
Leonardo de Moura
c913886938 chore: add private annotations 2021-08-03 18:15:39 -07:00
Leonardo de Moura
01d902f905 feat: add register_option command
User-defined options.
2021-08-03 14:31:04 -07:00
Leonardo de Moura
526cbfbcd0 refactor: add ImportingFlag.lean 2021-08-03 14:29:36 -07:00
Wojciech Nawrocki
f1b4d9a193 chore: restore non-generic Format
Motivation: it is unclear whether this is the best solution for embedding objects in pretty-printer outputs.
2021-08-01 09:58:44 +02:00
Wojciech Nawrocki
f51b80060d feat: generic tagged Format 2021-08-01 09:58:44 +02:00
Wojciech Nawrocki
d3ca1e98e9 refactor: make lsp/release a notification 2021-08-01 09:58:44 +02:00
Wojciech Nawrocki
55ffb73bbe refactor: rename rpc/initialize to rpc/connect 2021-08-01 09:58:44 +02:00
Leonardo de Moura
6cc30a3f90 feat: add NameSSet
Staged set of names
2021-07-31 14:24:00 -07:00
Leonardo de Moura
2abafd9df4 feat: add "staged set" helper type 2021-07-31 14:23:29 -07:00
Leonardo de Moura
bd60e59f9a feat: add HashMap.insert'
The new function returns a flag indicating whether the new entry
replaced an existing or not.
We use it to implement `importModules`.
2021-07-31 13:42:01 -07:00
Wojciech Nawrocki
ffc6efd5d0 fix: use properly random RPC session id 2021-07-24 10:45:28 +02:00
Wojciech Nawrocki
9a5cdaf506 chore: address review 1 2021-07-24 10:45:28 +02:00
Wojciech Nawrocki
f077dd05d3 feat: RPC ref decrement 2021-07-24 10:45:28 +02:00
Wojciech Nawrocki
80d90038ad feat: add Format tags 2021-07-24 10:45:28 +02:00
Wojciech Nawrocki
d97e1b91ea chore: drop RPC wrappers for now 2021-07-24 10:45:28 +02:00
Wojciech Nawrocki
b3316fd9c2 feat: RPC handlers 2021-07-24 10:45:28 +02:00
Wojciech Nawrocki
4d83e79121 feat: more RPC handlers 2021-07-24 10:45:28 +02:00
Wojciech Nawrocki
3ec568c110 feat: initial RPC 2021-07-24 10:45:28 +02:00
Wojciech Nawrocki
079c290ce0 feat: JSON serde for Name and USize 2021-07-24 10:45:28 +02:00
Daniel Fabian
0d41fd03f7 feat: add xml parser.
in order to generate the LLVM extern declarations we want to use a generator that spits out XML. Hence adding a small XML parser.
2021-07-13 09:58:27 -07:00
Wojciech Nawrocki
521ed11330 chore: move parseTagged
It should live in Lean.Data.Json.FromToJson because many modules import that but not Lean.Elab.Deriving.FromToJson.
2021-07-12 09:10:29 +02:00
Leonardo de Moura
f4a7ffd8c8 chore: fix codebase and tests 2021-06-29 17:14:52 -07:00
Sebastian Ullrich
cef3ade164 fix: info on non-atomic simp args 2021-06-23 00:08:07 -07:00
Sebastian Ullrich
eb1e285e26 chore: style 2021-06-21 10:17:26 -07:00
Gabriel Ebner
5786f58738 feat: plain term goal request 2021-06-07 16:23:22 -07:00
Sebastian Ullrich
0c3c0ed735 fix: ignore notifications in readResponseAs 2021-06-07 13:21:13 +02:00
Daniel Fabian
63d58c2f64 refactor: use Except instead of Option in the JSON code. 2021-06-07 12:10:10 +02:00
Gabriel Ebner
f50647e1c2 doc: describe non-standard requests and notifications 2021-06-05 13:49:28 +02:00
Gabriel Ebner
501c31da4d feat: send $/lean/fileProgress notification 2021-06-05 13:49:28 +02:00
Leonardo de Moura
7424f9c8b0 chore: remove HashableUSize 2021-06-02 09:58:46 -07:00
Leonardo de Moura
d435b435c5 chore: remove workaround 2021-06-02 08:06:52 -07:00
Leonardo de Moura
5219593823 chore: use UInt64 to define Name 2021-06-02 08:00:23 -07:00
Leonardo de Moura
43812444a7 chore: Hashable => HashableUSize 2021-06-02 07:24:26 -07:00
Sebastian Ullrich
619873c842 feat: make System.FilePath opaque 2021-05-28 14:19:59 +02:00
Sebastian Ullrich
a02c6fd3eb chore: adapt stdlib & tests 2021-05-20 15:17:36 -07:00
Sebastian Ullrich
23f0c1051c feat: improve ToString/Quote Name 2021-05-19 09:34:01 +02:00
Sebastian Ullrich
3f9c015dd4 feat: pp.proofs & pp.proofs.withType
Resolves #210
2021-05-14 15:14:58 +02:00