mirror of https://github.com/WerWolv/ImHex.git
24 lines
389 B
C++
24 lines
389 B
C++
#pragma once
|
|
|
|
#include <hex.hpp>
|
|
|
|
#include "token.hpp"
|
|
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
namespace hex::lang {
|
|
|
|
class Lexer {
|
|
public:
|
|
Lexer();
|
|
|
|
std::pair<Result, std::vector<Token>> lex(const std::string& code);
|
|
|
|
const std::pair<u32, std::string>& getError() { return this->m_error; }
|
|
|
|
private:
|
|
std::pair<u32, std::string> m_error;
|
|
};
|
|
|
|
} |