source: trunk/yao/share/antlr-2.7.7/antlr/debug/ParserReporter.java @ 1

Last change on this file since 1 was 1, checked in by lnalod, 15 years ago

Initial import of YAO sources

File size: 1.1 KB
Line 
1package antlr.debug;
2
3public 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}
Note: See TracBrowser for help on using the repository browser.