AINeutralarXiv – CS AI · 8h ago6/10
🧠
Text2DSL: LLM-Based Code Generation for Domain-Specific Languages
Researchers introduce Text2DSL, a framework for automatically generating domain-specific language (DSL) code from natural language using large language models, validated on 4,204 Polkit security policy rules. The study demonstrates that providing structured context like BNF grammar and API specifications dramatically improves code generation accuracy to 98.6-99.4% syntactic validity across different model scales without requiring fine-tuning.