Class JavaCCErrors


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

      • parse_error

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

        public static void parse_error​(java.lang.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​(java.lang.Object node,
                                          java.lang.String mess)
        Parameters:
        node - - the node where the semantic error occurred
        mess - - the error message
      • semantic_error

        public static void semantic_error​(java.lang.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​(java.lang.Object node,
                                   java.lang.String mess)
        Parameters:
        node - - the node where the warning occurred
        mess - - the error message
      • warning

        public static void warning​(java.lang.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