Implement multiplication

This commit is contained in:
2024-03-03 13:11:39 +01:00
parent 3a6d89767b
commit d2516cb76c
25 changed files with 343 additions and 1989 deletions

View File

@ -2,26 +2,29 @@
namespace elna
{
CompileError::CompileError(const char *message, const Position position) noexcept
namespace source
{
error::error(const char *message, const source::position position) noexcept
{
this->message = message;
this->position = position;
}
char const *CompileError::what() const noexcept
char const *error::what() const noexcept
{
return this->message;
}
std::size_t CompileError::line() const noexcept
std::size_t error::line() const noexcept
{
return this->position.line;
}
std::size_t CompileError::column() const noexcept
std::size_t error::column() const noexcept
{
return this->position.column;
}
}
Symbol::Symbol(const char *name)
{