Publication | Closed Access
Parsing C++ despite missing declarations
26
Citations
6
References
2003
Year
Unknown Venue
EngineeringCompiler TechnologyVerificationSoftware EngineeringSoftware AnalysisFormal VerificationSyntaxData ScienceC++ Source CodeParsing AmbiguitiesGrammarProgramming Language TheoryCompiler SupportAbstract InterpretationComputer EngineeringComputer ScienceOptimizing CompilerStatic Program AnalysisProgram AnalysisFormal MethodsFormal SyntaxC++ Software System
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.
| Year | Citations | |
|---|---|---|
Page 1
Page 1