Started implementing color output (currently for head only).

This commit is contained in:
2016-11-24 02:42:32 +01:00
parent e0d46c2e99
commit 018559b8cf
8 changed files with 603 additions and 41 deletions

View File

@@ -2,6 +2,7 @@
#include <boost/program_options.hpp>
#include <anthem/Context.h>
#include <anthem/Translation.h>
int main(int argc, char **argv)
@@ -28,6 +29,8 @@ int main(int argc, char **argv)
std::cout << description;
};
anthem::Context context;
try
{
po::store(po::command_line_parser(argc, argv)
@@ -61,10 +64,10 @@ int main(int argc, char **argv)
if (variablesMap.count("input"))
{
const auto &inputFiles = variablesMap["input"].as<std::vector<std::string>>();
anthem::translate(inputFiles);
anthem::translate(inputFiles, context);
}
else
anthem::translate("std::cin", std::cin);
anthem::translate("std::cin", std::cin, context);
}
catch (const std::exception &e)
{