Commit graph

4966 commits

Author SHA1 Message Date
Leonardo de Moura
86edc94dbe feat: add support for elaborating raw literals 2020-01-18 20:02:50 -08:00
Leonardo de Moura
60a9aa52c5 feat: add Array.getSepElems
cc @Kha
2020-01-18 19:12:44 -08:00
Leonardo de Moura
3e86608ce2 fix: erase macro scopes from parser categories 2020-01-18 19:10:35 -08:00
Leonardo de Moura
ad72ec4d0d feat: eval <|> tactic 2020-01-18 18:26:25 -08:00
Leonardo de Moura
66b222879e feat: eval case tactic 2020-01-18 17:47:43 -08:00
Leonardo de Moura
39dc349167 feat: eval tactic block 2020-01-18 17:22:01 -08:00
Leonardo de Moura
88f5bf8250 feat: evaluate exact tactic 2020-01-18 11:08:16 -08:00
Leonardo de Moura
b2ade985a8 feat: elaborate macro command 2020-01-17 19:52:29 -08:00
Leonardo de Moura
98d9022321 chore: cleanup and new test 2020-01-17 18:07:58 -08:00
Leonardo de Moura
0caa11e242 chore: adjust frontend to new app representation, and fix tests 2020-01-17 17:34:48 -08:00
Leonardo de Moura
f2231ebbc0 feat: improve macro command parser 2020-01-17 09:37:36 -08:00
Leonardo de Moura
a98b6763ad fix: code and tests 2020-01-17 08:11:06 -08:00
Leonardo de Moura
14ae1166b1 feat: add unboxSingleton trick to sepBy1 2020-01-16 20:57:18 -08:00
Leonardo de Moura
833b1b0ff3 feat: add evalIntro 2020-01-16 20:10:24 -08:00
Leonardo de Moura
c7d96a6522 fix: theorem values are tasks 2020-01-16 17:20:36 -08:00
Leonardo de Moura
293990a309 feat: add eval for seq and assumption 2020-01-16 17:04:21 -08:00
Leonardo de Moura
0b26fd2983 feat: allow empty begin .. end blocks, better position information 2020-01-16 16:07:59 -08:00
Leonardo de Moura
0e8c8784a5 feat: elaborate notation 2020-01-15 20:53:24 -08:00
Leonardo de Moura
d0f7467c95 test: add trailing parser 2020-01-15 20:53:23 -08:00
Leonardo de Moura
d9c6624a0a feat: add support for trailing syntax 2020-01-15 20:53:23 -08:00
Leonardo de Moura
c254fd5796 test: minor 2020-01-15 20:53:23 -08:00
Leonardo de Moura
b9c161b30c feat: elaborate macro command 2020-01-15 20:53:23 -08:00
Leonardo de Moura
42de170088 chore: fix test 2020-01-15 20:53:23 -08:00
Leonardo de Moura
b14c7cb69b feat: allow user to set nodeKind at syntax command 2020-01-14 18:51:31 -08:00
Leonardo de Moura
1e8291bf7e chore: fix test 2020-01-14 18:43:58 -08:00
Leonardo de Moura
9f14a45cef fix: Level parser 2020-01-14 18:43:42 -08:00
Leonardo de Moura
664172d266 feat: elaborate syntax command 2020-01-14 18:18:43 -08:00
Leonardo de Moura
983579c0cf feat: enable leadingIdentAsSymbol for tactic category 2020-01-13 16:20:34 -08:00
Simon Hudon
dd6e95c718 fix: lowercase error messages 2020-01-12 11:05:48 -08:00
Sebastian Ullrich
2e5f62d44f test: parser/macro macros 2020-01-12 10:32:27 -08:00
Leonardo de Moura
64ef03d736 chore: lowercase error messages
@cipher1024 We use lowercase error messages in Lean. I know other
systems capitalize, but we need consistency.
2020-01-12 08:21:26 -08:00
Simon Hudon
6d8927da10 fix: little details 2020-01-12 08:02:48 -08:00
Simon Hudon
92c8773137 feat: file IO using handles 2020-01-12 08:02:48 -08:00
Leonardo de Moura
c358d688c6 chore: fix tests 2020-01-11 15:20:37 -08:00
Leonardo de Moura
f83678f19b chore: fix test 2020-01-11 13:55:31 -08:00
Leonardo de Moura
6762f8ea9a test: old frontend exports at new frontend
We can now "see" exports made in the old frontend in the new one.

cc @dselsam @kha
2020-01-11 13:50:18 -08:00
Leonardo de Moura
246e0a5532 fix: propagate type before synthesizeSyntheticMVars 2020-01-11 12:01:12 -08:00
Leonardo de Moura
82a36fbfe2 feat: declare_syntax_cat without importing Init.Lean
cc @Kha
2020-01-11 09:02:50 -08:00
Leonardo de Moura
95ed5bd468 chore: fix test 2020-01-10 21:26:09 -08:00
Leonardo de Moura
e817257922 feat: elaborate declare_syntax_cat
TODO: `registerParserCategory` uses `registerAttribute` which relies
on the environment having a declaration of type `AttributeImpl`.
This is bad since forces users to import `Init.Lean`.

@Kha The key problem is that we cannot serialize `AttributeImpl`.
I will try to address this issue tomorrow. I am considering different
workarounds.
2020-01-10 21:10:02 -08:00
Leonardo de Moura
f73ff914eb feat: extensible elaboration functions
@kha `termParserAttr.lean` has a small example
2020-01-10 15:05:14 -08:00
Leonardo de Moura
f60c8c6249 test: add kabstract tests 2020-01-10 13:30:50 -08:00
Leonardo de Moura
f8c7d6ca6b feat: elaborate optParam 2020-01-10 09:32:01 -08:00
Leonardo de Moura
733ea89000 feat: improve application type mismatch error message 2020-01-09 16:41:27 -08:00
Leonardo de Moura
693d7dcf62 test: add class projection test 2020-01-09 16:25:12 -08:00
Leonardo de Moura
bba9cdd8ff feat: improve support for nat literals 2020-01-09 15:36:46 -08:00
Leonardo de Moura
3d1ee3f408 fix: add isNewAnswer predicate
reactivate `typeclass_coerce.lean` test
2020-01-09 13:37:21 -08:00
Leonardo de Moura
c49e43f69f chore: reactivate typeclass test 2020-01-09 11:47:48 -08:00
Leonardo de Moura
bc393a750d chore: reactivate typeclass test
I had to split the test because `new_frontend` command consumes the
rest of the file.
2020-01-09 11:46:10 -08:00
Leonardo de Moura
178e411031 chore: reactivate typeclass_append 2020-01-09 11:40:34 -08:00