Package EDU.purdue.jtb.parser
Class JavaCCErrors
java.lang.Object
EDU.purdue.jtb.parser.JavaCCErrors
Output error messages and keep track of totals.
-
Method Summary
Modifier and TypeMethodDescriptionstatic final int
static int
static final int
static final int
static void
parse_error
(Object node, String mess) static void
parse_error
(String mess) static void
reInit()
Reinitializes countersstatic void
semantic_error
(Object node, String mess) static void
semantic_error
(String mess) static void
static void
-
Method Details
-
parse_error
- Parameters:
node
- - the node where the parse error occurredmess
- - the error message
-
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
- Parameters:
node
- - the node where the semantic error occurredmess
- - the error message
-
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
- Parameters:
node
- - the node where the warning occurredmess
- - the error message
-
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
-