public bool visitLeave(While wWhile) { return true; }
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; }
public bool visitEnter(While wWhile) { return true; }