示例#1
0
        private Expression ToBool(Expression condition)
        {
            condition = CompilerUtils.ToBool(condition);

            if (Node.Token.Type == kUNTIL || Node.Token.Type == kUNTIL_MOD)
            {
                condition = CompilerUtils.Negate(condition);
            }
            return(condition);
        }
示例#2
0
        private Expression MakeCondition(Expression condition, Expression trueBody, Expression elseBody)
        {
            condition = CompilerUtils.ToBool(condition);

            if (Node.Token.Type == kUNLESS || Node.Token.Type == kUNLESS_MOD)
            {
                condition = CompilerUtils.Negate(condition);
            }

            return(Condition(condition, trueBody, elseBody, typeof(iObject)));
        }