Added AST representation for “equals” expressions.

This commit is contained in:
2017-08-31 17:54:30 +02:00
parent 9199b68080
commit 716b4801aa
5 changed files with 43 additions and 2 deletions

View File

@@ -17,13 +17,20 @@ namespace detail
normalizedAST::AtomicFormula normalize(ast::AtomicFormula &&atomicFormula)
{
const auto handleEquals =
[&](ast::EqualsPointer<ast::Term, ast::Term> &) -> normalizedAST::AtomicFormula
{
// TODO: implement
throw NormalizationException("“=” expressions currently unsupported by normalization");
};
const auto handlePredicate =
[&](ast::PredicatePointer &predicate) -> normalizedAST::AtomicFormula
{
return std::move(predicate);
};
return atomicFormula.match(handlePredicate);
return atomicFormula.match(handleEquals, handlePredicate);
}
////////////////////////////////////////////////////////////////////////////////////////////////////