Title :
A Technique for Extracting Keyword Based Rules from a Set of Programs
Author :
Dubey, Alpana ; Aggarwal, Sanjeev K. ; Jalote, Pankaj
Author_Institution :
Dept. of Comput. Sci. & Eng., Indian Inst. of Technol., Kanpur, India
Abstract :
We present a novel technique for extracting a grammar from a set of programs. A grammar is important for generating software analysis and modification tools. Most legacy applications are written in languages which are minor variations (dialects) of the standard language. Normally, we have a grammar of the standard language, but the grammars of dialects are unavailable. In this paper we propose an iterative technique with backtracking for grammar extraction. Our technique extracts keyword based rules. This uses the CYK parsing algorithm and the LR error recovery technique for finding out new production rules. In each iteration a set of possible rules is built and one rule from them is selected. Finally, we get a grammar which parses all programs in the set.
Keywords :
grammars; knowledge based systems; program compilers; system recovery; CYK parsing algorithm; LR error recovery technique; backtracking; grammar; grammar extraction; keyword based rule extraction; legacy application; modification tools; software analysis; standard language; Application software; Computer languages; Computer science; Data mining; Iterative algorithms; Natural language processing; Natural languages; Production; Software engineering; Software tools;
Conference_Titel :
Software Maintenance and Reengineering, 2005. CSMR 2005. Ninth European Conference on
Print_ISBN :
0-7695-2304-8
DOI :
10.1109/CSMR.2005.5