Search in sources :

Example 1 with ISyntaxComponent

use of priv.bajdcc.OP.syntax.ISyntaxComponent 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);
    }
}
Also used : ISyntaxComponent(priv.bajdcc.OP.syntax.ISyntaxComponent) VisitBag(priv.bajdcc.util.VisitBag)

Example 2 with ISyntaxComponent

use of priv.bajdcc.OP.syntax.ISyntaxComponent 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);
    }
}
Also used : ISyntaxComponent(priv.bajdcc.OP.syntax.ISyntaxComponent) VisitBag(priv.bajdcc.util.VisitBag)

Example 3 with ISyntaxComponent

use of priv.bajdcc.OP.syntax.ISyntaxComponent in project jMiniLang by bajdcc.

the class BranchExp method visitReverse.

@Override
public void visitReverse(ISyntaxComponentVisitor visitor) {
    VisitBag bag = new VisitBag();
    visitor.visitBegin(this, bag);
    if (bag.bVisitChildren) {
        for (ISyntaxComponent exp : arrExpressions) {
            exp.visitReverse(visitor);
        }
    }
    if (bag.bVisitEnd) {
        visitor.visitEnd(this);
    }
}
Also used : ISyntaxComponent(priv.bajdcc.OP.syntax.ISyntaxComponent) VisitBag(priv.bajdcc.util.VisitBag)

Aggregations

ISyntaxComponent (priv.bajdcc.OP.syntax.ISyntaxComponent)3 VisitBag (priv.bajdcc.util.VisitBag)3