Interactive Synthesis using Free-Form Queries

被引:23
作者
Gvero, Tihomir [1 ]
Kuncak, Viktor [1 ]
机构
[1] Ecole Polytech Fed Lausanne, Lausanne, Switzerland
来源
2015 IEEE/ACM 37TH IEEE INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING, VOL 2 | 2015年
关键词
D O I
10.1109/ICSE.2015.224
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
We present a new code assistance tool for integrated development environments. Our system accepts free-form queries allowing a mixture of English and Java as an input, and produces Java code fragments that take the query into account and respect syntax, types, and scoping rules of Java as well as statistical usage patterns. The returned results need not have the structure of any previously seen code fragment. As part of our system we have constructed a probabilistic context free grammar for Java constructs and library invocations, as well as an algorithm that uses a customized natural language processing tool chain to extract information from free-form text queries. The evaluation results show that our technique can tolerate much of the flexibility present in natural language, and can also be used to repair incorrect Java expressions that contain useful information about the developer's intent. Our demo video is available at http://youtu.be/tx4-XgAZkKU
引用
收藏
页码:689 / 692
页数:4
相关论文
共 24 条
[1]  
[Anonymous], 2007, P IEEEACM INT C AUTO, DOI DOI 10.1145/1321631.1321646
[2]  
[Anonymous], PLDI
[3]  
[Anonymous], OOPSLA
[4]  
[Anonymous], TECH REP
[5]  
[Anonymous], 2009, Assignment Problems, DOI DOI 10.1137/1.9780898717754
[6]  
[Anonymous], 1998, WordNet
[7]  
[Anonymous], EPFLREPORT201606 IC
[8]  
[Anonymous], 2006, PROC 5 INT C LANGUAG
[9]  
[Anonymous], HLT NAACL
[10]   Learning from Examples to Improve Code Completion Systems [J].
Bruch, Marcel ;
Monperrus, Martin ;
Mezini, Mira .
7TH JOINT MEETING OF THE EUROPEAN SOFTWARE ENGINEERING CONFERENCE AND THE ACM SIGSOFT SYMPOSIUM ON THE FOUNDATIONS OF SOFTWARE ENGINEERING, 2009, :213-222