jak-project/common/util/json_util.h
water111 814480f9e5
[Decompiler] Replace type hint system and improve variable types. (#320)
* get gkernel and gkernel-h at least somewhat working in the offline tests

* strip comments from json

* switch hints to casts. online tests passing, offline passing up to gkernel

* variable retyping is added

* fix up casts in lets

* update
2021-03-13 16:10:39 -05:00

10 lines
300 B
C++

#pragma once
#include <stdexcept>
#include "common/util/Range.h"
#include "third-party/json.hpp"
std::string strip_cpp_style_comments(const std::string& input);
nlohmann::json parse_commented_json(const std::string& input);
Range<int> parse_json_optional_integer_range(const nlohmann::json& json);