Class AmbiguityReport

java.lang.Object
org.nineml.coffeegrinder.parser.AmbiguityReport

public class AmbiguityReport extends Object
An ambiguity report.

This is a report derived from the dk.brics.grammar ambiguity analyzer.

  • 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

      public 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.