Sebastian Ullrich
564d2be3b3
feat: KVMap.forIn
2020-11-03 12:36:33 +01:00
Leonardo de Moura
bcae20381f
chore: naming convention
2020-10-31 19:19:18 -07:00
Leonardo de Moura
0f3bd8abb4
feat: add rfl and decide! tactic macros
2020-10-29 16:42:22 -07:00
Leonardo de Moura
f31b0d7d19
chore: cleanup
2020-10-29 09:35:12 -07:00
Leonardo de Moura
898a08a0c1
chore: avoid Has prefix in type classes
...
closes #203
2020-10-27 18:29:19 -07:00
Leonardo de Moura
97c93ec557
chore: prepare to rename
2020-10-27 18:09:03 -07:00
Leonardo de Moura
ff493751b5
chore: HasFormat ==> ToFormat
2020-10-27 16:19:14 -07:00
Leonardo de Moura
5fed774461
chore: HasRepr ==> Repr
2020-10-27 16:15:10 -07:00
Leonardo de Moura
10c32fcf94
chore: HasToString => ToString
2020-10-27 16:11:48 -07:00
Leonardo de Moura
13c2a8ff51
chore: remove #lang lean4 header
2020-10-25 09:54:07 -07:00
Leonardo de Moura
de66ca3943
feat: add helper functions for writing macros
2020-10-23 10:59:59 -07:00
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