Commit graph

13317 commits

Author SHA1 Message Date
Leonardo de Moura
cef80c707b fix: missing deps 2020-05-26 15:05:01 -07:00
Leonardo de Moura
4ccc3fef52 chore: move Init.Lean files to Lean package 2020-05-26 15:04:35 -07:00
Leonardo de Moura
4bca76a87e chore: use src/Lean.lean to initialize lean 2020-05-26 13:54:13 -07:00
Leonardo de Moura
49fc82c604 chore: add Lean package to leanc.in 2020-05-26 13:51:06 -07:00
Leonardo de Moura
f7818757ef chore: add Lean package to CMakeLists.txt 2020-05-26 13:50:04 -07:00
Leonardo de Moura
834286113f feat: add Lean package to builtin path 2020-05-26 13:43:19 -07:00
Leonardo de Moura
8d30f67823 feat: add Lean package 2020-05-26 13:39:03 -07:00
Sebastian Ullrich
d25a4b311a fix: missing precedence 2020-05-26 14:32:42 +02:00
Sebastian Ullrich
674fea4876 fix: parenthesizer: adjust lbp after parenthesization 2020-05-26 14:32:42 +02:00
Sebastian Ullrich
e6d27c276b feat: #eval: capture stderr 2020-05-26 14:32:42 +02:00
Sebastian Ullrich
b519997b58 feat: parenthesizer: handle choice 2020-05-26 14:32:42 +02:00
Sebastian Ullrich
1cbe54fa44 fix: parenthesizer: backtracking special case 2020-05-26 14:32:42 +02:00
Sebastian Ullrich
60ac03916e feat: introduce anonymous antiquotations for all categories 2020-05-26 14:32:42 +02:00
Sebastian Ullrich
48246c8e4a feat: parenthesizer: support antiquotations 2020-05-26 11:47:38 +02:00
Sebastian Ullrich
b35b973a5d fix: precedence of ! in old frontend 2020-05-26 11:26:57 +02:00
Sebastian Ullrich
a884ea8656 feat: ToExpr (Option _) 2020-05-26 11:26:57 +02:00
Sebastian Ullrich
185b02a435 feat: parenthesize tactics 2020-05-26 11:26:57 +02:00
Sebastian Ullrich
95d03a123d fix: sepBy parenthesizer 2020-05-26 11:26:57 +02:00
Sebastian Ullrich
9247911e09 fix: basic parenthesizer approach, document 2020-05-26 11:26:57 +02:00
Sebastian Ullrich
3431d934de fix: initSearchPath: use valid default value 2020-05-26 11:26:57 +02:00
Sebastian Ullrich
b37953611a feat: parenthesizer: missing parsers 2020-05-26 11:26:57 +02:00
Sebastian Ullrich
2313990c87 feat: Syntax.formatStx: optionally show all source info 2020-05-26 11:26:57 +02:00
Sebastian Ullrich
a8a92d8e8c feat: parenthesizer: preserve whitespace 2020-05-26 11:26:57 +02:00
Sebastian Ullrich
e83edefcc1 fix: Syntax.setHeadInfo 2020-05-26 11:26:57 +02:00
Sebastian Ullrich
ed326491ab fix: missing token precedence 2020-05-26 11:26:57 +02:00
Sebastian Ullrich
3caf6e83f8 feat: IO.runMeta: print traces (by default) 2020-05-26 11:26:57 +02:00
Sebastian Ullrich
47bb2a59a8 fix: fail build if building Init failed 2020-05-23 12:39:14 +02:00
Sebastian Ullrich
bc0d5805be chore: delete dead code 2020-05-23 12:39:06 +02:00
Sebastian Ullrich
01480e0f66 fix: do not eagerly check and preprocess search paths 2020-05-23 12:38:49 +02:00
Leonardo de Moura
b8557b63af chore: temporary workaround
@Kha I had to comment the following lines. It is unclear what is going
on. All stages were building on my machine until I tried to build
using a fresh `build/release` directory. Then, I managed to reproduce
the error in the CI earlier today.
So, I destructively removed the `update-stage0`, and tried to build
using a fresh `build/release`. Then, I get the following error at
stage 1.
```
error: no such file or directory (error code: 2)
  file: /Users/leonardodemoura/projects/lean4/build/release/stage1/bin/../lib/lean/Std
```
The error seems to be produced by the line I have commented. It is
a weird bug since I do have the directory
```
/Users/leonardodemoura/projects/lean4/build/release/stage1/lib/lean/Std
```
Note that it works for
```
/Users/leonardodemoura/projects/lean4/build/release/stage1/bin/../lib/lean/Init`
```
No idea why it doesn't work for `Std`.
Anyway, by commenting the lines in this commit I can build all stages
locally. The test `binomial.lean` doesn't work since `Std` is not in
the builtin path.
2020-05-22 16:32:35 -07:00
Leonardo de Moura
1eaae47bab fix: add Std to builtin path 2020-05-22 14:47:24 -07:00
Leonardo de Moura
2f1ec93289 chore: move runtime implementation to src/runtime 2020-05-22 14:35:16 -07:00
Leonardo de Moura
8184d0fe52 chore: erase include files that have been copied 2020-05-22 14:23:52 -07:00
Leonardo de Moura
7c76a19885 chore: fix includes 2020-05-22 14:17:25 -07:00
Leonardo de Moura
350cf4d262 chore: copy runtime files to include/lean 2020-05-22 14:04:24 -07:00
Leonardo de Moura
ae3a433f9c chore: add Std to CMakeLists.txt
@Kha did I miss anything?
2020-05-22 11:19:14 -07:00
Leonardo de Moura
7897769732 chore: move BinomialHeap to Std 2020-05-22 11:10:47 -07:00
Leonardo de Moura
efba802011 feat: start Std package 2020-05-22 10:58:44 -07:00
Sebastian Ullrich
f45fcb4898 test: add tests/compiler/foreign and doc/examples/compiler 2020-05-22 09:22:26 -07:00
Sebastian Ullrich
573a128096 feat: leanmake: print out compile flags in analogy to pkg-config/llvm-config 2020-05-22 09:22:26 -07:00
Sebastian Ullrich
7b2bcbe683 chore: disable inconsequential LLVM warning
Emacs always stops scrolling at this warning while building
2020-05-22 09:22:26 -07:00
Sebastian Ullrich
3ffea2dfbd feat: leanmake: add clean target 2020-05-22 09:22:26 -07:00
Sebastian Ullrich
38a3c36134 feat: make leanmake extensible with custom Makefiles; rename standard Makefile to lean.mk; document 2020-05-22 09:22:26 -07:00
Leonardo de Moura
e20f712710 fix: but at elabModifyOp 2020-05-21 17:17:21 -07:00
Leonardo de Moura
f9f1e5d133 fix: bug at mkSubstructSource 2020-05-21 16:33:46 -07:00
Leonardo de Moura
7a964ecbea chore: register `Elab.struct trace class 2020-05-21 16:33:03 -07:00
Leonardo de Moura
f44fe34661 feat: add expandStructInstExpectedType 2020-05-21 09:39:18 -07:00
Leonardo de Moura
959a860bdf feat: elaborate new structure instance syntax 2020-05-20 18:10:33 -07:00
Leonardo de Moura
f427a6bd3f feat: new structure instance syntax 2020-05-20 16:57:58 -07:00
Leonardo de Moura
618d113075 chore: remove workaround for bug at new { ... : <expected-type> } syntax 2020-05-20 15:56:28 -07:00