advanced
Developing a Code Generator from Text Specifications
Create a system that transforms natural language or formal text specifications into executable code
📝 Conteúdo do Prompt
Design a code generation system that can: 1) Parse natural language descriptions of algorithms and translate them to working code 2) Extract requirements, constraints, and specifications from text 3) Generate code in multiple programming languages 4) Handle edge cases and error conditions described in text 5) Generate test cases based on the specification 6) Create documentation from the same source text. Include parsing strategy for requirements, code generation templates, handling of ambiguous descriptions, and validation mechanisms. Provide examples showing how text specifications like "" are transformed into complete, working code implementations.