Lexer done for now, moving on to ast

This commit is contained in:
Michael Fabian 'Xaymar' Dirks
2024-06-26 00:31:06 +02:00
parent fa81c2a7fa
commit dfe3e88dbd
15 changed files with 642 additions and 103 deletions
+25 -1
View File
@@ -1,4 +1,28 @@
// AUTOGENERATED COPYRIGHT HEADER START
// Copyright (C) NaN-NaN undefined
// Copyright (C) 2024 Michael Fabian 'Xaymar' Dirks <info@xaymar.com>
// AUTOGENERATED COPYRIGHT HEADER END
#include "error.hpp"
blitz::error::~error() {}
blitz::error::error(std::filesystem::path file, std::pair<uint64_t, uint64_t> base, std::pair<uint64_t, uint64_t> at, std::string reason) : std::runtime_error(reason)
{
_file = file;
_base = base;
_at = at;
}
std::filesystem::path const& blitz::error::file() const
{
return _file;
}
std::pair<uint64_t, uint64_t> const& blitz::error::base() const
{
return _base;
}
std::pair<uint64_t, uint64_t> const& blitz::error::at() const
{
return _at;
}