Implement division

This commit is contained in:
2024-03-09 08:36:07 +01:00
parent fe805ca893
commit a3e3be5ec7
25 changed files with 357 additions and 245 deletions

View File

@ -2,24 +2,18 @@
namespace elna::source
{
error::error(const char *message, const source::position position) noexcept
error::error(const position position)
: m_position(position)
{
this->message = message;
this->position = position;
}
char const *error::what() const noexcept
{
return this->message;
}
std::size_t error::line() const noexcept
{
return this->position.line;
return this->m_position.line;
}
std::size_t error::column() const noexcept
{
return this->position.column;
return this->m_position.column;
}
}