Commit graph

6126 commits

Author SHA1 Message Date
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
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
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
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
Leonardo de Moura
995e11b64e chore: cleanup 2020-12-17 18:05:53 -08:00
Leonardo de Moura
dee3c2c8d8 feat: improve deriving DecidableEq 2020-12-17 17:30:23 -08:00
Leonardo de Moura
c428e4feaa fix: bug at injection 2020-12-17 17:30:23 -08:00
Leonardo de Moura
87b6385bea feat: add deriving DecidableEq 2020-12-17 17:30:23 -08:00
Leonardo de Moura
c7ae8354fd feat: improve type mismatch error messages
Use heuristic to automatically annotate terms with `pp.explicit`.
2020-12-17 07:11:52 -08:00
Sebastian Ullrich
567034e288 chore: benchmark stdlib with interpreter 2020-12-16 21:47:56 +01:00
Leonardo de Moura
a4901f131b feat: mark propDecidable as a scoped instance 2020-12-16 10:45:49 -08:00
Leonardo de Moura
8b51f6279e chore: fix tests 2020-12-16 10:45:27 -08:00
Sebastian Ullrich
29c2023410 fix: adapt to new matchAlt syntax 2020-12-16 18:52:56 +01:00
Sebastian Ullrich
4812f2aa64 chore: restore correct position for match errors 2020-12-16 18:27:05 +01:00
Sebastian Ullrich
f9dcbbddc4 refactor: remove optional leading pipe from match, use many1Indent instead of sepBy1 2020-12-16 18:27:05 +01:00
Leonardo de Moura
97642bd000 fix: prio issue 2020-12-16 07:44:48 -08:00
Leonardo de Moura
4e3e6dd922 fix: test 2020-12-15 20:38:21 -08:00
Leonardo de Moura
ed87480093 refactor: move to attr syntax category 2020-12-15 20:22:04 -08:00
Leonardo de Moura
f5de22ee36 chore: fix tests 2020-12-14 16:34:06 -08:00
Leonardo de Moura
abe7481453 feat: elaborate prio DSL 2020-12-14 16:25:10 -08:00
Leonardo de Moura
fcaf38d566 fix: handle prec DSL at infixl macro 2020-12-14 15:35:37 -08:00
Leonardo de Moura
9936040087 chore: fix test
TODO: add instance priorities.
2020-12-14 10:47:44 -08:00
Sebastian Ullrich
9a6af0f39f test: simplify beginEndAsMacro 2020-12-14 17:45:30 +01:00
Sebastian Ullrich
a914176897 test: fix... 2020-12-14 15:41:24 +01:00
Sebastian Ullrich
f641a660ce doc: include up-to-date begin-end macro code from test
@leodemoura: #include is pretty handy
2020-12-14 15:10:03 +01:00
Sebastian Ullrich
0316c872b9 feat: macro: use appropriate antiquotation kind dependent on bound syntax
/cc @leodemoura
2020-12-14 13:54:34 +01:00
Leonardo de Moura
bad714f5e9 feat: add deriving BEq 2020-12-13 16:13:27 -08:00
Leonardo de Moura
731ca49088 chore: cleanup 2020-12-13 15:51:34 -08:00
Leonardo de Moura
d6ba0592d1 chore: remove dead code 2020-12-13 15:50:08 -08:00
Leonardo de Moura
bbafaf8805 fix: Array.mk and Array.data externs 2020-12-13 11:10:01 -08:00
Leonardo de Moura
0bbc2ca884 feat: elaborate optDeriving 2020-12-13 09:05:03 -08:00
Leonardo de Moura
2a653743a1 test: simple test for deriving Inhabited
TODO: elaborate `optDeriving` suffix to `inductive/structure` commands
2020-12-12 18:58:56 -08:00
Leonardo de Moura
e9a1c3ac44 test: deriving experiment 2020-12-12 15:26:55 -08:00
Sebastian Ullrich
554d0b4d4c chore: adapt stdlib to new antiquotation splices 2020-12-12 17:20:03 +01:00
Sebastian Ullrich
8dfa588983 feat: introduce SepArray and use it for sepBy antiquotation splices 2020-12-12 16:02:15 +01:00
Sebastian Ullrich
9e06680541 chore: remove old antiquotations splice syntax 2020-12-12 14:57:14 +01:00
Sebastian Ullrich
a13f129312 feat: antiquotation suffix splices such as $x:k,*
/cc @leodemoura
2020-12-12 14:57:14 +01:00
Sebastian Ullrich
686a28fcc9 feat: allow do lifts inside unescaped antiquotations
/cc @leodemoura
2020-12-12 13:01:05 +01:00
Leonardo de Moura
ce1baa5f39 test: deriving command experiments 2020-12-11 18:34:17 -08:00
Sebastian Ullrich
bf63c4c0d0 feat: make sure dynamic quotations can only be used for parsers of arity 1 2020-12-11 21:34:30 +01:00
Sebastian Ullrich
591392840c fix: accept dynamic quotations in match 2020-12-11 21:34:30 +01:00
Leonardo de Moura
67379b359d fix: avoid macro scopes in error message 2020-12-11 11:23:44 -08:00
Leonardo de Moura
3682e3b993 chore: cleanup while/repeat example 2020-12-10 19:42:41 -08:00
Leonardo de Moura
f2ea45e68a feat: expose doSeq and termBeforeDo parsers
Users can use them to extend the `do` DSL.
2020-12-10 19:10:25 -08:00
Leonardo de Moura
c8298f4446 feat: support for big list literals
This encoding prevents stack overflows.
2020-12-10 17:19:46 -08:00
Leonardo de Moura
48af5627aa test: InductiveVal.isNested 2020-12-10 14:31:40 -08:00