Better error handling in lexer

This commit is contained in:
Rafał Grodziński
2025-07-03 12:56:48 +09:00
parent 3dc513871f
commit 36a89a811a
6 changed files with 86 additions and 23 deletions

View File

@@ -25,6 +25,8 @@ class ExpressionBlock;
enum class ValueType;
class Error;
using namespace std;
class Logger {
@@ -55,6 +57,7 @@ private:
public:
static void print(vector<shared_ptr<Token>> tokens);
static void print(vector<shared_ptr<Statement>> statements);
static void print(shared_ptr<Error> error);
};
#endif