2
0
mirror of https://github.com/Laupetin/OpenAssetTools.git synced 2025-09-23 16:56:39 +00:00

Extract commonly used Parser code to new Parser component

This commit is contained in:
Jan
2021-03-08 20:06:34 +01:00
parent d96f813e73
commit 8d9080066f
39 changed files with 54 additions and 3 deletions

View File

@@ -0,0 +1,20 @@
#pragma once
#include "Utils/ClassUtils.h"
#include "TokenPos.h"
class IParserValue
{
protected:
IParserValue() = default;
public:
virtual ~IParserValue() = default;
IParserValue(const IParserValue& other) = default;
IParserValue(IParserValue&& other) noexcept = default;
IParserValue& operator=(const IParserValue& other) = default;
IParserValue& operator=(IParserValue&& other) noexcept = default;
_NODISCARD virtual bool IsEof() const = 0;
_NODISCARD virtual const TokenPos& GetPos() const = 0;
};