Leonardo de Moura
|
71f91cca23
|
chore: make sure isClass? return none when argument contains type errors
This is particularly useful for the delaborator when trying to pretty
print code that contains type errors.
|
2020-09-17 08:24:06 -07:00 |
|
Leonardo de Moura
|
57bed74871
|
chore: add Rewrite.lean
|
2020-09-17 08:15:58 -07:00 |
|
Leonardo de Moura
|
f4aabaecae
|
refactor: move Lean.quote to LeanInit
cc @Kha
|
2020-09-17 08:15:58 -07:00 |
|
Leonardo de Moura
|
9d1f2b644f
|
chore: rwRuleSeq ; => ,
|
2020-09-17 08:15:58 -07:00 |
|
Sebastian Ullrich
|
26ed304071
|
fix: pretty print simplified macro scopes
|
2020-09-17 17:13:50 +02:00 |
|
Sebastian Ullrich
|
3834a89cdc
|
feat: activate new pretty printer
|
2020-09-17 08:12:28 -07:00 |
|
Sebastian Ullrich
|
98453c468b
|
feat: formatter: don't escape inaccessible names
|
2020-09-17 08:12:28 -07:00 |
|
Sebastian Ullrich
|
9b6370bdbe
|
feat: formatter: escaping compound identifiers
|
2020-09-17 08:12:28 -07:00 |
|
Sebastian Ullrich
|
0b9e46eee5
|
chore: universe-+ spacing
|
2020-09-17 08:12:28 -07:00 |
|
Sebastian Ullrich
|
fad4660135
|
feat: pretty print space between binders
|
2020-09-17 08:12:28 -07:00 |
|
Sebastian Ullrich
|
986bb17e34
|
test: remove broken test case
|
2020-09-17 08:12:28 -07:00 |
|
Sebastian Ullrich
|
131f30f7a9
|
feat: pretty print tuples
|
2020-09-17 08:12:28 -07:00 |
|
Sebastian Ullrich
|
27d936ffa5
|
feat: pretty print structure instances
|
2020-09-17 08:12:28 -07:00 |
|
Sebastian Ullrich
|
532ea76a0a
|
fix: elaborator: do not panic on structure instance without expected type
|
2020-09-17 08:12:28 -07:00 |
|
Sebastian Ullrich
|
be85024724
|
fix: erase macro scopes on structure instance field names
|
2020-09-17 08:12:28 -07:00 |
|
Sebastian Ullrich
|
310fc986c1
|
chore: MetaHasEval TermElabM: print messages
|
2020-09-17 08:12:28 -07:00 |
|
Sebastian Ullrich
|
f4e6635f2b
|
chore: getMessageStringEx: show exception
|
2020-09-17 08:12:28 -07:00 |
|
Sebastian Ullrich
|
6a91fb1613
|
fix: delaborating projections
|
2020-09-17 08:12:28 -07:00 |
|
Sebastian Ullrich
|
c4761974b7
|
fix: runParserCategory: ensure EOI
|
2020-09-17 08:12:28 -07:00 |
|
Sebastian Ullrich
|
02a6b4d126
|
chore: remove obsolete code
|
2020-09-17 08:12:28 -07:00 |
|
Sebastian Ullrich
|
f09a83d38a
|
fix: delaborating projections
|
2020-09-17 08:12:28 -07:00 |
|
Sebastian Ullrich
|
bacc77efa1
|
feat: delaborate builtin operators
|
2020-09-17 08:12:28 -07:00 |
|
Sebastian Ullrich
|
fd423bada7
|
fix: pretty print loose bound variables
|
2020-09-17 08:12:28 -07:00 |
|
Sebastian Ullrich
|
753b598232
|
fix: delaborator: ignore mdata by default
|
2020-09-17 08:12:28 -07:00 |
|
Sebastian Ullrich
|
c4812f6e7a
|
feat: pretty print let
|
2020-09-17 08:12:28 -07:00 |
|
Sebastian Ullrich
|
4f5b59ad02
|
feat: pretty print shortened names (export/open/namespace/private)
|
2020-09-17 08:12:28 -07:00 |
|
Sebastian Ullrich
|
aae1f52580
|
fix: pretty print unknown fvars
|
2020-09-17 08:12:28 -07:00 |
|
Sebastian Ullrich
|
01ac1b1fda
|
fix: prevent infinite recursion on pretty printer failure
|
2020-09-17 08:12:28 -07:00 |
|
Sebastian Ullrich
|
b54fe2e17a
|
feat: hide optParams and autoParams by default
|
2020-09-17 08:12:28 -07:00 |
|
Sebastian Ullrich
|
78d3ea4ce3
|
feat: hide private names by default
|
2020-09-17 08:12:28 -07:00 |
|
Sebastian Ullrich
|
ab046db6ed
|
feat: prettify mvars somewhat
|
2020-09-17 08:12:28 -07:00 |
|
Sebastian Ullrich
|
650e836ab3
|
fix: pp internal names
|
2020-09-17 08:12:28 -07:00 |
|
Sebastian Ullrich
|
607227dc7f
|
feat: delaborator: tolerate ill-typed terms (such as IR)
|
2020-09-17 08:12:28 -07:00 |
|
Sebastian Ullrich
|
4d2efd4d08
|
fix: HasOrelse (DelabM _)
|
2020-09-17 08:12:28 -07:00 |
|
Leonardo de Moura
|
17d11b9566
|
chore: update stage0
|
2020-09-16 17:46:25 -07:00 |
|
Leonardo de Moura
|
a2e8a41f33
|
feat: rewrite tactic parser
|
2020-09-16 17:43:44 -07:00 |
|
Leonardo de Moura
|
c620a2a59d
|
feat: refine parser location
|
2020-09-16 17:28:09 -07:00 |
|
Leonardo de Moura
|
b37158f4f8
|
fix: apply
|
2020-09-16 16:18:30 -07:00 |
|
Leonardo de Moura
|
9f5e63cd3c
|
feat: add option pp.macroStack
@Kha I set it to `false` by default.
|
2020-09-16 15:29:28 -07:00 |
|
Leonardo de Moura
|
965a989dc2
|
fix: must log at evalCommand
Some macros expand a command into multiple commands. We should not
interrupt the elaboration of the command sequence when one fails.
|
2020-09-16 14:55:58 -07:00 |
|
Leonardo de Moura
|
a6715aff5b
|
chore: update stage0
|
2020-09-16 14:18:48 -07:00 |
|
Leonardo de Moura
|
0421f37eee
|
fix: lean4 support for exports in the old frontend
|
2020-09-16 14:16:03 -07:00 |
|
Leonardo de Moura
|
751db760d5
|
fix: sanitizeNames
A macro scoped name cannot shadow a name without macro scopes.
|
2020-09-16 13:54:30 -07:00 |
|
Leonardo de Moura
|
e10cd085f4
|
feat: use sanitizeNames at ppGoal
|
2020-09-16 13:39:06 -07:00 |
|
Leonardo de Moura
|
16ec9db1fc
|
chore: fix test
|
2020-09-16 13:12:00 -07:00 |
|
Leonardo de Moura
|
0e3a296fba
|
feat: use is_inaccessible_user_name in old pretty printer
|
2020-09-16 13:10:42 -07:00 |
|
Leonardo de Moura
|
a9f15f9a5b
|
chore: update stage0
|
2020-09-16 12:01:14 -07:00 |
|
Leonardo de Moura
|
18a7f5a489
|
feat: new name sanitizer
|
2020-09-16 11:57:55 -07:00 |
|
Leonardo de Moura
|
e88e398642
|
fix: multiple occurrences of named holes
@Kha I added a new test with the scenarios we discussed this morning.
|
2020-09-16 10:27:30 -07:00 |
|
Leonardo de Moura
|
f2835207a8
|
refactor: move isDefEqGuarded helper
|
2020-09-16 10:15:47 -07:00 |
|