Implement multiplication
This commit is contained in:
@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user