Title :
Memetic grammatical inference approach for DSL embedding
Author :
D. Hrnčič;M. Mernik
Author_Institution :
University of Maribor, Faculty of Electrical Engineering and Computer Science, Maribor, Slovenia
fDate :
5/1/2011 12:00:00 AM
Abstract :
Domain-specific languages (DSLs) are often designed by domain experts who have no knowledge about the syntax and semantics of programming languages. However, they are able to write sample programs to accomplish their goals and illustrate the features of their language. Grammatical inference is a technique for inferring a context-free grammar (CFG) from a set of positive (and negative) samples. This paper presents an improved memetic algorithm for grammatical inference that may assist domain experts and software language engineers in developing DSLs by automatically producing a grammar which describes a set of sample DSL programs. Our approach uses local search technique with improved generalization step and mutation operator. Negative samples are also introduced to overcome overgeneralization problem. The algorithm was tested on several DSLs and a case study of embedding a DSL is presented.
Keywords :
"Grammar","DSL","Production","Inference algorithms","Syntactics","Algorithm design and analysis","Memetics"
Conference_Titel :
MIPRO, 2011 Proceedings of the 34th International Convention
Print_ISBN :
978-1-4577-0996-8