Fixed missing usages of new output format.
This commit is contained in:
parent
e2a450daa6
commit
c760edb141
@ -90,7 +90,7 @@ struct TermPrintVisitor
|
||||
outputStream << " " << Clingo::AST::BinaryOperator::And << " ";
|
||||
|
||||
if (literal.sign == Clingo::AST::Sign::Negation)
|
||||
std::cout << Clingo::AST::Sign::Negation << " ";
|
||||
outputStream << Clingo::AST::Sign::Negation << " ";
|
||||
|
||||
outputStream << output::Function(function.name) << "(";
|
||||
|
||||
|
@ -19,7 +19,8 @@ struct StatementVisitor
|
||||
{
|
||||
void visit(const Clingo::AST::Program &program, const Clingo::AST::Statement &statement, Context &context)
|
||||
{
|
||||
context.logger.log(output::Priority::Debug, program.name);
|
||||
// TODO: refactor
|
||||
context.logger.log(output::Priority::Debug, (std::string("[program] ") + program.name).c_str());
|
||||
|
||||
if (!program.parameters.empty())
|
||||
throwErrorAtLocation(statement.location, "program parameters currently unsupported", context);
|
||||
|
@ -32,7 +32,8 @@ void translate(const std::vector<std::string> &fileNames, Context &context)
|
||||
|
||||
void translate(const char *fileName, std::istream &stream, Context &context)
|
||||
{
|
||||
std::cout << "info: reading " << fileName << std::endl;
|
||||
// TODO: refactor
|
||||
context.logger.log(output::Priority::Note, (std::string("reading ") + fileName).c_str());
|
||||
|
||||
auto fileContent = std::string(std::istreambuf_iterator<char>(stream), {});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user