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,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)
{
}