LLM-Driven Corrective Robot Operation Code Generation with Static Text-Based Simulation