Package EDU.purdue.jtb.parser
Class JavaCCErrors
- java.lang.Object
-
- EDU.purdue.jtb.parser.JavaCCErrors
-
public final class JavaCCErrors extends java.lang.ObjectOutput error messages and keep track of totals.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static intget_error_count()static intget_parse_error_count()static intget_semantic_error_count()static intget_warning_count()static voidparse_error(java.lang.Object node, java.lang.String mess)static voidparse_error(java.lang.String mess)static voidreInit()Reinitializes countersstatic voidsemantic_error(java.lang.Object node, java.lang.String mess)static voidsemantic_error(java.lang.String mess)static voidwarning(java.lang.Object node, java.lang.String mess)static voidwarning(java.lang.String mess)
-
-
-
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 occurredmess- - 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 occurredmess- - 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 occurredmess- - 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
-
-