Fixed missing usages of new output format.
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user