Commit graph

47 commits

Author SHA1 Message Date
Simon Hudon
92c8773137 feat: file IO using handles 2020-01-12 08:02:48 -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
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
799914daf2 feat: registerParserCategory 2020-01-10 20:32:16 -08:00
Leonardo de Moura
48600dbbfc refactor: registerAttribute ==> registerBuiltinAttribute 2020-01-10 17:08:12 -08:00
Leonardo de Moura
a76b104f61 chore: move Message to Lean 2020-01-10 10:58:50 -08:00
Leonardo de Moura
c06d515027 fix: typo 2020-01-08 21:22:46 -08:00
Leonardo de Moura
48578c9743 chore: remove hacks 2020-01-08 21:09:17 -08:00
Leonardo de Moura
d92e59a6fb chore: add temporary staging workaround 2020-01-08 21:09:17 -08:00
Leonardo de Moura
c98e3290e4 refactor: parser attributes 2020-01-08 21:09:11 -08:00
Leonardo de Moura
c4ad3a2390 refactor: ParserContextCore and ParserContext 2020-01-08 14:20:53 -08:00
Leonardo de Moura
b774ed1505 fix: update tokens 2020-01-08 08:28:15 -08:00
Sebastian Ullrich
bece6f7a32 feat: command quotations 2020-01-06 10:09:26 -08:00
Leonardo de Moura
0231841984 feat: applyAttributes 2020-01-05 16:22:46 -08:00
Leonardo de Moura
54fd9a2e4a chore: naming convention 2020-01-03 12:12:45 -08:00
Leonardo de Moura
3f51857275 feat: add where syntax 2020-01-02 14:55:18 -08:00
Leonardo de Moura
1d4ef0eff5 feat: register new syntax node kinds 2019-12-31 16:50:04 -08:00
Leonardo de Moura
90178dc3d9 feat: add syntaxNodeKindExtension
It contains all `SyntaxNodeKind`s registered in the system.
2019-12-31 16:36:50 -08:00
Leonardo de Moura
af5b52092d feat: register parser extensions tokens 2019-12-31 16:05:14 -08:00
Leonardo de Moura
b17f822488 fix: mkInitial 2019-12-31 13:51:12 -08:00
Leonardo de Moura
88339be110 refactor: improve initialization 2019-12-31 13:39:36 -08:00
Leonardo de Moura
78c53d8351 feat: implement some TODOs at TokenTableAttribute 2019-12-31 13:24:36 -08:00
Leonardo de Moura
069eb0275c fix: missing registerAttribute and applicationTime 2019-12-31 12:21:54 -08:00
Leonardo de Moura
b3d3d3c41a fix: initialization issue 2019-12-31 12:13:30 -08:00
Leonardo de Moura
59c7f75dda feat: add addParserAttribute 2019-12-31 12:07:58 -08:00
Leonardo de Moura
d584f1b24e feat: add Environment as an extra parameter to addImportedFn 2019-12-31 11:11:37 -08:00
Leonardo de Moura
5a743cddeb feat: improve registerParserAttribute 2019-12-31 10:49:04 -08:00
Leonardo de Moura
7057d71971 refactor: add new parameter to PersistentEnvExtension 2019-12-31 09:18:40 -08:00
Leonardo de Moura
491028df25 feat: add compileParserDescr 2019-12-30 22:11:49 -08:00
Leonardo de Moura
45075c135d chore: move ParserKind to LeanExt 2019-12-30 22:11:49 -08:00
Leonardo de Moura
a1f079227b chore: prepare to move ParserKind 2019-12-30 22:11:49 -08:00
Sebastian Ullrich
881e3bf490 fix: raise precedence inside antiquotation parser 2019-12-30 08:24:29 -08:00
Sebastian Ullrich
81381d5c77 feat: make all antiquotation kinds optional 2019-12-30 08:24:29 -08:00
Sebastian Ullrich
8ebe0cb94f feat: fieldIdx antiquotation 2019-12-30 08:24:29 -08:00
Sebastian Ullrich
f130a82cd9 fix: FirstTokens computation of <|> 2019-12-30 08:24:29 -08:00
Sebastian Ullrich
1f2040727c feat: autogenerate antiquotations in parser! 2019-12-30 08:24:29 -08:00
Leonardo de Moura
f09e2ab069 feat: elabParen using match_syntax 2019-12-17 14:55:40 -08:00
Leonardo de Moura
248cc2ec3a chore: naming convention 2019-12-15 07:48:42 -08:00
Leonardo de Moura
ef82c327eb fix: List notation 2019-12-11 10:49:06 -08:00
Leonardo de Moura
e0f91409b1 fix: mark choice as valid SyntaxNodeKind 2019-12-11 06:19:12 -08:00
Leonardo de Moura
c3005671f5 chore: avoid ^do ... 2019-12-11 06:19:12 -08:00
Leonardo de Moura
fd141d152b fix: ensure binderType has an uniform representation 2019-12-09 16:47:24 -08:00
Leonardo de Moura
92958e8d66 refactor: remove Syntax.other
We are going to use synthetic metavariables for postponing elaboration.
2019-12-06 09:23:44 -08:00
Leonardo de Moura
cc5a3cca29 chore: move helper modules to src/Init/Lean/Util 2019-12-04 17:17:34 -08:00
Leonardo de Moura
f15af1df0a chore: move Lean auxiliary datatypes to src/Init/Lean/Data 2019-12-04 17:00:13 -08:00
Leonardo de Moura
dacf69b2f0 chore: remove mkCApp* functions 2019-12-04 13:07:42 -08:00
Leonardo de Moura
c445199747 chore: library/Init ==> src/Init
cc @Kha @dselsam @cipher1024
2019-11-22 06:06:05 -08:00
Renamed from library/Init/Lean/Parser/Parser.lean (Browse further)