Leonardo de Moura
94689ca91f
chore: fix test
2020-08-13 16:55:03 -07:00
Leonardo de Moura
69ee44d68e
feat: match-expressions showing signs of life
2020-08-13 16:51:31 -07:00
Leonardo de Moura
a670de93cd
chore: fix test
2020-08-13 14:59:37 -07:00
Leonardo de Moura
08f1c2310b
chore: enforce naming convention
2020-08-13 14:09:00 -07:00
Leonardo de Moura
5b1b11ffe0
feat: add isCharLit
2020-08-13 13:15:15 -07:00
Leonardo de Moura
145a3dddca
chore: remove ref from patterns
...
We don't use them to report errors. We only need `ref` at `Alt`
2020-08-13 12:31:32 -07:00
Leonardo de Moura
a6b22728ca
chore: reduce stack space requirements in test
2020-08-13 12:13:38 -07:00
Leonardo de Moura
5ba9aad7a3
refactor: eliminate ref plumbing
2020-08-13 10:37:53 -07:00
Leonardo de Moura
d7add53229
feat: add MonadExceptCore
2020-08-13 09:19:26 -07:00
Leonardo de Moura
bd7a7ed623
refactor: reduce ref plumbing
...
TODO: reduce `ref` plumbing at `CommandElabM`
2020-08-12 20:23:02 -07:00
Leonardo de Moura
f924b481c2
chore: simplify mkElim interface
2020-08-12 16:34:43 -07:00
Sebastian Ullrich
1972e04302
test: parenthesizer no longer dependent on importing Lean
2020-08-12 09:15:59 -07:00
Sebastian Ullrich
1f4cc130b7
feat: precompile parenthesizers instead of interpreting them
2020-08-12 09:15:59 -07:00
Sebastian Ullrich
b2714d36ef
fix: String: take/drop characters, not bytes
2020-08-11 18:24:47 -07:00
Leonardo de Moura
d1d91b3a50
chore: fix test
2020-08-10 11:19:05 -07:00
Leonardo de Moura
e59735bde9
chore: fix test
...
@Kha the tests `Reparen.lean` and `Reformat.lean` are still
broken. Could you please take a look?
They broke because I changed the `match` syntax at 3ce794c58 .
2020-08-10 10:20:57 -07:00
Leonardo de Moura
43317d5598
fix: nullary minor premises must be thunks
2020-08-08 16:23:50 -07:00
Leonardo de Moura
d2206dcab2
feat: as-patterns x@pattern
2020-08-08 16:12:44 -07:00
Leonardo de Moura
0ca83699d7
fix: array literal support at DepElim
2020-08-08 15:21:35 -07:00
Leonardo de Moura
0fa404ead2
feat: add support for array literals in the pattern matching compiler
2020-08-07 17:13:15 -07:00
Leonardo de Moura
2e3b158e34
chore: hack for testing array literals in patterns
2020-08-07 16:46:15 -07:00
Leonardo de Moura
e1be008516
feat: add caseArraySizes
...
An auxiliary tactic for pattern matching array literals.
2020-08-07 16:04:57 -07:00
Leonardo de Moura
6b18f486d1
feat: add mkLt and mkLe
2020-08-07 14:47:11 -07:00
Leonardo de Moura
3b0ec1b20a
feat: add mkDecideProof
2020-08-07 13:48:37 -07:00
Leonardo de Moura
aefc9a473f
feat: add auxiliary definitions for compiling array literals in pattern matching expressions
2020-08-07 09:23:33 -07:00
Leonardo de Moura
251f0cc085
chore: minor tests
2020-08-06 17:00:19 -07:00
Leonardo de Moura
aa972878d8
feat: add processValue
2020-08-06 16:34:37 -07:00
Leonardo de Moura
fd9be5e8ae
feat: add caseValues tactic
...
It is an auxiliary tactic for compiling pattern matching.
2020-08-06 15:37:00 -07:00
Leonardo de Moura
f934a86646
feat: add (ref : Syntax) to Meta.Exception.other
...
@Kha The Syntax is here just to provide possition information. The
goal is to improve error message location information in code such as `DepElim`.
2020-08-06 09:40:16 -07:00
Sebastian Ullrich
a0b0dbd0ac
fix: formatStx
2020-08-06 09:27:12 -07:00
Sebastian Ullrich
a35e1c79b7
test: add reformat test
2020-08-06 09:27:12 -07:00
Sebastian Ullrich
1d725f7c83
feat: almost activate new pretty printer by default
2020-08-06 09:27:12 -07:00
Sebastian Ullrich
19563961e2
feat: more whitespace in term parsers
2020-08-06 09:27:12 -07:00
Sebastian Ullrich
e6442d3177
feat: force whitespace in sort applications
2020-08-06 09:27:12 -07:00
Sebastian Ullrich
01456b1b00
fix: Term.app: force whitespace in front of each argument
2020-08-06 09:27:12 -07:00
Sebastian Ullrich
6a8048fb97
test: formatter: check for round-trip through parser
2020-08-06 09:27:12 -07:00
Sebastian Ullrich
e8ca2e3f62
feat: formatter: push space at checkWsBefore
2020-08-06 09:27:12 -07:00
Sebastian Ullrich
07928f301f
feat: formatter: separate tokens where necessary
2020-08-06 09:27:12 -07:00
Sebastian Ullrich
33a963d82b
refactor: make formatter stack-based, much like the parser
2020-08-06 09:27:12 -07:00
Sebastian Ullrich
37d890b950
fix: atoms might need backtracking as well, e.g. in fieldIdx <|> ident
2020-08-06 09:27:12 -07:00
Sebastian Ullrich
c5d226ba36
feat: HasBeq for Syntax, Substring
2020-08-06 09:26:49 -07:00
Sebastian Ullrich
8ea547ad29
test: remove stray files
2020-08-06 09:26:49 -07:00
Sebastian Ullrich
c8b6020bb3
test: do not ignore whitespace in diff
...
It doesn't look like we were relying on it much
2020-08-06 09:26:48 -07:00
Leonardo de Moura
e818368c96
refactor: move EqnCompiler to Meta folder
2020-08-06 09:10:01 -07:00
Leonardo de Moura
9084c4fafc
feat: add DepElim.lean
2020-08-05 16:03:33 -07:00
Leonardo de Moura
b3dcd35661
fix: bugs at cases tactic
2020-08-05 09:44:26 -07:00
Leonardo de Moura
fe27eab6f1
chore: fix tests
...
Metavariables are not being purified anymore
2020-08-04 18:55:26 -07:00
Leonardo de Moura
6be71b337f
refactor: add prototype2.lean
2020-08-04 18:35:11 -07:00
Leonardo de Moura
b23e59d509
feat: allow #eval to update Environment
...
See new `MetaHasEval`.
cc @Kha
2020-07-30 16:48:31 -07:00
Leonardo de Moura
1e1ac497da
feat: add Meta.mkListLit and Meta.mkArrayLit
2020-07-29 18:01:26 -07:00