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 @@
#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);
};