jak-project/decompiler/util/DataParser.h
water111 791c4abfc0
[Decompiler] Static Data Decomp (#280)
* update all-types

* begin work on static data decompiler

* working for vif disasm array

* mostly working

* finish static data decompilation
2021-02-25 09:51:28 -05:00

23 lines
509 B
C++

#pragma once
/*!
* @file DataParser.h
* A parser for the decompiled GOAL data format.
*/
#include <vector>
#include <string>
#include "decompiler/ObjectFile/LinkedWord.h"
#include "decompiler/Disasm/DecompilerLabel.h"
namespace decompiler {
struct ParsedData {
std::vector<LinkedWord> words;
std::vector<DecompilerLabel> labels;
std::string print() const;
const DecompilerLabel& label(const std::string& name) const;
};
ParsedData parse_data(const std::string& str);
} // namespace decompiler