Esempio n. 1
0
        public LoopNode DoUntilExpression(int loopId, int condId, AbstractStatementNode statement)
        {
            var stopCondition = ParentheseEnclosed(ArithmeticExpression);

            return(new LoopNode(loopId, condId, OperationNode.Negate(stopCondition), statement));
        }
Esempio n. 2
0
 public LoopNode DoForeverExpression(int loopId, int condId, AbstractStatementNode statement) =>
 new LoopNode(loopId, condId, LiteralNode.True, statement);
Esempio n. 3
0
        public LoopNode DoWhileExpression(int loopId, int condId, AbstractStatementNode statement)
        {
            var stopCondition = ParentheseEnclosed(ArithmeticExpression);

            return(new LoopNode(loopId, condId, stopCondition, statement));
        }