2014 · 84 citations · 21 references
ComputingComputer ScienceComputational LinguisticsNatural Language ProcessingProgramming LanguagesLexical AnalysisParsingSyntactic AnalysisSyntactic ParsingSyntax AnalysisSyntax ParsingError ReportingLanguage ParsingLanguage Processing ModelsSoftware Development Methodology
A frustrating aspect of software development is that compiler error messages often fail to locate the actual cause of a syntax error. An errant semicolon or brace can result in many errors reported throughout the file. We seek to find the actual source of these syntax errors by relying on the consistency of software: valid source code is usually repetitive and unsurprising. We exploit this consistency by constructing a simple N-gram language model of lexed source code tokens. We implemented an automatic Java syntax-error locator using the corpus of the project itself and evaluated its performance on mutated source code from several projects. Our tool, trained on the past versions of a project, can effectively augment the syntax error locations produced by the native compiler. Thus we provide a methodology and tool that exploits the naturalness of software source code to detect syntax errors alongside the parser.
21
The TREC-8 Question Answering Track Report
Ellen M. Voorhees · 1999 · 859 citations
Automatically finding patches using genetic programming
Westley Weimer, ThanhVu Nguyen, Claire Le Goues et al. · 2009 · 772 citations
On the naturalness of software
Abram Hindle, Earl T. Barr, Zhendong Su et al. · 2012 · 569 citations
Methods and tools for exploring novice compilation behaviour
Matthew C. Jadud · 2006 · 292 citations