Loading...
Please wait, while we are loading the content...
Similar Documents
Synthesizing Java Expressions from Free-Form Queries
| Content Provider | CiteSeerX |
|---|---|
| Author | Gvero, Tihomir Kuncak, Viktor |
| Abstract | We present a new code assistance tool for integrated devel-opment environments. Our system accepts as input free-form queries containing a mixture of English and Java, and pro-duces Java code expressions that take the query into account and respect syntax, types, and scoping rules of Java, as well as statistical usage patterns. In contrast to solutions based on code search, the results returned by our tool need not directly correspond to any previously seen code fragment. As part of our system we have constructed a probabilistic context free grammar for Java constructs and library invoca-tions, as well as an algorithm that uses a customized natural language processing tool chain to extract information from free-form text queries. We present the results on a number of examples showing that our technique (1) often produces the expected code fragments, (2) tolerates much of the flex-ibility of natural language, and (3) can repair incorrect Java expressions that use, for example, the wrong syntax or miss-ing arguments. |
| File Format | |
| Access Restriction | Open |
| Content Type | Text |