AST implementation of For