예제 #1
0
        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++;
            }
        }
예제 #2
0
        public override void execute(Interpret interpreter)
        {
            NumericVariable v = interpreter.getNumVariable(variableIndex.eval(interpreter));

            v.increment();
        }