mirror of
https://github.com/open-goal/jak-project.git
synced 2024-10-20 21:27:52 -04:00
23 lines
509 B
C
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
|