mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2026-03-16 09:53:04 +00:00
Extract commonly used Parser code to new Parser component
This commit is contained in:
17
src/Parser/Parsing/TokenPos.h
Normal file
17
src/Parser/Parsing/TokenPos.h
Normal file
@@ -0,0 +1,17 @@
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
#include <functional>
|
||||
|
||||
class TokenPos
|
||||
{
|
||||
static const std::string EMPTY_FILENAME;
|
||||
|
||||
public:
|
||||
std::reference_wrapper<const std::string> m_filename;
|
||||
int m_line;
|
||||
int m_column;
|
||||
|
||||
TokenPos();
|
||||
TokenPos(const std::string& filename, int line, int column);
|
||||
};
|
||||
Reference in New Issue
Block a user