1 package antlr.debug; 2 3 public class ParserReporter extends Tracer implements ParserListener { 4 5 6 public void parserConsume(ParserTokenEvent e) { 7 System.out.println(indent+e); 8 } 9 public void parserLA(ParserTokenEvent e) { 10 System.out.println(indent+e); 11 } 12 public void parserMatch(ParserMatchEvent e) { 13 System.out.println(indent+e); 14 } 15 public void parserMatchNot(ParserMatchEvent e) { 16 System.out.println(indent+e); 17 } 18 public void parserMismatch(ParserMatchEvent e) { 19 System.out.println(indent+e); 20 } 21 public void parserMismatchNot(ParserMatchEvent e) { 22 System.out.println(indent+e); 23 } 24 public void reportError(MessageEvent e) { 25 System.out.println(indent+e); 26 } 27 public void reportWarning(MessageEvent e) { 28 System.out.println(indent+e); 29 } 30 public void semanticPredicateEvaluated(SemanticPredicateEvent e) { 31 System.out.println(indent+e); 32 } 33 public void syntacticPredicateFailed(SyntacticPredicateEvent e) { 34 System.out.println(indent+e); 35 } 36 public void syntacticPredicateStarted(SyntacticPredicateEvent e) { 37 System.out.println(indent+e); 38 } 39 public void syntacticPredicateSucceeded(SyntacticPredicateEvent e) { 40 System.out.println(indent+e); 41 } 42 } | Popular Tags |