Added AST representation for “equals” expressions.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
Reference in New Issue
Block a user