virtual public void for_statement(for_statement ast, int indent) { // Write("for (", indent); // if (ast.init != null) // visit(ast.init); // Write("; "); // if (ast.cond != null) // visit(ast.cond); // Write("; "); // EmitexpressionList(ast.iterators); // Write(")"); // statement(ast.body, indent + 1); }
public virtual void for_statement(for_statement ast) { statement(ast.body); if (ast.cond != null) { ast.cond = expression(ast.cond); } if (ast.init != null) { for_init(ast.init); } for (int i = 0; i < ast.iterators.Count; i++) { ast.iterators[i] = expression(ast.iterators[i], 0, 0); } }