Minor refactoring.
This commit is contained in:
parent
8c98548dbc
commit
fbcb790611
@ -34,13 +34,7 @@ std::experimental::optional<ast::AtomicFormula> parseAtomicFormula(Context &cont
|
|||||||
tokenizer.seek(position);
|
tokenizer.seek(position);
|
||||||
|
|
||||||
// Now, test supported expressions
|
// Now, test supported expressions
|
||||||
std::experimental::optional<ast::AtomicFormula> atomicFormula;
|
return parsePredicate(context, astContext, variableStack);
|
||||||
|
|
||||||
if ((atomicFormula = parsePredicate(context, astContext, variableStack)))
|
|
||||||
return std::move(atomicFormula.value());
|
|
||||||
|
|
||||||
tokenizer.seek(position);
|
|
||||||
return std::experimental::nullopt;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
Reference in New Issue
Block a user