lean2/src/util/sexpr/register_module.h
Leonardo de Moura f7e8545e97 refactor(frontends/lua): rename leanlua_state to script_state, and move it to util
This commit also minimizes the dependencies of script_state.

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2013-11-27 14:57:36 -08:00

22 lines
524 B
C++

/*
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 "util/sexpr/sexpr.h"
#include "util/sexpr/options.h"
#include "util/sexpr/format.h"
namespace lean {
inline void open_sexpr_module(lua_State * L) {
open_sexpr(L);
open_options(L);
open_format(L);
}
inline void register_sexpr_module() {
script_state::register_module(open_sexpr_module);
}
}