Print test summary

This commit is contained in:
2024-02-28 16:18:39 +01:00
parent 40f2c1eede
commit 31c178ad9c
18 changed files with 890 additions and 706 deletions

25
source/result.cpp Normal file
View File

@@ -0,0 +1,25 @@
#include "elna/result.hpp"
namespace elna
{
CompileError::CompileError(const char *message, const Position position) noexcept
{
this->message = message;
this->position = position;
}
char const *CompileError::what() const noexcept
{
return this->message;
}
std::size_t CompileError::line() const noexcept
{
return this->position.line;
}
std::size_t CompileError::column() const noexcept
{
return this->position.column;
}
}