Commit graph

26011 commits

Author SHA1 Message Date
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
657879fcaa chore: fix tests 2020-06-25 11:58:49 -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
3690869a62 chore: update stage0 2020-06-25 11:22:00 -07:00
Leonardo de Moura
249bda16c0 chore: remove prelude commands from Lean package 2020-06-25 11:21:17 -07:00
Leonardo de Moura
decab1ea57 fix: missing import 2020-06-25 11:20:47 -07:00
Sebastian Ullrich
81376d3902 feat: allow capturing expected type in elab
/cc @leodemoura
2020-06-25 14:58:45 +02:00
Sebastian Ullrich
51e4b49ba6 feat: allow arbitrary syntax in macro/elab 2020-06-25 13:54:11 +02:00
Sebastian Ullrich
95e24371f5 test: final webserver demo 2020-06-25 10:48:38 +02:00
Leonardo de Moura
80bb6f174d feat: expand elab command
cc @Kha
2020-06-24 20:16:56 -07:00
Leonardo de Moura
6c7c672813 chore: update stage0 2020-06-24 18:36:16 -07:00
Leonardo de Moura
cefbc27720 feat: add elab and elab_rules command syntax 2020-06-24 18:34:23 -07:00
Leonardo de Moura
6f8dbb4506 chore: fix test 2020-06-17 21:32:31 -07:00
Leonardo de Moura
43df7b75cb chore: PLDI examples 2020-06-17 21:28:37 -07:00
Leonardo de Moura
0c6d6f1ff1 chore: fix test 2020-06-17 21:28:37 -07:00
Leonardo de Moura
82780be144 chore: fix tests 2020-06-17 21:28:37 -07:00
Leonardo de Moura
196435c73b chore: use new fun syntax in old pretty printer 2020-06-17 21:28:03 -07:00
Leonardo de Moura
7ece1172a3 chore: remove TODOs 2020-06-17 21:28:03 -07:00
Leonardo de Moura
dbbacb3bfd chore: remove comment from Linter
Old frontend is just providing `Syntax.missing`
2020-06-17 21:28:03 -07:00
Leonardo de Moura
11ed525c69 chore: add new_frontend 2020-06-17 21:28:03 -07:00
Sebastian Ullrich
52f2f04dff chore: leanmake: don't use CMake-like output by default 2020-06-17 18:20:05 +02:00
Sebastian Ullrich
0f0f1407af chore: fix test 2020-06-17 18:07:44 +02:00
Sebastian Ullrich
9739356b91 fix: let syntax in old pretty printer
/cc @leodemoura

I didn't remove support for let binding groups, but that's good enough for the time being
2020-06-17 18:01:18 +02:00
Sebastian Ullrich
fff0cdc0ec test: Webserver: maybe-final version 2020-06-17 17:37:08 +02:00
Sebastian Ullrich
3c547db67c test: Webserver: introduce antiquotations for custom parsers, remove Prelim namespace
/cc @leodemoura
2020-06-17 11:54:41 +02:00
Sebastian Ullrich
5a10ac8f80 chore: delete platform-specific test 2020-06-17 10:53:10 +02:00
Leonardo de Moura
0c089b8cbd feat: elaborate syntaxAbbrev as a definition
@Kha I elaborated it as a definition. It works because we can now
reference Parser declarations in `syntax` command.
This change allowed us to replace `p.getArg 0` with `p` in the
`Websever` demo.
2020-06-16 15:43:17 -07:00
Leonardo de Moura
b01a923281 chore: throw error if a precedence is used with a parser declaration 2020-06-16 15:26:38 -07:00
Leonardo de Moura
8ba3a35712 chore: update stage0 2020-06-16 15:18:39 -07:00
Leonardo de Moura
18cd41f902 feat: add syntaxAbbrev 2020-06-16 15:18:10 -07:00
Leonardo de Moura
3e028e3812 feat: allow syntax command to use existing parser declarations
@Kha Note that I had to change the pattern. After I replaced,
```
syntax text : child
```
with
```
syntax Prelim.text  : child
```
Thus, I wrote
```
`(child|$t:text)
```
as
```
`(child|$t)
```
It works for this example, but it may be a problem in general.
2020-06-16 15:08:23 -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
580c0aaf94 chore: update stage0 2020-06-16 13:41:58 -07:00
Leonardo de Moura
f61e4ffbbd chore: ParserDescr.parser ==> ParserDescr.cat 2020-06-16 13:40:16 -07:00
Sebastian Ullrich
ade961bcf3 test: webserver demo 2020-06-16 22:10:43 +02:00
Sebastian Ullrich
4b84f8fa88 fix: nullary attributes in new frontend 2020-06-16 21:59:40 +02:00
Sebastian Ullrich
52d966f70b feat: #eval 2020-06-16 10:41:42 -07:00
Sebastian Ullrich
6404af6983 feat: IO.Prim.withIsolatedStreams 2020-06-16 10:41:42 -07:00
Sebastian Ullrich
f5015c9bc1 feat: adjust fun/do precedence in old frontend 2020-06-16 10:41:42 -07:00
Sebastian Ullrich
fe20860c3d chore: delete unused file 2020-06-16 10:41:42 -07:00
Leonardo de Moura
392d078011 feat: declare quotation parser for new parsing category
@Kha We can now delete the command
```
@[termParser] def childStxQuot : Parser :=
checkPrec maxPrec >> (node `Lean.Parser.Term.stxQuot $ symbol "`(child|" >> categoryParser `child 0 >> symbol ")")
```
from the web demo.
2020-06-16 10:38:37 -07:00
Sebastian Ullrich
b3d2e51aff feat: generalize tactic/command macro syntax 2020-06-16 19:21:48 +02:00
Sebastian Ullrich
cfd1900625 fix: #eval: redirect stdout/stderr 2020-06-16 12:06:53 +02:00
Sebastian Ullrich
f4c28fbe5f chore: remove unnecessary getByte/putByte IO primitives 2020-06-16 12:06:53 +02:00