lean2/src/library/register_module.h

43 lines
1 KiB
C
Raw Normal View History

/*
Copyright (c) 2013 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
*/
#pragma once
#include "util/script_state.h"
#include "library/kernel_bindings.h"
#include "library/resolve_macro.h"
#include "library/coercion.h"
#include "library/private.h"
#include "library/placeholder.h"
#include "library/aliases.h"
#include "library/choice.h"
#include "library/explicit.h"
#include "library/unifier.h"
#include "library/scoped_ext.h"
#include "library/match.h"
#include "library/reducible.h"
#include "library/app_builder.h"
namespace lean {
inline void open_core_module(lua_State * L) {
open_kernel_module(L);
open_resolve_macro(L);
open_coercion(L);
open_private(L);
open_placeholder(L);
open_aliases(L);
open_choice(L);
open_scoped_ext(L);
open_unifier(L);
open_explicit(L);
open_match(L);
open_reducible(L);
open_app_builder(L);
}
inline void register_core_module() {
script_state::register_module(open_core_module);
}
}