now Concr.parseBest throws ParseError

This commit is contained in:
kr.angelov
2013-08-28 15:35:57 +00:00
parent 69007cc661
commit 430e9c1b49

View File

@@ -10,7 +10,7 @@ public class Concr {
return new Parser(this, startCat, s);
}
public Expr parseBest(String startCat, String s) {
public Expr parseBest(String startCat, String s) throws ParseError {
Iterator<ExprProb> iter = Parser.parse(this, startCat, s);
if (iter.hasNext()) {
return iter.next().getExpr();