use of priv.bajdcc.LALR1.syntax.ISyntaxComponent in project jMiniLang by bajdcc.
the class FirstSetSolver method visitBegin.
@Override
public void visitBegin(SequenceExp node, VisitBag bag) {
bag.bVisitChildren = false;
bag.bVisitEnd = false;
boolean zero = false;
for (ISyntaxComponent exp : node.arrExpressions) {
exp.visit(this);
zero = bZero;
if (!zero) {
break;
}
}
bZero = zero;
}
use of priv.bajdcc.LALR1.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);
}
}
use of priv.bajdcc.LALR1.syntax.ISyntaxComponent in project jMiniLang by bajdcc.
the class FirstsetSolver method visitBegin.
@Override
public void visitBegin(SequenceExp node, VisitBag bag) {
bag.bVisitChildren = false;
bag.bVisitEnd = false;
boolean zero = false;
for (ISyntaxComponent exp : node.arrExpressions) {
exp.visit(this);
zero = bZero;
if (!zero) {
break;
}
}
bZero = zero;
}
use of priv.bajdcc.LALR1.syntax.ISyntaxComponent in project jMiniLang by bajdcc.
the class FirstsetSolver method visitBegin.
@Override
public void visitBegin(BranchExp node, VisitBag bag) {
bag.bVisitChildren = false;
bag.bVisitEnd = false;
boolean zero = false;
for (ISyntaxComponent exp : node.arrExpressions) {
exp.visit(this);
if (bZero) {
zero = bZero;
}
}
bZero = zero;
}
use of priv.bajdcc.LALR1.syntax.ISyntaxComponent in project jMiniLang by bajdcc.
the class FirstSetSolver method visitBegin.
@Override
public void visitBegin(BranchExp node, VisitBag bag) {
bag.bVisitChildren = false;
bag.bVisitEnd = false;
boolean zero = false;
for (ISyntaxComponent exp : node.arrExpressions) {
exp.visit(this);
if (bZero) {
zero = bZero;
}
}
bZero = zero;
}
Aggregations