mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-09 04:59:31 -06:00
now Concr.parseBest throws ParseError
This commit is contained in:
@@ -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