Fix Constratint parser (it should return the constraint)

This commit is contained in:
Alex Birkett 2015-02-02 17:34:16 +01:00
parent 103360c35e
commit 68fd7509f9
1 changed files with 1 additions and 2 deletions

View File

@ -31,12 +31,11 @@ public class ConstraintParser {
Expression expression = resolveExpression(matcher.group(3), variableResolver);
double strength = parseStrength(matcher.group(4));
new Constraint(Symbolics.subtract(variable, expression), operator);
return new Constraint(Symbolics.subtract(variable, expression), operator);
} else {
throw new RuntimeException("could not parse " + constraintString);
}
return null;
}
private static RelationalOperator parseOperator(String operatorString) {