Leonardo de Moura
cd73105dff
refactor(kernel/environment,library/private,library/init/lean/environment): move main module name to header
2019-06-03 09:14:23 -07:00
Leonardo de Moura
356a4fafcd
chore(library/compiler): remove old code
...
@kha I am removing the old IR compiler. If there is a disaster with
the new one implemented in Lean, I will put it back.
2019-05-27 21:28:22 -07:00
Leonardo de Moura
5d04027050
chore(tests/playground): scripts for using old IR compiler
2019-05-23 18:33:29 -07:00
Leonardo de Moura
f72d54c2a0
chore(shell/lean): set new IR compiler as the default
2019-05-23 18:27:41 -07:00
Sebastian Ullrich
29623cd2c5
fix(shell/lean): --cpp on stand-alone files
2019-05-22 23:23:30 +02:00
Leonardo de Moura
3ffe0e22c8
feat(shel/lean): add temporary option for testing new IR compiler code emitter
2019-05-20 10:19:09 -07:00
Leonardo de Moura
aa138fe686
chore(*): get_obj_arg => to_obj_arg
2019-05-16 14:42:02 -07:00
Leonardo de Moura
9d9f546ad8
refactor(util/sexpr): move options and option_declarations to util
2019-05-16 14:37:24 -07:00
Leonardo de Moura
9c4da289b2
refactor(util/sexpr/options): options as a Lean object
2019-05-16 14:27:44 -07:00
Leonardo de Moura
31d4fa9f71
chore(util/sexpr/options): shrink options API
...
Motivation: move to the Lean implementation
2019-05-16 14:08:11 -07:00
Sebastian Ullrich
7a19f246e6
fix(shell/lean): re-add missing short-only option
2019-05-16 10:27:18 +02:00
Leonardo de Moura
77768c504e
feat(shell/lean): import time stats
2019-05-15 17:16:19 -07:00
Leonardo de Moura
3193e91aff
feat(library/init/lean/environment): add Environment.displayStats and --stats command line argument
2019-05-15 11:01:25 -07:00
Leonardo de Moura
67d14705b0
chore(library/module): simplify write_module
2019-05-14 08:08:09 -07:00
Leonardo de Moura
22d2848d21
chore(library/module): store search_path in a global variable
...
Remark: I will use it to expose the following primitive in Lean
```
constant findOLean : Name -> IO String
```
2019-05-14 07:49:00 -07:00
Leonardo de Moura
358b731581
chore(library/module): simplify import_modules
...
Remark: `lean.cpp` is a total mess at this point. It contains
leftovers from the Lean2 and Lean3 designs, and hacks for supporting
the Lean4 transition.
2019-05-14 07:26:50 -07:00
Leonardo de Moura
99e3cdc01b
chore(frontends/lean): delete lean_environment
2019-05-13 13:05:04 -07:00
Sebastian Ullrich
de5b68f126
fix(CMakeLists,bin/leanc.in): fix installed leanc
2019-05-12 13:43:36 +02:00
Leonardo de Moura
fd487d8db7
chore(*): remove old VM
2019-05-08 15:15:44 -07:00
Sebastian Ullrich
5b8c2574ed
feat(shell/CMakeLists): build stdlib using -g in debug mode
2019-03-29 14:32:12 +01:00
Sebastian Ullrich
7c0912d41c
refactor(frontends/lean/lean_environment): move environment parts out of lean_elaborator.cpp
2019-03-25 16:12:14 +01:00
Leonardo de Moura
3d52298c69
chore(util/sexpr): preparing to port options to Lean
2019-03-22 13:58:16 -07:00
Sebastian Ullrich
5f7a63b34b
feat(shell/lean): accept stand-alone files as input
...
@leodemoura
2019-03-22 14:05:10 +01:00
Leonardo de Moura
c802c232a8
chore(shell/CMakeFiles): disable test
...
@kha I disabled this test for now. It seems to fail because we don't
have a `leanpkg.path` there. I thought about hacking the test and adding
a dummy `leanpkg.path` file there, but you might have a better idea.
It is not clear to me why we always need `leanpkg.path` now. It seems
this a new requirement that was introduced when you simplified the
module manager.
2019-03-21 15:11:05 -07:00
Sebastian Ullrich
a9416b722d
chore(library/Makefile): move extracted .cpp files back to src/stage1/ so that we can share them between build configs
2019-03-21 15:11:05 -07:00
Sebastian Ullrich
0279d29741
chore(shell/CMakeLists): add bin_lean_stage0 target
2019-03-21 13:16:34 +01:00
Sebastian Ullrich
beae045ebc
fix(CMakeLists): complete move of stage1 from src/ to build dir
2019-03-21 13:16:17 +01:00
Sebastian Ullrich
ab974c1c4c
chore(shell/CMakeLists,library/Makefile): store stage1 C++ output in build directory
2019-03-20 14:27:17 +01:00
Sebastian Ullrich
c57e3f7736
fix(shell/CMakeLists): fix REBUILD_STAGE0=OFF, somehow?
2019-03-18 21:19:42 +01:00
Leonardo de Moura
d45da2d5ba
fix(shell/lean): check whether output file was created or not
2019-03-18 12:44:28 -07:00
Sebastian Ullrich
dec8b76c32
feat(src/CMakeLists): build stdlib using leanc instead of nested CMake run
2019-03-18 16:11:39 +01:00
Sebastian Ullrich
f6d3062524
feat(bin/leanc): add simple C++ compiler wrapper script
2019-03-18 16:11:30 +01:00
Sebastian Ullrich
b4ce2ba1a5
chore(shell/CMakeLists): add REBUILD_STAGE0 dev option
2019-03-18 16:09:20 +01:00
Sebastian Ullrich
074b179984
feat(shell/CMakeLists): do not touch src/boot by default, use untracked dir src/stage1 instead
2019-03-18 16:09:20 +01:00
Leonardo de Moura
9984d28bb2
fix(library/init/lean/frontend): make sure new frontend works with new io monad
2019-03-16 18:24:53 -07:00
Sebastian Ullrich
b325908d4a
chore(frontends/lean/vm_elaborator): rename to lean_elaborator, update some comments
2019-03-16 19:29:12 +01:00
Sebastian Ullrich
e19ed79414
feat(shell/lean): pass environment to and from Lean, remove environment.mk_empty axiom
...
/cc @leodemoura
I didn't remove the implementation of `environment.mk_empty`, we may want to use
it in tests.
2019-03-16 19:27:16 +01:00
Sebastian Ullrich
f2a161e5a9
feat(library/init/lean/util): Lean API for profiler
2019-03-06 10:37:38 +01:00
Sebastian Ullrich
c9c1df6f98
test(shell/CMakeLists): add --new-frontend test
2019-02-15 12:13:45 -08:00
Sebastian Ullrich
b8900fad80
chore(tests/compiler/test.sh): rename to conventional test_single.sh so that (lean4-diff-test-file) works
2019-02-15 12:13:45 -08:00
Leonardo de Moura
390c9009f7
chore(shell,boot): update boot, and initialization process
2019-02-14 14:49:16 -08:00
Sebastian Ullrich
01942c8e26
feat(shell/lean): --new-frontend
...
TODO: parse imports with new frontend, pass environment to and from it
2019-02-14 14:07:05 -08:00
Leonardo de Moura
888252b5db
feat(library/private): more deterministic private names
2019-02-12 14:00:24 -08:00
Leonardo de Moura
9aed74a5e0
refactor(library/compiler): move extension for storing LLNF code
2019-02-09 17:59:46 -08:00
Leonardo de Moura
7f11846068
feat(CMakeLists): invoke tests
2019-02-07 12:19:05 -08:00
Sebastian Ullrich
fce7aca812
feat(frontends/lean/vm_elaborator): recover from unknown identifiers
2019-02-07 14:16:28 +01:00
Sebastian Ullrich
64ab576dbf
fix(shell/lean,library/messages): print messages in correct order (and immediately) when --json was not given
2019-02-01 17:10:14 +01:00
Sebastian Ullrich
7dc4d4e5fa
chore(shell/CMakeLists): reactivate Lean tests
2019-02-01 16:33:29 +01:00
Leonardo de Moura
5d5c498d92
fix(shell/lean): module_name is not a path
2019-01-25 15:02:11 -08:00
Sebastian Ullrich
2d9a16fd24
refactor(library/module_mgr): remove
2019-01-25 20:12:11 +01:00