Made output stream a member of the SAS translator for convenience.

This commit is contained in:
2016-06-12 22:35:31 +02:00
parent b70e62ff3b
commit 49002ac52d
3 changed files with 108 additions and 106 deletions

View File

@@ -112,8 +112,8 @@ int main(int argc, char **argv)
else if (language == plasp::Language::Type::SAS)
{
const auto description = plasp::sas::Description::fromParser(std::move(parser));
const auto translator = plasp::sas::TranslatorASP(description);
translator.translate(std::cout);
const auto translator = plasp::sas::TranslatorASP(description, std::cout);
translator.translate();
}
}
catch (const plasp::utils::ParserException &e)