Started implementing Lexer errors

This commit is contained in:
Pasha Bibko
2025-07-20 21:54:37 +01:00
parent 6a0d2fc0a2
commit bb3d8fb13e
7 changed files with 84 additions and 32 deletions

View File

@@ -6,7 +6,7 @@
namespace LXC::Util
{
// Error returned when Util::ReadFile runs into errors //
struct FileReadError
struct FileReadError final
{
// Different reasons why the error can occur //
enum Reason
@@ -26,7 +26,7 @@ namespace LXC::Util
const Reason reason;
// Turns the error into a c-string //
inline static const char* const ReasonStr(const Reason& reason)
inline static const char* const ReasonStr(Reason reason)
{
static const char* reasons[] =
{