now Concr.parseBest throws ParseError
This commit is contained in:
1 parent
69007cc661
commit
430e9c1b49
1 file changed
+1
-1
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user