refactor(kernel): move files that don't need to be in the kernel

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
Leonardo de Moura 2014-04-25 18:30:40 -07:00
parent b2518f873d
commit e769c26800
10 changed files with 9 additions and 8 deletions

View file

@ -1,5 +1,5 @@
add_library(kernel level.cpp diff_cnstrs.cpp expr.cpp expr_eq_fn.cpp
for_each_fn.cpp occurs.cpp replace_fn.cpp free_vars.cpp abstract.cpp
for_each_fn.cpp replace_fn.cpp free_vars.cpp abstract.cpp
instantiate.cpp context.cpp formatter.cpp max_sharing.cpp
definition.cpp replace_visitor.cpp environment.cpp
justification.cpp pos_info_provider.cpp metavar.cpp

View file

@ -1,4 +1,5 @@
add_library(library deep_copy.cpp expr_lt.cpp)
add_library(library deep_copy.cpp expr_lt.cpp io_state.cpp
occurs.cpp)
# io_state_stream.cpp
# kernel_bindings.cpp
# context_to_lambda.cpp placeholder.cpp

View file

@ -4,8 +4,8 @@ Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
*/
#include "kernel/io_state.h"
#include "kernel/kernel_exception.h"
#include "library/io_state.h"
namespace lean {
io_state::io_state(formatter const & fmt):

View file

@ -4,8 +4,8 @@ Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
*/
#include "kernel/occurs.h"
#include "kernel/find_fn.h"
#include "library/occurs.h"
namespace lean {
bool occurs(expr const & n, expr const & m) {

View file

@ -28,9 +28,6 @@ add_test(replace ${CMAKE_CURRENT_BINARY_DIR}/replace)
# target_link_libraries(environment ${EXTRA_LIBS})
# add_test(environment ${CMAKE_CURRENT_BINARY_DIR}/environment)
# set_tests_properties(environment PROPERTIES ENVIRONMENT "LEAN_PATH=${LEAN_BINARY_DIR}/shell")
add_executable(occurs occurs.cpp)
target_link_libraries(occurs ${EXTRA_LIBS})
add_test(occurs ${CMAKE_CURRENT_BINARY_DIR}/occurs)
add_executable(metavar metavar.cpp)
target_link_libraries(metavar ${EXTRA_LIBS})
add_test(metavar ${CMAKE_CURRENT_BINARY_DIR}/metavar)

View file

@ -7,6 +7,9 @@ add_test(expr_lt ${CMAKE_CURRENT_BINARY_DIR}/expr_lt)
add_executable(deep_copy deep_copy.cpp)
target_link_libraries(deep_copy ${EXTRA_LIBS})
add_test(deep_copy ${CMAKE_CURRENT_BINARY_DIR}/deep_copy)
add_executable(occurs occurs.cpp)
target_link_libraries(occurs ${EXTRA_LIBS})
add_test(occurs ${CMAKE_CURRENT_BINARY_DIR}/occurs)
# add_executable(arith_tst arith.cpp)
# target_link_libraries(arith_tst ${EXTRA_LIBS})
# add_test(arith_tst ${CMAKE_CURRENT_BINARY_DIR}/arith_tst)

View file

@ -5,8 +5,8 @@ Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
*/
#include "util/test.h"
#include "kernel/occurs.h"
#include "kernel/abstract.h"
#include "library/occurs.h"
using namespace lean;
static void tst1() {