Exemplo 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));
        }
Exemplo n.º 2
0
 public LoopNode DoForeverExpression(int loopId, int condId, AbstractStatementNode statement) =>
 new LoopNode(loopId, condId, LiteralNode.True, statement);
Exemplo n.º 3
0
        public LoopNode DoWhileExpression(int loopId, int condId, AbstractStatementNode statement)
        {
            var stopCondition = ParentheseEnclosed(ArithmeticExpression);

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