2002 · 45 citations · 8 references
ComputingComputer ScienceCompilersProgramming LanguagesSyntaxAbstract Syntax TreesIntermediate RepresentationProgramming Language DesignReverse EngineeringSoftware ConstructionSyntax AnalysisAbstract Syntax Tree AnalysisAbstract Syntax Tree ConstructionAbstract Syntax Tree RefactoringAbstract Syntax Tree RepresentationAbstract Syntax Tree TransformationSoftware ReengineeringSoftware Reverse EngineeringSource Code Evolution
Developing a standard schema at the abstract syntax tree (AST) level for C/C++ to be used by reverse engineering and reengineering tools is a complex and difficult problem. In this paper we present a catalogue of issues that need to be considered in order to design a solution. Three categories of issues are discussed. Lexical structure is the first category and pertains to characteristics of the source code, such as spaces and comments. The second category, syntax, includes both the mundane and hard problems in the C++ programming language. The final category is semantics and covers aspects such as naming and reference resolution. Example solutions to these challenges are provided from the Datrix schema from Bell Canada and the Columbus schema from University of Szeged. The paper concludes with a discussion of lessons learnt and plans for future work on a C/C++AST standard schema.
8
GXL: toward a standard exchange format
Richard C. Holt, Andreas Winter, Andy Schürr · 2002 · 235 citations
Towards portable source code representations using XML
Evan Mamas, Kostas Kontogiannis · 2002 · 83 citations
Union schemas as a basis for a C++ extractor
Thomas Dean, Andrew J. Malton, Richard C. Holt · 2002 · 53 citations
Michael Karasick · 1998 · 35 citations · Full text