Class JavaCCErrors
java.lang.Object
EDU.purdue.jtb.parser.JavaCCErrors
Output error messages and keep track of totals.
-
Method Summary
Modifier and TypeMethodDescriptionstatic final intstatic intstatic final intstatic final intstatic voidparse_error(Object node, String mess) static voidparse_error(String mess) static voidreInit()Reinitializes countersstatic voidsemantic_error(Object node, String mess) static voidsemantic_error(String mess) static voidstatic void
-
Method Details
-
parse_error
-
parse_error
- Parameters:
mess- - the error message
-
get_parse_error_count
public static int get_parse_error_count()- Returns:
- the number of parse errors
-
semantic_error
-
semantic_error
- Parameters:
mess- - the error message
-
get_semantic_error_count
public static final int get_semantic_error_count()- Returns:
- the number of semantic errors
-
warning
-
warning
- 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
-