mirror of
https://github.com/open-goal/jak-project.git
synced 2024-10-20 21:27:52 -04:00
24 lines
510 B
C++
24 lines
510 B
C++
#pragma once
|
|
|
|
/*!
|
|
* @file DataParser.h
|
|
* A parser for the decompiled GOAL data format.
|
|
*/
|
|
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
#include "decompiler/Disasm/DecompilerLabel.h"
|
|
#include "decompiler/ObjectFile/LinkedWord.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
|