01: package persistence.antlr.debug;
02:
03: public class ParserReporter extends Tracer implements ParserListener {
04:
05: public void parserConsume(ParserTokenEvent e) {
06: System.out.println(indent + e);
07: }
08:
09: public void parserLA(ParserTokenEvent e) {
10: System.out.println(indent + e);
11: }
12:
13: public void parserMatch(ParserMatchEvent e) {
14: System.out.println(indent + e);
15: }
16:
17: public void parserMatchNot(ParserMatchEvent e) {
18: System.out.println(indent + e);
19: }
20:
21: public void parserMismatch(ParserMatchEvent e) {
22: System.out.println(indent + e);
23: }
24:
25: public void parserMismatchNot(ParserMatchEvent e) {
26: System.out.println(indent + e);
27: }
28:
29: public void reportError(MessageEvent e) {
30: System.out.println(indent + e);
31: }
32:
33: public void reportWarning(MessageEvent e) {
34: System.out.println(indent + e);
35: }
36:
37: public void semanticPredicateEvaluated(SemanticPredicateEvent e) {
38: System.out.println(indent + e);
39: }
40:
41: public void syntacticPredicateFailed(SyntacticPredicateEvent e) {
42: System.out.println(indent + e);
43: }
44:
45: public void syntacticPredicateStarted(SyntacticPredicateEvent e) {
46: System.out.println(indent + e);
47: }
48:
49: public void syntacticPredicateSucceeded(SyntacticPredicateEvent e) {
50: System.out.println(indent + e);
51: }
52: }
|