Minor refactoring.

This commit is contained in:
Patrick Lühne 2017-06-17 19:57:22 +02:00
parent 8c98548dbc
commit fbcb790611
Signed by: patrick
GPG Key ID: 05F3611E97A70ABF

View File

@ -34,13 +34,7 @@ std::experimental::optional<ast::AtomicFormula> parseAtomicFormula(Context &cont
tokenizer.seek(position);
// Now, test supported expressions
std::experimental::optional<ast::AtomicFormula> atomicFormula;
if ((atomicFormula = parsePredicate(context, astContext, variableStack)))
return std::move(atomicFormula.value());
tokenizer.seek(position);
return std::experimental::nullopt;
return parsePredicate(context, astContext, variableStack);
}
////////////////////////////////////////////////////////////////////////////////////////////////////