Added validator to catch more syntax errors in pattern code

This commit is contained in:
WerWolv
2020-11-16 22:54:39 +01:00
parent 896cad1fe0
commit c863b2f65b
5 changed files with 100 additions and 3 deletions

View File

@@ -0,0 +1,20 @@
#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);
};
}