dbbc525174
* Build refactoring and initial plugin support * Possibly fixed linux / mac build * Added libdl to libglad build script * Add glfw to imgui dependencies * Refactored common functionality into "libimhex" for plugins * Added plugin loading and example plugin * Added proper API for creating a custom view and a custom tools entry with plugins
25 lines
405 B
C++
25 lines
405 B
C++
#pragma once
|
|
|
|
#include <hex.hpp>
|
|
|
|
#include "token.hpp"
|
|
|
|
#include <optional>
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
namespace hex::lang {
|
|
|
|
class Lexer {
|
|
public:
|
|
Lexer();
|
|
|
|
std::optional<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;
|
|
};
|
|
|
|
} |