Tokenize the input with flex
This commit is contained in:
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user