Commit graph

17143 commits

Author SHA1 Message Date
Leonardo de Moura
fda2cd23ec chore(shell/lean): use find_lean_file in Lean 2019-07-27 18:38:27 -07:00
Leonardo de Moura
fe45476d91 chore(stage0): update 2019-07-27 18:23:53 -07:00
Leonardo de Moura
66a93dbb39 feat(library/init/lean/elaborator/basic): absolutizeModuleName 2019-07-27 18:17:21 -07:00
Leonardo de Moura
2c755c60f5 feat(library/init/lean/path): fileNameToModuleName 2019-07-27 09:56:37 -07:00
Leonardo de Moura
a336176017 feat(runtime/io): improve "file not found" error message 2019-07-27 09:45:38 -07:00
Leonardo de Moura
761149e029 chore(stage0): update 2019-07-26 17:59:22 -07:00
Leonardo de Moura
bf5afbc289 feat(library/init/lean/environment): use findOLean implemented in Lean
TODO: cleanup `path.lean`
2019-07-26 17:57:43 -07:00
Leonardo de Moura
8a27a5e164 chore(stage0): update 2019-07-26 17:43:59 -07:00
Leonardo de Moura
c1e217da2b feat(library/init/lean/path): absolutizeModuleName 2019-07-26 17:26:44 -07:00
Leonardo de Moura
9bed367cc0 feat(library/init/lean/modulename): add helper functions 2019-07-26 16:46:03 -07:00
Leonardo de Moura
dea1e52c96 feat(shell/lean): initialize searchPath implemented in Lean 2019-07-26 16:15:38 -07:00
Leonardo de Moura
e9fafd3c4b chore(library/init/lean/path,stage0): export initSearchPath and update 2019-07-26 16:06:19 -07:00
Leonardo de Moura
e722ea9ed9 feat(library/init/lean): implement findOLean and findLean in Lean 2019-07-26 16:04:10 -07:00
Leonardo de Moura
2ddc797f65 feat(library/init/system/filepath): add dirName 2019-07-26 14:53:54 -07:00
Sebastian Ullrich
b902dc3dac fix(tests/lean/run/inline_fn): pretty-printer segfaults, disable for now 2019-07-26 12:39:35 -07:00
Sebastian Ullrich
7b18bc94fd fix(library/module): make sure header length preserves alignment 2019-07-26 12:39:35 -07:00
Sebastian Ullrich
d45cc4cb7b fix(kernel): manually align unboxed fields 2019-07-26 12:39:35 -07:00
Sebastian Ullrich
8fb004f917 fix(runtime/alloc): fix out-of-bounds pointer reported by ubsan 2019-07-26 12:39:35 -07:00
Sebastian Ullrich
aa30a8f273 fix(frontends/lean/elaborator): remove dubious error reporting code that makes Lean compiled with clang 8 segfault 2019-07-26 12:39:35 -07:00
Leonardo de Moura
a16df483fa fix(runtime/io): compilation error on windows 2019-07-26 10:09:55 -07:00
Leonardo de Moura
70b5e33766 chore(CMakeLists.txt): add link to cmake documentation 2019-07-26 08:10:46 -07:00
Sebastian Ullrich
e129a65948 fix(shell/CMakeLists): mark libleanstatic.a and libleanstdlib.a as cyclically dependent 2019-07-26 14:38:28 +02:00
Leonardo de Moura
5a1380ec6a feat(library/init/lean): add lean/path.lean 2019-07-25 19:28:22 -07:00
Leonardo de Moura
798bbc0662 feat(library/init/system/io): new primitives 2019-07-25 18:12:44 -07:00
Sebastian Ullrich
aef4a7159b chore(*): remove obsolete leanpkg.path files 2019-07-25 17:46:53 -07:00
Sebastian Ullrich
53a26b94ff chore(util/lean_path): remove leanpkg.path support
Because Lean 4 will not compile dependencies by itself, there is not much of a
point in it resolving them by itself either. The build tool that ensures that
all dependencies have been built should call `lean` with the `LEAN_PATH`
environment variable set accordingly.
2019-07-25 17:46:40 -07:00
Leonardo de Moura
b0d0cf973d chore(tests): fix tests 2019-07-25 17:44:25 -07:00
Leonardo de Moura
804c856282 chore(stage0): update 2019-07-25 17:39:40 -07:00
Leonardo de Moura
94056446c6 feat(library/init/system): add filepath 2019-07-25 17:38:54 -07:00
Leonardo de Moura
92a8b7028e chore(stage0): update 2019-07-25 17:30:47 -07:00
Leonardo de Moura
ff88c35fc1 refactor(library/init): move io and platform to system subdir 2019-07-25 17:29:33 -07:00
Leonardo de Moura
f6d3fc881d feat(library/init): add platform.cpp 2019-07-25 17:19:50 -07:00
Leonardo de Moura
02f516f09d feat(runtime/io): add primitives 2019-07-25 09:36:37 -07:00
Leonardo de Moura
77a59f4998 feat(library/init/io): add IO.getEnv 2019-07-25 08:31:23 -07:00
Sebastian Ullrich
1f78a5a8e0 chore(shell.nix): no more need for jemalloc, fix debug builds 2019-07-25 13:00:22 +02:00
Leonardo de Moura
72ff4eb8e2 feat(library/init/lean/elaborator/command): implement export command 2019-07-24 14:55:27 -07:00
Leonardo de Moura
e0797bba14 fix(library/init/lean/elaborator/command): bug at addScopes 2019-07-24 14:55:05 -07:00
Leonardo de Moura
4f3b2eff0c chore(stage0): update 2019-07-24 13:31:23 -07:00
Leonardo de Moura
3145994e36 feat(library/init/lean/elaborator/basic): register declaration name prefixes as namespaces at Environment.add 2019-07-24 13:24:02 -07:00
Leonardo de Moura
cf8daf4b24 feat(library/init/lean/elaborator): process header
TODO:
- improve/fix `setSearchPath`
- add `IO.getEnv`
- add support for relative imports at `absolutizeModuleName`
2019-07-24 07:37:33 -07:00
Leonardo de Moura
b792afb9d5 feat(library/init/lean/elaborator): add root scope and resolveNamespace 2019-07-23 09:14:01 -07:00
Leonardo de Moura
4187a099c2 fix(library/init/lean/elaborator/command): typo 2019-07-22 19:08:16 -07:00
Leonardo de Moura
b5d4e0a2fd chore(library/init/lean/elaborator/basic): improve cryptic error message 2019-07-22 19:07:43 -07:00
Leonardo de Moura
a7f18cff12 chore(stage0): update 2019-07-22 18:53:49 -07:00
Leonardo de Moura
39b5fbb767 feat(library/init/lean/elaborator): registerNamespace 2019-07-22 18:47:25 -07:00
Leonardo de Moura
825c952f58 chore(library/init/lean/scopes): add TODO 2019-07-22 18:22:56 -07:00
Leonardo de Moura
c40cba66fb fix(library/init/lean/parser/parser): use eraseDups when registering builting parsers 2019-07-22 18:19:47 -07:00
Leonardo de Moura
8b0730ef7d feat(library/init/data/list/basic): eraseDups 2019-07-22 18:12:03 -07:00
Leonardo de Moura
3609057848 feat(library/init/lean/elaborator/basic): add OpenDecl 2019-07-22 17:40:37 -07:00
Leonardo de Moura
b098cc69ea chore(library/init/lean/elaborator/command): ignore Lean3 notation commands 2019-07-22 15:16:17 -07:00