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
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
2418d851fc
feat: declarative module parser
...
/cc @leodemoura
2020-08-31 14:45:21 +02:00
Sebastian Ullrich
a6d29dbf9e
fix: lookahead.parenthesizer
2020-08-31 14:24:31 +02:00
Sebastian Ullrich
b624b7d03f
chore: remove obsolete header
2020-08-31 11:09:27 +02:00
Sebastian Ullrich
c88784ef9d
refactor: consistent io_result_mk* naming
...
/cc @leodemoura
2020-08-31 11:08:57 +02:00
Leonardo de Moura
48cef717aa
feat: improve tagUntaggedGoals
2020-08-30 16:35:00 -07:00
Leonardo de Moura
6ff03d7301
feat: improve case tactic
2020-08-30 16:27:30 -07:00
Leonardo de Moura
2f4340f63c
feat: refine refine tactic
...
Now `refine stx` reports an error when there are natural unassigned
metavariables after we elaborate syntax `stx`. The idea is that only
synthetic holes `?<hole-name>` become new goals.
The tactic `refine! stx` implements the Lean3 behavior.
2020-08-30 16:14:38 -07:00
Leonardo de Moura
e3f3a1db8f
feat: add refine! tactic syntax
2020-08-30 16:00:24 -07:00
Leonardo de Moura
7bd1cf718e
feat: improve error location for unassigned holes in the exact tactic
2020-08-30 15:37:11 -07:00
Sebastian Ullrich
1fb1a6f913
fix: do not expose invalid process handles when not redirected
2020-08-30 14:28:56 -07:00
Sebastian Ullrich
cc909e20e1
fix: handle SIGPIPE
2020-08-30 14:28:56 -07:00
Sebastian Ullrich
9f40e46043
feat: basic process API
2020-08-30 14:28:56 -07:00
Sebastian Ullrich
00f176de8d
fix: Windows debug build
2020-08-30 14:28:56 -07:00
Leonardo de Moura
35b11d582d
chore: naming convention
2020-08-30 14:26:03 -07:00
Leonardo de Moura
6f0e9452b2
chore: remove begin ... end syntax
...
We should use `by { ... }` from now on.
cc @Kha
2020-08-30 14:15:33 -07:00
Leonardo de Moura
3a9cfeb9fb
fix: lookahead.formatter
2020-08-30 08:37:51 -07:00
Leonardo de Moura
052e830db7
feat: add have, show, let, let!, and suffices tactic macros
...
They are all simple macros based on: `refine` + syntheticHoles
2020-08-30 08:26:15 -07:00
Leonardo de Moura
0a0ca9f930
fix: funImplicitBinder
2020-08-30 08:10:58 -07:00
Leonardo de Moura
b4f938d859
chore: namedHole => syntheticHole
2020-08-30 08:04:15 -07:00
Leonardo de Moura
89e0fa1488
chore: allow ?_
...
Note that `?_` is not equivalent to `_`. Both do not have a name, but
`?_` is a synthetic metavariable which **cannot** be assigned by typing
constraints, and `_` is a regular metavariable.
We use `?_` to mark an anonymous hole that must be filled using tactics.
@Kha I will rename `namedHole` to `syntheticHole`
2020-08-30 07:54:34 -07:00