Commit graph

379 commits

Author SHA1 Message Date
Leonardo de Moura
eb9d793e79 feat: def-like elaboration skeleton 2020-01-04 08:48:00 -08:00
Leonardo de Moura
52a27c08cf chore: remove hack 2020-01-03 18:29:18 -08:00
Leonardo de Moura
2f3c6a8185 feat: check attribute name 2020-01-03 18:15:55 -08:00
Leonardo de Moura
bc7455e04e refactor: CommandElabM and FrontendM in IO 2020-01-03 18:15:45 -08:00
Leonardo de Moura
3264210d88 chore: helper functions 2020-01-03 12:24:14 -08:00
Leonardo de Moura
2b4a7ae6a4 feat: elaborate declaration modifiers 2020-01-03 12:13:03 -08:00
Leonardo de Moura
54fd9a2e4a chore: naming convention 2020-01-03 12:12:45 -08:00
Daniel Selsam
91f97fb0d9 fix: typos in SynthInstance.lean 2020-01-03 10:29:01 -08:00
Leonardo de Moura
e949a052ba feat: elaborate where 2020-01-02 15:01:26 -08:00
Leonardo de Moura
3f51857275 feat: add where syntax 2020-01-02 14:55:18 -08:00
Leonardo de Moura
16aff9a182 feat: elaborate have 2020-01-02 14:16:20 -08:00
Leonardo de Moura
04a0907954 feat: add throwUnexpectedSyntax
@kha From now on, let's use `throwUnexpectedSyntax` instead of `unreachable!` at
`match_syntax`. The `unreachable!` makes sense when the syntax was
created by our parser, but ill-formed syntax may be created by macros,
and we have no control on how users will create the resulting syntax object.
2020-01-02 13:51:02 -08:00
Leonardo de Moura
9f69991d80 feat: elaborate show notation 2020-01-02 13:30:11 -08:00
Leonardo de Moura
a3675b99e6 feat: add parameter postponeOnError : Bool to synthesizeSyntheticMVarsStep
@Kha: I implemented the option 2 I described on Zulip.
2020-01-02 13:13:58 -08:00
Leonardo de Moura
db96b08257 feat: elaborate anonymous constructor 2020-01-02 10:41:04 -08:00
Leonardo de Moura
0ffd1526bd feat: elaborate subtype 2020-01-02 10:12:19 -08:00
Leonardo de Moura
8f805f5d2f feat: elaborate if-then-else 2020-01-01 16:12:26 -08:00
Leonardo de Moura
cbe65a068e fix: addLValArg 2020-01-01 16:02:55 -08:00
Leonardo de Moura
2ca96cb2b0 feat: include macroStack in error messages 2020-01-01 15:19:04 -08:00
Leonardo de Moura
b429794ebc chore: naming convention 2020-01-01 15:04:20 -08:00
Leonardo de Moura
9d25a45074 feat: elaborate character literals 2020-01-01 14:37:40 -08:00
Leonardo de Moura
6c04a4bcc3 feat: mkElabAttribute 2020-01-01 10:59:29 -08:00
Leonardo de Moura
73e114c6a2 chore: remove unnecessary argument 2020-01-01 09:19:00 -08:00
Leonardo de Moura
d37d02b512 fix: more general instance 2020-01-01 09:16:29 -08:00
Leonardo de Moura
1d4ef0eff5 feat: register new syntax node kinds 2019-12-31 16:50:04 -08:00
Leonardo de Moura
90178dc3d9 feat: add syntaxNodeKindExtension
It contains all `SyntaxNodeKind`s registered in the system.
2019-12-31 16:36:50 -08:00
Leonardo de Moura
af5b52092d feat: register parser extensions tokens 2019-12-31 16:05:14 -08:00
Leonardo de Moura
b17f822488 fix: mkInitial 2019-12-31 13:51:12 -08:00
Leonardo de Moura
88339be110 refactor: improve initialization 2019-12-31 13:39:36 -08:00
Leonardo de Moura
78c53d8351 feat: implement some TODOs at TokenTableAttribute 2019-12-31 13:24:36 -08:00
Leonardo de Moura
069eb0275c fix: missing registerAttribute and applicationTime 2019-12-31 12:21:54 -08:00
Leonardo de Moura
b3d3d3c41a fix: initialization issue 2019-12-31 12:13:30 -08:00
Leonardo de Moura
59c7f75dda feat: add addParserAttribute 2019-12-31 12:07:58 -08:00
Leonardo de Moura
76ec8fc843 chore: add TODO 2019-12-31 11:57:50 -08:00
Leonardo de Moura
d584f1b24e feat: add Environment as an extra parameter to addImportedFn 2019-12-31 11:11:37 -08:00
Leonardo de Moura
5a743cddeb feat: improve registerParserAttribute 2019-12-31 10:49:04 -08:00
Leonardo de Moura
7057d71971 refactor: add new parameter to PersistentEnvExtension 2019-12-31 09:18:40 -08:00
Leonardo de Moura
491028df25 feat: add compileParserDescr 2019-12-30 22:11:49 -08:00
Leonardo de Moura
45075c135d chore: move ParserKind to LeanExt 2019-12-30 22:11:49 -08:00
Leonardo de Moura
a1f079227b chore: prepare to move ParserKind 2019-12-30 22:11:49 -08:00
Leonardo de Moura
fb86f2e421 feat: add LeanExt.lean and ParserDescr type 2019-12-30 13:51:40 -08:00
Leonardo de Moura
c650e11d6b fix: missing isUnsafe fieldat OpaqueVal 2019-12-30 11:53:08 -08:00
Leonardo de Moura
28a4859832 feat: expose evalConst
@Kha Could you please check `lean_eval_const`?
2019-12-30 11:41:36 -08:00
Leonardo de Moura
b1570ba865 feat: elaborate sortApp 2019-12-30 11:00:13 -08:00
Leonardo de Moura
74741bf613 feat: elaborate explicit universe levels 2019-12-30 10:52:22 -08:00
Sebastian Ullrich
ec13f37414 refactor: use more quotations in the elaborator 2019-12-30 10:19:14 -08:00
Leonardo de Moura
387dbd4036 feat: add liftLevelM 2019-12-30 09:49:04 -08:00
Sebastian Ullrich
eb2f26a71e fix: let $e now matches the whole letDecl, so specify kinds 2019-12-30 08:24:30 -08:00
Sebastian Ullrich
6fc47e4baf fix: match_syntax should not check kind of anonymous antiquotations 2019-12-30 08:24:29 -08:00
Sebastian Ullrich
30e795a84d feat: allow $(x) in match_syntax patterns 2019-12-30 08:24:29 -08:00