Patents
US 7,624,385 B2#1478215 Most CitedExpiredUnited States (USPTO)Utility

Method for handling preprocessing in source code transformation

39Forward Citations (#1478215 Global)
2.3/yrCitation Velocity (#1573836 Global)
4.23Citation PageRank (#4345123 Global)
14Prior Art Cited
2Claims (1 Indep. · 1 Dep.)
0Drawings / Sheets

Abstract

A method for handling preprocessing in source code transformation creates a semantically correct view of a program being transformed. This semantically correct view is called a transformed form and it is capable of being parsed with a regular grammar. The original use of preprocessing macros is determined, including their relationship to the transformed form and the preprocessing is reconstructed in the modified source code.

Interactive Citation Constellation Global Citation Ranking

Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 14 · Forward citations: 39.

Claims (2 — 1 Independent, 1 Dependent)

  1. Claim 1Independent Claim

    A method for handling preprocessing in source code transformation, comprising: deconditioning an original source code to produce a parsable source code, the original source code including original preprocessing directives; parsing the parsable source code to produce an abstract syntax tree (AST) form, the AST form comprising annotations adapted to facilitate preservation of a style of the original source code; performing an AST-based transformation on the AST form to produce a modified AST form; and reconditioning the modified AST form to produce a modified source code conforming to the origin

  2. Claim 2Depends on #1

    The method of claim 1 , wherein the produced modified source code is semantically correct.

Technical Overview & Description

Full multi-page specification text is archived at the issuing office. Read complete official specification ↗

Non-Patent Literature (5)

  • A. Garrido and R. Johnson, "Handling Preprocessor Macros in Refactoring," ACM SIGPLAN Conference on Programming Language Design and Implementation, 2004.
  • A. Garrido and R. Johnson, "Refactoring C With Conditional Compilation," 18th IEEE International Conference on Automated Software Engineering (ASE 2003), Montreal, Canada 2003, pp. 323-326.
  • A. Malton et al., "Processing Software Source Text in Automated Design Recovery and Transformation," Proc. IWPC 2001, IEEE 9th International Workshop on Program Comprehension, Toronto, May 2001, pp. 127-134.
  • Burson et al., "A Program Transformation Approach to Automated Software Re-Engineering," 1990, IEEE pp. 314-322.
  • Garrido et al., Challenges of Refactoring C Programs, 2003, ACM.