DocumentCode :
2959264
Title :
Parsing C++ despite missing declarations
Author :
Knapen, Gregory ; Laguë, Bruno ; Dagenais, Michel ; Merlo, Ettore
Author_Institution :
Dept. of Quality Eng. & Res., Bell Canada, Montreal, Que., Canada
fYear :
1999
fDate :
1999
Firstpage :
114
Lastpage :
125
Abstract :
The paper addresses the problem of parsing a C++ software system that is known to compile correctly, but for which some header files are unavailable. A C++ program file typically depends on numerous included header files from the same system, a third party library, or the operating system standard libraries. It is not possible with a conventional parser to analyze C++ source code without obtaining the complete environment where the program is to be compiled. The paper studies the parsing ambiguities resulting from missing header files and proposes a special parser which uses additional rules and type inference in order to determine the missing declarations. This new parser has achieved 100% accuracy on a large system with numerous missing header files
Keywords :
C++ language; file organisation; program compilers; reverse engineering; type theory; C++ parsing; C++ program file; C++ software system; C++ source code; header files; large system; missing declarations; missing header files; operating system standard libraries; parsing ambiguities; special parser; third party library; type inference; Electrical capacitance tomography; Electronic switching systems; Fault location; Fault tolerance; Flow graphs; Operating systems; Read only memory; Software performance; Telecommunication services; Tree graphs;
fLanguage :
English
Publisher :
ieee
Conference_Titel :
Program Comprehension, 1999. Proceedings. Seventh International Workshop on
Conference_Location :
Pittsburgh, PA
ISSN :
1092-8138
Print_ISBN :
0-7695-0180-x
Type :
conf
DOI :
10.1109/WPC.1999.777750
Filename :
777750
Link To Document :
بازگشت