/* Copyright (c) 2015 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Author: Leonardo de Moura */ #include #include #include "util/test.h" #include "shell/lean_js.h" using namespace lean; int main() { save_stack_info(); initialize_emscripten(); std::string msg = "{\"seq_num\": 0, \"command\": \"sync\", \"file_name\": \"f\", \"content\": \"inductive f\\ndef g := f\"}"; emscripten_process_request(reinterpret_cast(msg.c_str())); msg = "{\"seq_num\": 1, \"command\": \"info\", \"file_name\": \"f\", \"line\": 2, \"column\": 9}"; emscripten_process_request(reinterpret_cast(msg.c_str())); finalize_emscripten(); }