Removed unwanted translation of boolean literals.
This commit is contained in:
parent
abd61095e2
commit
be91498384
@ -100,12 +100,9 @@ struct TermPrintVisitor
|
||||
|
||||
struct LiteralPrintVisitor
|
||||
{
|
||||
void visit(const Clingo::AST::Boolean &boolean, const Clingo::AST::Literal &, Context &)
|
||||
void visit(const Clingo::AST::Boolean &, const Clingo::AST::Literal &literal, Context &)
|
||||
{
|
||||
if (boolean.value == true)
|
||||
std::cout << "#true";
|
||||
else
|
||||
std::cout << "#false";
|
||||
throwErrorAtLocation(literal.location, "“boolean” literals currently unsupported in this context");
|
||||
}
|
||||
|
||||
void visit(const Clingo::AST::Term &term, const Clingo::AST::Literal &, Context &context)
|
||||
|
Loading…
Reference in New Issue
Block a user