mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-24 03:52:50 -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);
|
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);
|
Iterator<ExprProb> iter = Parser.parse(this, startCat, s);
|
||||||
if (iter.hasNext()) {
|
if (iter.hasNext()) {
|
||||||
return iter.next().getExpr();
|
return iter.next().getExpr();
|
||||||
|
|||||||
Reference in New Issue
Block a user