Inferring Context-Free Grammars for Domain-Specific Languages

被引:3
|
作者
Crepinsek, Matej [1 ]
Mernik, Marjan [1 ]
Bryant, Barrett R. [2 ]
Javed, Faizan [2 ]
Sprague, Alan [2 ]
机构
[1] Univ Maribor, Fac Elect Engn & Comp Sci, SL-2000 Maribor, Slovenia
[2] Univ Alabama Birmingham, Dept Comp & Informat Sci, Birmingham, AL 35294 USA
关键词
Grammar induction; Grammar inference; Learning from positive and negative examples; Genetic programming; Exhaustive search;
D O I
10.1016/j.entcs.2005.02.055
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
In the area of programming languages, context-free grammars (CFGs) are of special importance since almost all programming languages employ CFG's in their design. Recent approaches to CFG induction are not able to infer context-free grammars for general-purpose programming languages. In this paper it is shown that syntax of a small domain-specific language can be inferred from positive and negative programs provided by domain experts. In our work we are using the genetic programming approach in grammatical inference. Grammar-specific heuristic operators and nonrandom construction of the initial population are proposed to achieve this task. Suitability of the approach is shown by examples where underlying context-free grammars are successfully inferred.
引用
收藏
页码:99 / 116
页数:18
相关论文
共 50 条