lean4-htt/src/frontends/lean/json.h
2017-03-23 08:57:52 +01:00

30 lines
788 B
C++

/*
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Gabriel Ebner
*/
#ifdef LEAN_JSON
#pragma once
#include "library/messages.h"
#include "kernel/environment.h"
#include "util/json.hpp"
namespace lean {
using json = nlohmann::json;
json json_of_severity(message_severity sev);
json json_of_message(message const & msg);
json json_of_name(name const &);
void add_source_info(environment const & env, name const & d, json & record);
json serialize_decl(name const & short_name, name const & long_name, environment const & env, options const & o);
json serialize_decl(name const & d, environment const & env, options const & o);
void print_json(std::ostream &, message const & msg);
}
#endif