Added proper logging capabilities

This commit is contained in:
Pasha Bibko
2025-07-20 18:09:29 +01:00
parent 903b4da7df
commit 9dedcf30b1
6 changed files with 115 additions and 8 deletions

View File

@@ -92,7 +92,9 @@ namespace LXC::Lexer
// Getters for the c-string to stop it being reassigned (or deleted) //
inline const char* const Str() const { return contents; }
operator const char* const() { return contents; }
// Outputs all the relevant infomration in a string for logging purposes //
std::string LogStr() const;
// The type of the token //
const TokenType type;