Tokenize the input with flex

This commit is contained in:
2024-04-06 16:10:07 +02:00
parent 0cad759415
commit 0876e25f90
11 changed files with 274 additions and 369 deletions

View File

@ -95,7 +95,7 @@ namespace elna::source
}
declaration::declaration(const std::string& identifier, const std::string& type)
: m_identifier(identifier), m_type(type)
: definition(identifier), m_type(type)
{
}
@ -104,11 +104,6 @@ namespace elna::source
visitor->visit(this);
}
std::string& declaration::identifier() noexcept
{
return m_identifier;
}
std::string& declaration::type() noexcept
{
return m_type;
@ -710,7 +705,7 @@ namespace elna::source
else
{
iterator.add_error(*iterator);
break;
return nullptr;
}
}