Changeset 2253 for proto


Ignore:
Timestamp:
Jul 11, 2012, 3:26:12 PM (7 years ago)
Author:
ksherdy
Message:

Modified sample visitor.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • proto/scatterRE/src/visitor/Visitor.java

    r2241 r2253  
    99import ast.RepetitionIndicatorNode;
    1010import ast.RepetitionNode;
     11import ast.StartNode;
    1112import ast.ASTVisitor.Default;
    1213
    1314public class Visitor extends Default {
     15        public void defaultVisit(ASTNode node) {
     16        }
     17
    1418        public void defaultVisitEnter(ASTNode node) {
    1519                defaultVisit(node);
     
    8084        }
    8185
     86        public void visitEnter(StartNode node) {
     87                defaultVisitEnter(node);
     88        }
     89        public void visitLeave(StartNode node) {
     90                defaultVisitLeave(node);
     91        }
     92
    8293}
    8394
Note: See TracChangeset for help on using the changeset viewer.