public override void execute(Interpret interpreter) { int limit = limitVal.eval(interpreter), counter = 0; NumericVariable v = interpreter.getNumVariable(varIndex.eval(interpreter)); while (v.getValue() < limit && counter < LoopLimit) { directive.executeAll(interpreter); v.increment(); counter++; } }
public override void execute(Interpret interpreter) { NumericVariable v = interpreter.getNumVariable(variableIndex.eval(interpreter)); v.increment(); }