mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-06-14 00:38:15 -05:00
Extract commonly used Parser code to new Parser component
This commit is contained in:
17
src/Parser/Parsing/TokenPos.cpp
Normal file
17
src/Parser/Parsing/TokenPos.cpp
Normal file
@ -0,0 +1,17 @@
|
||||
#include "TokenPos.h"
|
||||
|
||||
const std::string TokenPos::EMPTY_FILENAME;
|
||||
|
||||
TokenPos::TokenPos()
|
||||
: m_filename(EMPTY_FILENAME),
|
||||
m_line(1),
|
||||
m_column(1)
|
||||
{
|
||||
}
|
||||
|
||||
TokenPos::TokenPos(const std::string& filename, const int line, const int column)
|
||||
: m_filename(filename),
|
||||
m_line(line),
|
||||
m_column(column)
|
||||
{
|
||||
}
|
Reference in New Issue
Block a user