示例#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;
 }