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:
20
src/Parser/Parsing/IParserValue.h
Normal file
20
src/Parser/Parsing/IParserValue.h
Normal 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;
|
||||
};
|
Reference in New Issue
Block a user