Reset error list in parseAndAnalyze

This commit is contained in:
Alex Beregszaszi 2017-06-07 14:41:44 +01:00
parent 1fba984966
commit 937c208320

View File

@ -43,6 +43,7 @@ Scanner const& AssemblyStack::scanner() const
bool AssemblyStack::parseAndAnalyze(std::string const& _sourceName, std::string const& _source)
{
m_errors.clear();
m_analysisSuccessful = false;
m_scanner = make_shared<Scanner>(CharStream(_source), _sourceName);
m_parserResult = assembly::Parser(m_errorReporter, m_language == Language::JULIA).parse(m_scanner);