Commit graph

26011 commits

Author SHA1 Message Date
Leonardo de Moura
5dd3b67a75 feat(library/metavar_context): delayed_assignment as Lean object 2019-08-09 20:30:52 -07:00
Leonardo de Moura
d924aab766 feat(library/init/lean/metavarcontext): export functions to C++ 2019-08-09 20:09:11 -07:00
Leonardo de Moura
d1671ffcea chore(library): remove dead code 2019-08-09 16:08:51 -07:00
Leonardo de Moura
f8199bb540 fix(library/playground/patch): updateArgs => modifyArgs 2019-08-09 16:05:29 -07:00
Leonardo de Moura
54312cfa51 feat(library/init/lean/metavarcontext): add basic functions 2019-08-09 11:26:51 -07:00
Leonardo de Moura
92da659ec7 feat(library/init/data/persistenthashmap/basic): add PersistentHashMap.contains 2019-08-09 11:25:01 -07:00
Leonardo de Moura
b8cd88a827 chore(library/init): delete dead files 2019-08-09 10:35:38 -07:00
Leonardo de Moura
dfa9ca5dc5 chore(library/init/lean/compiler/ir/basic): style 2019-08-09 10:19:35 -07:00
Leonardo de Moura
d00019f57e chore(library/init): fix whitspaces before => 2019-08-09 09:13:49 -07:00
Leonardo de Moura
4d913370a7 chore(library/init): eliminate whitespaces using another patch script 2019-08-09 09:01:39 -07:00
Leonardo de Moura
245d476845 fix(script/patch): apply changes 2019-08-09 08:52:49 -07:00
Leonardo de Moura
48f72b9b34 chore(library/init/lean/syntax): helper functions 2019-08-09 08:52:49 -07:00
Sebastian Ullrich
de5c7cbff0 fix(shell/CMakeLists): bin_lean_stage0 should not be part of the default target as it conflicts with bin_lean
/cc @leodemoura
2019-08-09 16:43:19 +02:00
Leonardo de Moura
4aed3e51b5 chore(stage0): update 2019-08-09 07:40:54 -07:00
Sebastian Ullrich
5b296cbb33 chore(tests/lean/ll_infer_type_bug): fix partial file manually 2019-08-09 11:11:34 +02:00
Sebastian Ullrich
3ed67138d5 chore(*): update equation syntax in files and old parser
for f in ../../**/*.lean; do echo $f; ./patch.lean.out $f > tmp && cat tmp > $f; done
2019-08-09 11:11:34 +02:00
Sebastian Ullrich
8f55517d8c chore(tests/lean/run/coroutine): abbreviate abbreviation 2019-08-09 11:11:34 +02:00
Sebastian Ullrich
934054b8d0 chore(tests/lean/trust0/basic): use nomatch 2019-08-09 11:11:34 +02:00
Leonardo de Moura
d889230211 chore(tests/compiler/termparsertest1): fix test 2019-08-08 21:02:23 -07:00
Leonardo de Moura
022a130b86 feat(tests/playground/patch): path equation syntax 2019-08-08 20:57:54 -07:00
Leonardo de Moura
f546b13b6c fix(library/init/lean/syntax): setTailInfo, getHeadInfo and getTailInfo 2019-08-08 20:55:29 -07:00
Leonardo de Moura
9937855d89 feat(library/init/lean/parser/transform): add removeParen 2019-08-08 20:35:00 -07:00
Leonardo de Moura
98b0167e27 chore(library/init/lean/parser/parser): fix typo 2019-08-08 20:34:33 -07:00
Leonardo de Moura
d8f295d980 feat(library/init/lean): helper functions for transforming Syntax objects 2019-08-08 20:11:57 -07:00
Leonardo de Moura
a2956f5bd6 feat(library/init/lean/syntax): add mrewriteBottomUp and rewriteBottomUp 2019-08-08 18:58:43 -07:00
Leonardo de Moura
c6795996f6 feat(library/init/lean/parser/term): allow match syntax to be used in def 2019-08-08 18:53:51 -07:00
Leonardo de Moura
849311af00 test(tests/playground/patch): do-nothing transformer 2019-08-08 10:47:19 -07:00
Leonardo de Moura
10a8822ac5 fix(library/init/lean/parser/module): use updateLeading 2019-08-08 10:45:15 -07:00
Leonardo de Moura
74c46d2b35 fix(library/init/lean/parser/parser): symbolNoWs was not creating an atom 2019-08-08 10:41:40 -07:00
Leonardo de Moura
7a89d45391 feat(script): add helper script for patching lean files 2019-08-08 10:20:32 -07:00
Leonardo de Moura
6b0eb79d37 feat(library/init/lean/parser/module): add convenient parseFile function for writing syntax "patching" tools 2019-08-08 09:42:57 -07:00
Leonardo de Moura
30fc07014e chore(stage0): update 2019-08-07 17:46:48 -07:00
Leonardo de Moura
6e4b9f2cc1 feat(library/init/lean/elaborator/command): elaborate init_quot command 2019-08-07 17:41:18 -07:00
Leonardo de Moura
bf2a365501 chore(library/compiler/compiler): remove dead code 2019-08-07 17:24:07 -07:00
Leonardo de Moura
748e272dcb chore(stage0): update 2019-08-07 17:20:40 -07:00
Leonardo de Moura
73f96730bb feat(library/init/lean,kernel): add KernelException, addDecl and compileDecl
This commit also refines the type of `addAndCompile`.
We also add `ElabException.kernel` constructor for kernel exceptions.
2019-08-07 17:15:40 -07:00
Leonardo de Moura
4cff63af3f chore(library/init/lean/environment): remove dead comment 2019-08-07 16:31:01 -07:00
Leonardo de Moura
d707026cd8 feat(library/local_context): ensure local_context is just a wrapper for LocalContext
This is a temporary hack. After we eliminate the old elaborator,
we will delete the C++ class `local_context`.
In Lean4, we will not have two different kinds of local context:
`local_ctx` and `local_context`.
2019-08-07 13:11:08 -07:00
Leonardo de Moura
8ac58a66f8 chore(library/abstract_type_context): remove unnecessary virtual method only used at old pp.cpp 2019-08-07 12:05:10 -07:00
Leonardo de Moura
fcba361bdf chore(stage0): update 2019-08-07 11:56:17 -07:00
Leonardo de Moura
ae97cfdd68 feat(kernel/local_ctx): use LocalContext 2019-08-07 11:50:20 -07:00
Leonardo de Moura
c9fa63edad feat(library/init/lean/localcontext): add LocalContext.mfor 2019-08-07 11:39:51 -07:00
Leonardo de Moura
d5707bb256 fear(library/init/data/persistentarray/basic): add PersistentArray.mfor 2019-08-07 11:33:44 -07:00
Leonardo de Moura
1b5fc0e2c1 fix(library/init/data/array/basic): incorrect universe level 2019-08-07 11:33:23 -07:00
Leonardo de Moura
3967496ac9 chore(library/init/lean/default): make sure new modules are initialized 2019-08-07 07:14:09 -07:00
Leonardo de Moura
7a2ac23497 chore(library/init/lean/localcontext): export functions 2019-08-06 18:14:03 -07:00
Leonardo de Moura
1d597d462d chore(library/init/lean): minor 2019-08-06 17:55:09 -07:00
Leonardo de Moura
bad3f8e77e chore(kernel/local_ctx): use new representation defined at localcontext.lean 2019-08-06 10:47:50 -07:00
Leonardo de Moura
2343260ca5 chore(stage0): update 2019-08-06 10:39:02 -07:00
Leonardo de Moura
b27f215b9a chore(library/local_context): simplify pp 2019-08-06 10:27:10 -07:00