Commit graph

26741 commits

Author SHA1 Message Date
Leonardo de Moura
2c2103711c feat(library/compiler/csimp): we may be able to unfold join point 2018-09-26 18:01:57 -07:00
Leonardo de Moura
ccd73701cb feat(library/compiler/csimp): preserve joint points 2018-09-26 17:54:11 -07:00
Leonardo de Moura
ae81ac2768 chore(frontends/lean): remove parameter command from old parser
We still have a lot of leftover code, but it is not worth removing it
since we will delete the old parser.
2018-09-26 17:54:11 -07:00
Leonardo de Moura
7f64033111 chore(library/init): remove all occurrences of parameter command
We will not support the `parameter` command in Lean 4.
It is seldom used and creates many complications.
2018-09-26 17:54:11 -07:00
Leonardo de Moura
f3552f70f6 feat(library/compiler/csimp): simplify code 2018-09-26 17:54:10 -07:00
Leonardo de Moura
e7b99d5a07 fix(library/compiler/csimp): bug at split_entries 2018-09-26 17:54:10 -07:00
Leonardo de Moura
6578b2b6ce chore(library/compiler/csimp): cleanup 2018-09-26 17:54:10 -07:00
Leonardo de Moura
33322d44ee chore(library/compiler/csimp): remove dead code 2018-09-26 13:46:27 -07:00
Sebastian Ullrich
2c07922327 refactor(library/init/lean/parser): minimize parser_state, have the module coroutine take and return parser_config 2018-09-26 13:20:07 -07:00
Sebastian Ullrich
07901fcfcb refactor(library/init/lean/parser/module): put prelude and imports into non-optional header parser to make the life of the elaborator and other consumers a bit easier 2018-09-26 13:20:07 -07:00
Leonardo de Moura
938c8dae83 fix(library/init/control/combinators): [inline] ==> [macro_inline] 2018-09-26 09:08:06 -07:00
Leonardo de Moura
b324aa4b33 feat(library/compiler/csimp): do not inline partial applications 2018-09-26 09:05:28 -07:00
Leonardo de Moura
21b8199bc4 feat(library/compiler/util): do not consider constructors to be cost zero 2018-09-26 08:48:06 -07:00
Leonardo de Moura
7fed0b5cb0 fix(library/compiler/csimp): bug in the join point generation 2018-09-26 08:47:49 -07:00
Leonardo de Moura
15222a79a0 chore(library/compiler/csimp): display "code size" 2018-09-25 19:34:29 -07:00
Leonardo de Moura
25780c6daf fix(library/compiler/csimp): never create join points for floating cases from application 2018-09-25 19:34:29 -07:00
Leonardo de Moura
32888b45a8 chore(library/compiler/csimp): remove leftover 2018-09-25 19:34:29 -07:00
Leonardo de Moura
8613255ff2 chore(library/compiler/csimp): add comment 2018-09-25 19:34:29 -07:00
Leonardo de Moura
6b6b6eb96f feat(library/compiler/csimp): improve float_cases_on 2018-09-25 19:34:29 -07:00
Leonardo de Moura
c9cb576c9b feat(library/compiler/csimp): float cases from application when visiting application 2018-09-25 19:34:29 -07:00
Leonardo de Moura
dc4ba760b8 fix(library/compiler/csimp): bug at float_cases_on 2018-09-25 19:34:29 -07:00
Leonardo de Moura
06e78b0e48 feat(library/compiler/csimp): create join points for float_cases_on 2018-09-25 19:34:29 -07:00
Sebastian Ullrich
377e256cc0 test(tests/lean/parser1): simple macro test 2018-09-25 18:37:43 -07:00
Sebastian Ullrich
1d01e81de8 refactor(library/init/lean/parser): do not construct final syntax tree independent from intermediate outputs
This makes sure we have a single consistent view of the file
2018-09-25 18:28:53 -07:00
Sebastian Ullrich
18cf4d50bb chore(frontends/lean/elaborator): ignore error caused by synthetic sorry 2018-09-25 16:48:01 -07:00
Sebastian Ullrich
90984a63e8 chore(frontends/lean/elaborator): improve application error positions 2018-09-25 16:08:57 -07:00
Sebastian Ullrich
f8dd94c4bf feat(library/init/lean/expander): full mixfix and reserve_mixfix expanders 2018-09-25 15:05:47 -07:00
Sebastian Ullrich
11259b62d2 chore(frontends/lean/elaborator): try to make error positions a bit more accurate 2018-09-25 14:48:57 -07:00
Sebastian Ullrich
bba8beca63 feat(library/init/lean/parser/token): give number a view 2018-09-25 14:18:52 -07:00
Sebastian Ullrich
d8b49e1dee feat(library/init/control/functor): add <&>, which the old elaborator likes better than <$> 2018-09-25 13:23:56 -07:00
Sebastian Ullrich
ac7b70c555 fix(frontends/lean/token_table): add missing built-in token
`::` is used not only by `list` but also the built-in `structure` command
2018-09-25 12:20:08 -07:00
Sebastian Ullrich
95c469f8c4 fix(library/module_mgr,shell/lean): catch all errors from parsing 2018-09-25 12:14:03 -07:00
Sebastian Ullrich
2d69d85193 fix(library/init/lean/expander): fix mixfix.transform 2018-09-25 11:56:40 -07:00
Sebastian Ullrich
c3c6a0e3a5 chore(library/init/lean/expander): minor simplifications 2018-09-25 09:18:56 -07:00
Sebastian Ullrich
4afcc0aab0 fix(library/init/lean/parser/term): do not allow mixing bracketed and unbracketed binders 2018-09-25 09:16:02 -07:00
Sebastian Ullrich
15927f21c9 refactor(library/init/lean/parser/token): unicode_symbol parser 2018-09-25 09:16:02 -07:00
Sebastian Ullrich
5a21d45836 refactor(library/init/lean/expander): introduce some coercions 2018-09-25 09:16:02 -07:00
Leonardo de Moura
b4b42ef8b2 feat(library/init/lean/parser/parsec): missing [inline] 2018-09-24 18:57:49 -07:00
Leonardo de Moura
1f42b5bce9 feat(library/compiler/preprocess): missing trace option 2018-09-24 18:47:10 -07:00
Leonardo de Moura
c827892715 fix(library/compiler/cse): adjust to new LCNF 2018-09-24 18:47:10 -07:00
Leonardo de Moura
6a7fbb24f5 feat(library/init/data/dlist): inlining dlist functions is counterproductive 2018-09-24 18:47:10 -07:00
Sebastian Ullrich
f29a866cb4 perf(frontends/lean/elaborator): do not inline views for now 2018-09-24 18:24:27 -07:00
Sebastian Ullrich
32f4d52e1c refactor(library/init/lean): revert introduction of tysyntax; push syntax.missing through views 2018-09-24 18:24:27 -07:00
Sebastian Ullrich
aac3627ce1 fix(frontends/lean/elaborator): restore better field notation error message 2018-09-24 18:24:27 -07:00
Leonardo de Moura
017261960c feat(library/compiler/csimp): add float_cases_on 2018-09-24 18:10:26 -07:00
Leonardo de Moura
ee43d4a20a feat(library/compiler/util): add replace_fvar_with 2018-09-24 18:10:26 -07:00
Leonardo de Moura
1b1d4c202d chore(library/compiler/csimp): add auxiliary mk_let method 2018-09-24 18:10:26 -07:00
Leonardo de Moura
ac90dba90f chore(library/compiler/csimp): disable bogus warning 2018-09-24 18:10:26 -07:00
Sebastian Ullrich
7f00149338 chore(tests/lean/parser1): fix test after rebase 2018-09-24 09:57:42 -07:00
Sebastian Ullrich
db0fc4a448 feat(library/init/lean/expander): very basic expander 2018-09-24 09:53:28 -07:00