コード例 #1
0
 public bool visitLeave(While wWhile)
 {
     return true;
 }
コード例 #2
0
        bool visitEnter(While whileSymbol)
        {
            Expression expression = whileSymbol.expression;
            Block block = whileSymbol.block;

            Console.WriteLine("while(" + "Expression" + ")");
            Value.Value result;

            do
            {
                result = expressionEvaluator.resolve(scopes.First(), expression);

                if (result.getBoolean())
                {
                    block.accept(this);
                }
            } while (result.getBoolean());

            return false;
        }
コード例 #3
0
 public bool visitEnter(While wWhile)
 {
     return true;
 }