Class JavaCCErrors

java.lang.Object
EDU.purdue.jtb.parser.JavaCCErrors

public final class JavaCCErrors extends Object
Output error messages and keep track of totals.
  • Method Details

    • parse_error

      public static void parse_error(Object node, String mess)
      Parameters:
      node - - the node where the parse error occurred
      mess - - the error message
    • parse_error

      public static void parse_error(String mess)
      Parameters:
      mess - - the error message
    • get_parse_error_count

      public static int get_parse_error_count()
      Returns:
      the number of parse errors
    • semantic_error

      public static void semantic_error(Object node, String mess)
      Parameters:
      node - - the node where the semantic error occurred
      mess - - the error message
    • semantic_error

      public static void semantic_error(String mess)
      Parameters:
      mess - - the error message
    • get_semantic_error_count

      public static final int get_semantic_error_count()
      Returns:
      the number of semantic errors
    • warning

      public static void warning(Object node, String mess)
      Parameters:
      node - - the node where the warning occurred
      mess - - the error message
    • warning

      public static void warning(String mess)
      Parameters:
      mess - - the error message
    • get_warning_count

      public static final int get_warning_count()
      Returns:
      the number of warnings
    • get_error_count

      public static final int get_error_count()
      Returns:
      the number of parse and semantic errors
    • reInit

      public static void reInit()
      Reinitializes counters