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

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

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