Leonardo de Moura
43fbfec1fd
chore: avoid Array.iterate and Array.iterateM
2020-10-22 16:30:04 -07:00
Leonardo de Moura
e899dc5e16
chore: remove workaround
2020-10-22 05:16:48 -07:00
Leonardo de Moura
fc323b5aaa
chore: remove workaround
2020-10-22 04:42:59 -07:00
Leonardo de Moura
82ee2e361b
chore: cleanup
2020-10-21 18:43:47 -07:00
Leonardo de Moura
ea829b75c0
chore: remove coercions for old frontend
2020-10-21 17:37:35 -07:00
Leonardo de Moura
943687ad09
chore: move to new frontend
...
@Kha all files at `src/Lean` and `src/Std` have been moved to the new
frontend :)
Next target `src/Init`
2020-10-21 17:31:25 -07:00
Leonardo de Moura
0c89dca20e
chore: move to new frontend
2020-10-21 17:09:24 -07:00
Leonardo de Moura
b555307f06
chore: move to new frontend
2020-10-21 16:35:50 -07:00
Leonardo de Moura
93f7b1d7bc
chore: move to new frontend
2020-10-20 16:13:07 -07:00
Leonardo de Moura
e9c481e42d
chore: move to new frontend
2020-10-20 12:08:48 -07:00
Leonardo de Moura
17b3376439
chore: move to new frontend
2020-10-20 12:06:02 -07:00
Leonardo de Moura
491199fc13
chore: move to new frontend
2020-10-20 11:32:28 -07:00
Leonardo de Moura
518faa71b4
chore: move to new frontend
2020-10-20 11:19:44 -07:00
Leonardo de Moura
2469efa9ff
chore: move to new frontend
2020-10-20 11:12:42 -07:00
Leonardo de Moura
ef18b0ab49
chore: use [builtinInit]
2020-10-19 14:58:38 -07:00
Leonardo de Moura
5e0121c8dc
feat: add f!<interpolated string> macro for Format
2020-10-16 15:29:15 -07:00
Sebastian Ullrich
a3f216967e
fix: make Format.be tail recursive again
2020-10-14 17:23:51 +02:00
Sebastian Ullrich
d3463ef091
fix: break grouped fill items containing hard line breaks
2020-10-14 14:24:47 +02:00
Sebastian Ullrich
1f772aaa6c
fix: Format.be: count space in front of fill item
2020-10-14 14:24:47 +02:00
Sebastian Ullrich
af78e6cc18
refactor: Format.be: reuse pushGroup in line case
2020-10-14 14:24:47 +02:00
Sebastian Ullrich
381db5265a
refactor: monadify Format.be
2020-10-14 14:24:47 +02:00
Sebastian Ullrich
121b956bb4
refactor: make more internal Format stuff private
2020-10-14 14:24:47 +02:00
Sebastian Ullrich
7e5cd0d171
fix: Format.be: respect indent when trying to fit fill item in a new line
2020-10-14 14:24:47 +02:00
Leonardo de Moura
3e4bfe9a85
fix: missing coercion for new frontend
2020-10-10 07:07:14 -07:00
Sebastian Ullrich
be7a3b76eb
feat: Format.fill
2020-10-07 15:30:36 +02:00
Sebastian Ullrich
df16221013
fix: Format.be: properly re-evaluate flattening after hard line break
2020-10-07 11:03:44 +02:00
Sebastian Ullrich
1fc1c55ed2
refactor: Format.be: explicit WorkItem structure
2020-10-07 10:09:05 +02:00
Sebastian Ullrich
3030c1ef7a
fix: Format.merge
2020-10-07 09:44:04 +02:00
Sebastian Ullrich
02001971c6
feat: Format: allow negative indentation to cancel out undesired automatic indentation
2020-10-07 09:44:04 +02:00
Sebastian Ullrich
98b3251fd3
feat: Format.pretty: support hard line breaks
2020-10-07 09:43:05 +02:00
Sebastian Ullrich
c3ebb6ad1f
fix: Format.group ignored preceding content on line
2020-10-07 09:43:05 +02:00
Sebastian Ullrich
31a2761bec
perf: make Format.group a constructor, flatten on the fly
2020-10-07 09:43:05 +02:00
Sebastian Ullrich
7154c2380b
refactor: simplify Format.SpaceResult
2020-10-07 09:43:05 +02:00
Sebastian Ullrich
b4ea61e79d
fix: NameSet.insert return type
2020-09-29 07:59:22 -07:00
Sebastian Ullrich
97a2198fe0
feat: change default indent width from 4 to 2 spaces
2020-09-18 13:15:40 -07:00
Sebastian Ullrich
4f5b59ad02
feat: pretty print shortened names (export/open/namespace/private)
2020-09-17 08:12:28 -07:00
Sebastian Ullrich
650e836ab3
fix: pp internal names
2020-09-17 08:12:28 -07:00
Leonardo de Moura
0abca5475f
refactor: move ppExpr to IO
...
@Kha I am also tracking `currNamespace` and `openDecls`.
BTW, I also tried an experiment where I added `currNamespace` and
`openDecls` to `Meta.Context`, but it looked weird. This information
is only needed in the elaborator and pretty printer.
The `PPContext` object should contain everything you need. You
can put `currNamespace` and `openDecls` in the `Delaborator.Context`.
2020-09-15 18:48:21 -07:00
Leonardo de Moura
c8a4252461
refactor: move OpenDecl to Data
2020-09-15 16:53:53 -07:00
Leonardo de Moura
98a8867d90
chore: add coercions for new frontend
2020-09-13 12:00:32 -07:00
Leonardo de Moura
b025c1c623
chore: remove HasEmptyc workarounds
2020-09-11 14:28:42 -07: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
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
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