lean2/src/frontends/lean/register_module.cpp
Leonardo de Moura 3e299a1d5a refactor(frontends/lean/parser): move parser Lua bindings to a separate file
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-06-30 17:00:10 -07:00

24 lines
595 B
C++

/*
Copyright (c) 2013-2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
*/
#include <sstream>
#include "util/lua.h"
#include "util/script_state.h"
#include "frontends/lean/token_table.h"
#include "frontends/lean/parse_table.h"
#include "frontends/lean/parser_bindings.h"
namespace lean {
void open_frontend_lean(lua_State * L) {
open_token_table(L);
open_parse_table(L);
open_parser(L);
}
void register_frontend_lean_module() {
script_state::register_module(open_frontend_lean);
}
}