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

21
src/Error.h Normal file
View File

@@ -0,0 +1,21 @@
#ifndef ERROR_H
#define ERROR_H
#include <iostream>
using namespace std;
class Error {
private:
int line;
int column;
string lexme;
public:
Error(int line, int column, string lexme);
int getLine();
int getColumn();
string getLexme();
};
#endif