Separate expression and statement.

This commit is contained in:
chriseth
2017-12-13 12:28:15 +01:00
parent 7614b16dc9
commit 54b6739962
20 changed files with 197 additions and 81 deletions
+5
View File
@@ -45,6 +45,11 @@ ScopeFiller::ScopeFiller(AsmAnalysisInfo& _info, ErrorReporter& _errorReporter):
m_currentScope = &scope(nullptr);
}
bool ScopeFiller::operator()(ExpressionStatement const& _expr)
{
return boost::apply_visitor(*this, _expr.expression);
}
bool ScopeFiller::operator()(Label const& _item)
{
if (!m_currentScope->registerLabel(_item.name))