Kajal: Extracting Grammar of a Source Code Using Large Language Models
원문 초록
Understanding and extracting the grammar of a domain-specific language (DSL) is crucial for various software engineering tasks; however, manually creating these grammars is time-intensive and error-prone. This paper presents Kajal, a novel approach that automatically infers grammar from DSL code snippets by leveraging Large Language Models (LLMs) through prompt engineering and few-shot learning. Kajal dynamically constructs input prompts, using contextual information to guide the LLM in generating the corresponding grammars, which are iteratively refined through a feedback-driven approach. Our experiments show that Kajal achieves 60% accuracy with few-shot learning and 45% without it, demonstrating the significant impact of few-shot learning on the tool's effectiveness. This approach offers a promising solution for automating DSL grammar extraction, and future work will explore using smaller, open-source LLMs and testing on larger datasets to further validate Kajal's performance.
함께 살펴볼 논문
공통 태그를 근거로 연결했습니다. 실제 인용 관계나 논문의 우수성을 뜻하지 않습니다.
The Sample Complexity of Parameter-Free Stochastic Convex Optimization
Can GPT tell us why these images are synthesized? Empowering Multimodal Large Language Models for Forensics
Few-Shot Learning by Explicit Physics Integration: An Application to Groundwater Heat Transport
Fine-Tuning and Prompt Engineering of LLMs, for the Creation of Multi-Agent AI for Addressing Sustainable Protein Production Challenges
Universal Music Representations? Evaluating Foundation Models on World Music Corpora
Time Series Forecasting as Reasoning: A Slow-Thinking Approach with Reinforced LLMs
토론
이 논문과 연결된 포럼 글이 아직 없습니다.