lean2/src/kernel/init_module.cpp
Leonardo de Moura da481c3274 refactor(kernel): explicit initialization/finalization
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-09-24 10:12:28 -07:00

34 lines
836 B
C++

/*
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
*/
#include "kernel/environment.h"
#include "kernel/converter.h"
#include "kernel/type_checker.h"
#include "kernel/expr.h"
#include "kernel/formatter.h"
#include "kernel/level.h"
#include "kernel/declaration.h"
namespace lean {
void initialize_kernel_module() {
initialize_level();
initialize_expr();
initialize_declaration();
initialize_converter();
initialize_type_checker();
initialize_environment();
initialize_formatter();
}
void finalize_kernel_module() {
finalize_formatter();
finalize_environment();
finalize_type_checker();
finalize_converter();
finalize_declaration();
finalize_expr();
finalize_level();
}
}