20 lines
573 B
C++
20 lines
573 B
C++
#ifndef ELOHIMSCRIPT_LEXRESULT_HPP
|
|
#define ELOHIMSCRIPT_LEXRESULT_HPP
|
|
|
|
#include "LexToken.hpp"
|
|
namespace ElohimScript::Parser {
|
|
class LexResult {
|
|
public:
|
|
LexResult(const LexToken* first, const uint8_t* memoryMap) : _first(first), _memoryMap(memoryMap) {}
|
|
|
|
[[nodiscard]] const LexToken* GetFirst() const noexcept { return _first; }
|
|
[[nodiscard]] const uint8_t* GetMemoryMap() const noexcept { return _memoryMap; }
|
|
|
|
private:
|
|
const LexToken* _first;
|
|
const uint8_t* _memoryMap;
|
|
};
|
|
}
|
|
|
|
#endif // ELOHIMSCRIPT_LEXRESULT_HPP
|