Commit graph

1556 commits

Author SHA1 Message Date
Leonardo de Moura
37b2393479 chore: change antiquotation symbol 2019-12-17 15:24:12 -08:00
Leonardo de Moura
f09e2ab069 feat: elabParen using match_syntax 2019-12-17 14:55:40 -08:00
Leonardo de Moura
a1373d68c9 fix: fun (_ : A) => ... notation 2019-12-17 14:28:48 -08:00
Leonardo de Moura
35aa0faec5 chore: style 2019-12-17 14:16:40 -08:00
Leonardo de Moura
60b5810a10 feat: elaborate fun with patterns 2019-12-17 14:11:44 -08:00
Leonardo de Moura
f6d9f4029e feat: elaborate cdot 2019-12-17 13:41:46 -08:00
Leonardo de Moura
1b6319788e feat: elaborate parenSpecial 2019-12-17 13:32:46 -08:00
Leonardo de Moura
746782a99b chore: add withMacro 2019-12-17 13:19:39 -08:00
Sebastian Ullrich
1c566a86f0 doc: comment on scp 2019-12-17 12:16:34 -08:00
Sebastian Ullrich
5de274781b refactor: remove broken support for nested antiquotations 2019-12-17 12:16:34 -08:00
Sebastian Ullrich
f7a12ab132 doc: Hygiene.lean 2019-12-17 12:16:34 -08:00
Sebastian Ullrich
0e3f6fa3aa doc: add comments on syntax quotation elab 2019-12-17 12:16:34 -08:00
Sebastian Ullrich
e54d96ad5b chore: avoid let-bindings match_syntax RHSs for now because of elaboration issues 2019-12-17 12:16:34 -08:00
Sebastian Ullrich
71f569e9b9 feat: implement antiquotation kinds %%e:k and splices %%e* 2019-12-17 12:16:34 -08:00
Sebastian Ullrich
086bcae041 refactor: quoteSyntax: use TermElabM 2019-12-17 12:16:34 -08:00
Sebastian Ullrich
6a2dbad53f feat: match_syntax support in the old parser 2019-12-17 12:16:34 -08:00
Sebastian Ullrich
e8944fcf9d feat: implement match_syntax 2019-12-17 12:16:34 -08:00
Sebastian Ullrich
53276e99dc feat: implement proper macro scope handling for TermElabM 2019-12-17 12:16:34 -08:00
Sebastian Ullrich
de091d1eef feat: use addMacroScope in syntax quotation terms 2019-12-17 12:16:34 -08:00
Sebastian Ullrich
2310ec2413 chore: separate C++ calls for parsing & expansion 2019-12-17 12:16:34 -08:00
Sebastian Ullrich
76eb7ad205 feat: handle nested quotation-antiquotations 2019-12-17 12:16:34 -08:00
Sebastian Ullrich
6dac30d8c3 feat: extend MonadQuotation and make Unhygienic at least a locally correct implementation 2019-12-17 12:16:34 -08:00
Sebastian Ullrich
5db6ebed32 refactor: add HasQuote class 2019-12-17 12:16:34 -08:00
Sebastian Ullrich
88bbae29fe refactor: use TermElab in quotation expander, polish Unhygienic story 2019-12-17 12:16:34 -08:00
Sebastian Ullrich
027b3921b3 fix: don't panic on unsupported antiquotation content 2019-12-17 12:16:13 -08:00
Sebastian Ullrich
b5e5a02c8d refactor: use quotation terms in quotation term elaborator 2019-12-17 12:16:13 -08:00
Leonardo de Moura
2e8b7b2461 feat: expanding cdot notation 2019-12-17 12:09:41 -08:00
Leonardo de Moura
3d6146756f feat: elaborate lambda abstractions 2019-12-17 11:44:40 -08:00
Leonardo de Moura
d9d1c67d86 feat: add cdot notation detection
We need `fun` elaboration.
2019-12-17 10:21:39 -08:00
Leonardo de Moura
d3da0abc8a chore: style 2019-12-17 10:21:20 -08:00
Leonardo de Moura
9760ddfd92 feat: add new kind 2019-12-17 10:21:03 -08:00
Leonardo de Moura
1b9fb2f726 fix: elabNum 2019-12-16 17:51:29 -08:00
Leonardo de Moura
c5d2b06037 feat: add decLevel? 2019-12-16 17:32:35 -08:00
Leonardo de Moura
e922f8a46c feat: split synthetic into synthetic and syntheticOpaque 2019-12-16 17:06:45 -08:00
Leonardo de Moura
827c0c3294 doc: update synthetic metavariable comment 2019-12-16 11:50:27 -08:00
Leonardo de Moura
0ca5239de9 chore: Field ==> LVal 2019-12-16 10:47:31 -08:00
Leonardo de Moura
c6c68cc4b1 feat: elaborate numerals 2019-12-16 10:28:28 -08:00
Leonardo de Moura
b8257f2317 feat: add HasOfNat
It is used to encode numerical literals in the new frontend.
2019-12-16 10:28:28 -08:00
Leonardo de Moura
34b8e3ef04 feat: elaborate string literals 2019-12-16 10:28:28 -08:00
Leonardo de Moura
964f30deb7 feat: proper nodes for str, num and char 2019-12-16 10:28:27 -08:00
Leonardo de Moura
ecb1bc982f feat: invoke ensureHasType at elabArg 2019-12-16 10:28:27 -08:00
Leonardo de Moura
067dca5a65 chore: naming convention 2019-12-15 18:28:00 -08:00
Leonardo de Moura
e0510520ed chore: update TODOs 2019-12-15 18:12:45 -08:00
Leonardo de Moura
356e914ea7 feat: elaborate a[i] notation 2019-12-15 18:05:53 -08:00
Leonardo de Moura
d551ff653d feat: add getOp for a[i] notation 2019-12-15 17:52:03 -08:00
Leonardo de Moura
9d4f2bc4a8 fix: break identifier into pieces 2019-12-15 08:20:52 -08:00
Leonardo de Moura
eca87dabb4 feat: field notation elaboration 2019-12-15 08:15:20 -08:00
Leonardo de Moura
248cc2ec3a chore: naming convention 2019-12-15 07:48:42 -08:00
Leonardo de Moura
ac86983128 chore: naming convention 2019-12-15 07:40:32 -08:00
Leonardo de Moura
767d6f946e chore: rename get! ==> getAt! 2019-12-15 07:31:30 -08:00