Commit graph

23158 commits

Author SHA1 Message Date
Leonardo de Moura
83ae3b7aaa fix: bug introduced when moving to new frontend 2020-12-21 07:34:48 -08:00
Sebastian Ullrich
3e77c7cdef fix: error position 2020-12-21 16:25:01 +01:00
Sebastian Ullrich
772e62dfaa chore: update stage0 2020-12-21 16:25:01 +01:00
Sebastian Ullrich
756d7643f0 chore: rename syntaxMaxDepth option for consistency and discoverability
/cc @leodemoura
2020-12-21 16:25:01 +01:00
Sebastian Ullrich
af89c89c4e feat: option pp.raw.showInfo 2020-12-21 16:25:01 +01:00
Sebastian Ullrich
cf7f60b470 feat: attach getRef position to symbols from quotations
/cc @leodemoura
2020-12-21 16:24:39 +01:00
Sebastian Ullrich
c54f9dd8c8 feat: "slice" patterns [$x, $y, $zs,*, $w] in syntax match
/cc @leodemoura
2020-12-21 15:29:46 +01:00
Leonardo de Moura
6d9a548b93 chore: update stage0 2020-12-20 17:54:20 -08:00
Leonardo de Moura
e8e991064e chore: remove workaround at expandDoIf? 2020-12-20 17:53:19 -08:00
Leonardo de Moura
7c69988106 chore: update stage0 2020-12-20 17:49:40 -08:00
Leonardo de Moura
340cade575 fix: bug at specialize.cpp 2020-12-20 17:48:46 -08:00
Leonardo de Moura
76eb163a0f chore: use new pretty printer at specialize trace messages 2020-12-20 16:44:55 -08:00
Leonardo de Moura
2da48e8739 feat: use new pretty printer to trace all compiler steps 2020-12-20 16:44:40 -08:00
Sebastian Ullrich
bc3e9ce961 feat: if let pat ← ... 2020-12-20 23:58:29 +01:00
Sebastian Ullrich
90f747e346 fix: don't change antiquotations semantics in do if 2020-12-20 17:51:37 +01:00
Sebastian Ullrich
a56fd6a8c0 chore: Quotation: minor comments fixes 2020-12-20 16:46:03 +01:00
Sebastian Ullrich
83304b8a0c chore: Nix: preserve source paths in debug builds 2020-12-20 16:46:03 +01:00
Sebastian Ullrich
eeb0cad29e feat: if let
/cc @leodemoura
2020-12-20 16:46:03 +01:00
Sebastian Ullrich
94ef018d6e chore: update stage0 2020-12-20 13:53:02 +01:00
Sebastian Ullrich
fdbec9101f fix: pattern reordering in syntax match 2020-12-20 13:52:25 +01:00
Leonardo de Moura
acfdd7d5b7 fix: doc
Example only works with `defaultInstance` for `ToString`.
2020-12-19 23:06:04 -08:00
Leonardo de Moura
fcd55b598b chore: update stage0 2020-12-19 20:01:48 -08:00
Leonardo de Moura
91f0e29285 feat: parallel for 2020-12-19 20:01:04 -08:00
Leonardo de Moura
ff9858aa87 chore: update stage0 2020-12-19 19:27:52 -08:00
Leonardo de Moura
0911936502 feat: parallel for notation 2020-12-19 19:26:53 -08:00
Leonardo de Moura
339a4cf740 chore: remove defaultInstance for ToString 2020-12-19 19:10:42 -08:00
Leonardo de Moura
074259201e feat: add helper classes for implementing parallel for
It is based on an approach suggested by Andrew Kent, and refined by
Sebastian Ullrich.

TODO: expand the the parallel `for`s at `Do.lean`.
2020-12-19 14:15:47 -08:00
Sebastian Ullrich
efc2b79aba feat: as patterns in syntax match
@leodemoura no problem using the new architecture :)
2020-12-19 22:03:37 +01:00
Sebastian Ullrich
5b06e1011f fix: completely refactor syntax match handling, introduce "undecided" patterns to resolve complex cases 2020-12-19 22:03:37 +01:00
Leonardo de Moura
bbcd2247f2 feat: extend valid set of valid auto bound names
@Kha The motivation was Andrew's example :)
Users often use `u₁`, `u1`, `u₂`, ... to name universe variables.
2020-12-19 12:36:19 -08:00
Leonardo de Moura
498dae8fab chore: add trace messages 2020-12-19 12:26:37 -08:00
Leonardo de Moura
987b719048 chore: update stage0 2020-12-18 14:35:28 -08:00
Leonardo de Moura
68701b86e4 feat: add Repr Name 2020-12-18 14:32:49 -08:00
Leonardo de Moura
d22c5cb1b0 feat: add deriving Repr 2020-12-18 14:19:43 -08:00
Leonardo de Moura
793ffa2f11 feat: add helper class ReprAtom 2020-12-18 14:14:46 -08:00
Leonardo de Moura
230a5aca7e test: mutual deriving BEq test 2020-12-18 12:36:16 -08:00
Leonardo de Moura
b6905f66d6 fix: missing files 2020-12-18 11:47:00 -08:00
Leonardo de Moura
6890b43366 refactor: generalize Deriving.Util auxiliary methods 2020-12-18 11:43:37 -08:00
Leonardo de Moura
a1d2ba0b61 feat: add test for new repr 2020-12-18 11:21:30 -08:00
Leonardo de Moura
92f0afa424 chore: fix tests 2020-12-18 11:21:30 -08:00
Leonardo de Moura
5f6e66a53f refactor: Repr
Modifications:
- Result type is `Format`
- It takes the context precedence like Haskell `Show`
2020-12-18 11:21:30 -08:00
Leonardo de Moura
2e11c3bdff feat: dependencies 2020-12-18 11:21:30 -08:00
Leonardo de Moura
40bfafdadb refactor: dependencies 2020-12-18 11:21:30 -08:00
Leonardo de Moura
15335efae2 refactor: move Format to Init package
We are going to use it to define `Repr` class.
2020-12-18 11:21:30 -08:00
Sebastian Ullrich
1fc5b30fe1 chore: measure stage 2 sizes & add C lines benchmark 2020-12-18 17:47:11 +01:00
Sebastian Ullrich
7f2caac0b7 chore: update stage0 2020-12-18 17:27:54 +01:00
Sebastian Ullrich
0ddc932052 fix: interpreter cache leak by simplifying it after all 2020-12-18 17:06:35 +01:00
Sebastian Ullrich
94cfff5118 refactor: simplify syntax match logic 2020-12-18 17:05:20 +01:00
Leonardo de Moura
995e11b64e chore: cleanup 2020-12-17 18:05:53 -08:00
Leonardo de Moura
67bcff3bc8 chore: use deriving DecidableEq 2020-12-17 17:48:23 -08:00