Package org.nineml.coffeegrinder.parser
Class AmbiguityReport
java.lang.Object
org.nineml.coffeegrinder.parser.AmbiguityReport
An ambiguity report.
This is a report derived from the dk.brics.grammar ambiguity analyzer.
-
Method Summary
Modifier and TypeMethodDescriptionvoidcheck()Run the checker.Get the report.booleanDid the check succeed?booleanIs the report reliable?booleanIs the grammar unambiguous?
-
Method Details
-
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
Get the report.The report is the text output from the brics analyzer.
- Returns:
- The report.
-
check
public void check()Run the checker.
-