use of priv.bajdcc.util.VisitBag in project jMiniLang by bajdcc.
the class RuleExp method visit.
@Override
public void visit(ISyntaxComponentVisitor visitor) {
VisitBag bag = new VisitBag();
visitor.visitBegin(this, bag);
if (bag.bVisitEnd) {
visitor.visitEnd(this);
}
}
use of priv.bajdcc.util.VisitBag in project jMiniLang by bajdcc.
the class SequenceExp method visit.
@Override
public void visit(ISyntaxComponentVisitor visitor) {
VisitBag bag = new VisitBag();
visitor.visitBegin(this, bag);
if (bag.bVisitChildren) {
for (ISyntaxComponent exp : arrExpressions) {
exp.visit(visitor);
}
}
if (bag.bVisitEnd) {
visitor.visitEnd(this);
}
}
use of priv.bajdcc.util.VisitBag in project jMiniLang by bajdcc.
the class SequenceExp method visitReverse.
@Override
public void visitReverse(ISyntaxComponentVisitor visitor) {
VisitBag bag = new VisitBag();
visitor.visitBegin(this, bag);
if (bag.bVisitChildren) {
for (int i = arrExpressions.size() - 1; i >= 0; i--) {
arrExpressions.get(i).visitReverse(visitor);
}
}
if (bag.bVisitEnd) {
visitor.visitEnd(this);
}
}
use of priv.bajdcc.util.VisitBag in project jMiniLang by bajdcc.
the class BranchExp method visit.
@Override
public void visit(ISyntaxComponentVisitor visitor) {
VisitBag bag = new VisitBag();
visitor.visitBegin(this, bag);
if (bag.bVisitChildren) {
for (ISyntaxComponent exp : arrExpressions) {
exp.visit(visitor);
}
}
if (bag.bVisitEnd) {
visitor.visitEnd(this);
}
}
use of priv.bajdcc.util.VisitBag in project jMiniLang by bajdcc.
the class OptionExp method visit.
@Override
public void visit(ISyntaxComponentVisitor visitor) {
VisitBag bag = new VisitBag();
visitor.visitBegin(this, bag);
if (bag.bVisitChildren) {
expression.visit(visitor);
}
if (bag.bVisitEnd) {
visitor.visitEnd(this);
}
}
Aggregations