Commit graph

1229 commits

Author SHA1 Message Date
Sebastian Ullrich
719819bf49 fix: finally shouldn't call finalizer when finalizer throws 2020-07-10 07:42:26 -07:00
Sebastian Ullrich
b40ef65b39 feat: add IO.eprint(ln) for printing to stderr
Most useful when stdout is being consumed by another program
2020-07-06 09:22:47 -07:00
Leonardo de Moura
cbb14673ef chore: move RBTree and RBMap to Std 2020-06-25 13:26:16 -07:00
Leonardo de Moura
11ed7c6195 chore: move PersistentArray to Std 2020-06-25 13:02:21 -07:00
Leonardo de Moura
02aa8498cd chore: move AssocList to Std 2020-06-25 12:52:23 -07:00
Leonardo de Moura
1612097788 chore: move HashMap and HashSet to Std 2020-06-25 12:46:56 -07:00
Leonardo de Moura
1be221a1f4 chore: move PersistentHashMap and PersistentHashSet to Std 2020-06-25 11:56:00 -07:00
Leonardo de Moura
2dd1d3ac3e chore: move ShareCommon to Std 2020-06-25 11:45:29 -07:00
Leonardo de Moura
59c082ef1a chore: move Stack and Queue to Std 2020-06-25 11:35:09 -07:00
Leonardo de Moura
18431d7b52 chore: move DList to Std 2020-06-25 11:31:04 -07:00
Leonardo de Moura
decab1ea57 fix: missing import 2020-06-25 11:20:47 -07:00
Leonardo de Moura
c6e7ea8fd5 feat: add ParserDescr.parser constructor for embedding parser definitions into parser descriptions 2020-06-16 14:06:46 -07:00
Leonardo de Moura
f61e4ffbbd chore: ParserDescr.parser ==> ParserDescr.cat 2020-06-16 13:40:16 -07:00
Sebastian Ullrich
6404af6983 feat: IO.Prim.withIsolatedStreams 2020-06-16 10:41:42 -07:00
Sebastian Ullrich
f4c28fbe5f chore: remove unnecessary getByte/putByte IO primitives 2020-06-16 12:06:53 +02:00
Simon Hudon
a64e78b90b feat: add std streams
Co-authored-by: Sebastian Ullrich <sebasti@nullri.ch>
2020-06-16 12:06:53 +02:00
Leonardo de Moura
09eb27404f chore: remove <$ and $> notation
cc @Kha
2020-06-15 14:52:31 -07:00
Leonardo de Moura
1477d23546 feat: remove ParserDescr.prec and update ParserDescr.trailingNode/ParserDescr.node 2020-06-10 14:57:55 -07:00
Leonardo de Moura
f23780a334 chore: add hack for allowing old and new frontends to parse Core.lean 2020-06-09 14:11:34 -07:00
Leonardo de Moura
e62e30ad0f chore: remove whitespace 2020-06-09 14:11:34 -07:00
Leonardo de Moura
8972c7e666 feat: revised syntax commands 2020-06-08 16:12:06 -07:00
Leonardo de Moura
1554f7f99a fix: ParserDescr
This commit also adds the new constructor `ParserDescr.rblLt`
2020-06-08 16:12:05 -07:00
Leonardo de Moura
dbe4aa447e chore: explicit lbp at ParserDescr.symbol 2020-05-27 16:12:53 -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
834286113f feat: add Lean package to builtin path 2020-05-26 13:43:19 -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
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
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
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
7c76a19885 chore: fix includes 2020-05-22 14:17:25 -07:00
Leonardo de Moura
7897769732 chore: move BinomialHeap to Std 2020-05-22 11:10:47 -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