@scch

Using AI-Based Code Completion for Domain-Specific Languages

, , , , and . Product-Focused Software Process Improvement, page 227--242. Cham, Springer Nature Switzerland, (2024)

Abstract

Code completion is a very important feature of modern integrated development environments. Research has been done for years to improve code completion systems for general-purpose languages. However, only little literature can be found for (AI-based) code completion for domain specific languages (DSLs). A DSL is a special-purpose programming language tailored for a specific application domain. In this paper, we investigate whether AI-based state-of-the-art code completion approaches can also be applied for DSLs. This is demonstrated using the domain-specific language TTI (Thermal Text Input). TTI is used for power transformer design specification in an industrial context, where an existing code completion shall be replaced by an advanced machine learning approach. For this purpose, implementations of two code completion systems are adapted to our needs. One of them shows very promising results and achieves a top-5 accuracy of 97\%. To evaluate the practical applicability, the approach is integrated into an existing editor of a power transformer manufacturer.

Links and resources

Tags