mirror of https://github.com/WerWolv/ImHex.git
25 lines
402 B
C++
25 lines
402 B
C++
#pragma once
|
|
|
|
#include <hex.hpp>
|
|
|
|
#include "token.hpp"
|
|
#include "ast_node.hpp"
|
|
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
namespace hex::lang {
|
|
|
|
class Validator {
|
|
public:
|
|
Validator();
|
|
|
|
bool validate(const std::vector<ASTNode*>& ast);
|
|
|
|
const std::pair<u32, std::string>& getError() { return this->m_error; }
|
|
|
|
private:
|
|
std::pair<u32, std::string> m_error;
|
|
};
|
|
|
|
} |