Package org.nineml.coffeegrinder.parser
Class AmbiguityReport
- java.lang.Object
-
- org.nineml.coffeegrinder.parser.AmbiguityReport
-
public class AmbiguityReport extends java.lang.ObjectAn ambiguity report.This is a report derived from the dk.brics.grammar ambiguity analyzer.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheck()Run the checker.java.lang.StringgetAmbiguityReport()Get the report.booleangetCheckSucceeded()Did the check succeed?booleangetReliable()Is the report reliable?booleangetUnambiguous()Is the grammar unambiguous?
-
-
-
Method Detail
-
getReliable
public boolean getReliable()
Is the report reliable?Some grammars cannot be reliably analyzed.
- Returns:
- true if the report is reliable.
-
getUnambiguous
public boolean getUnambiguous()
Is the grammar unambiguous?- Returns:
- True if the grammar is unambiguous.
-
getCheckSucceeded
public boolean getCheckSucceeded()
Did the check succeed?- Returns:
- true if the check was successful.
-
getAmbiguityReport
public java.lang.String getAmbiguityReport()
Get the report.The report is the text output from the brics analyzer.
- Returns:
- The report.
-
check
public void check()
Run the checker.
-
-