Patents
US 8,099,721 B2#13971571 Most CitedActiveUnited States (USPTO)Utility

Parsing of declarations in all branches of preprocessor conditionals

8Forward Citations (#13971571 Global)
0.6/yrCitation Velocity (#13961368 Global)
1.40Citation PageRank (#25477771 Global)
22Prior Art Cited
1Claims (1 Indep. · 0 Dep.)
0Drawings / Sheets

Abstract

Declarations from an input source code or tokenized source code are serialized into a stream of tokens produced by following each branch of a preprocessor conditional directive statement that interrupts a declaration. Tokens are labeled with a parsing path indicator corresponding to a parsing path induced by branches of a preprocessor conditional directive. The declarations that are formed along the different parsing paths are serialized by fetching the tokens that belong to the first parsing path in a first pass, and passing the tokens on to a next phase of a compiler. The pointer that marks the next token is repositioned to return to the start of the declaration. The declaration may be serialized again through the second parsing path in a second pass. The operation may be repeated until each of the parsing paths induced by the presence of branches of the preprocessor conditional directives in the source code is exhausted.

Interactive Citation Constellation Global Citation Ranking

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

Claims (1 — 1 Independent, 0 Dependent)

  1. Claim 1Independent Claim

    A system that parses a plurality of preprocessor conditional branches of a preprocessor conditional directive statement comprising: a computer comprising a processor and a memory, the computer further comprising: a declaration serializer that: obtains tokenized input; in response to determining that the tokenized input represents a declaration, wherein the declaration is interrupted by a preprocessor conditional directive of a preprocessor conditional directive statement, wherein the preprocessor conditional directive statement comprises a plurality of mutually exclusive branches comprising at

Technical Overview & Description

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

References Cited — Backward Prior Art (22)

PatentTitleYearCitations
US 5,148,532 APipeline processor with prefetch circuit199219
US 5,276,880 AMethod for parsing and representing multi-versioned computer programs, for simultaneous and synchronous processing of the plural parses199459
US 5,452,457 AProgram construct and methods/systems for optimizing assembled code for execution1995100
US 5,689,703 AMethod and system for referring to and binding to objects using identifier objects199780
US 5,724,590 ATechnique for executing translated software1998101
US 5,768,564 AMethod and apparatus for translating source code from one high-level computer language to another1998138
US 5,812,853 AMethod and apparatus for parsing source code using prefix analysis199834
US 6,029,002 AMethod and apparatus for analyzing computer code using weakest precondition2000194
US 6,031,993 AMethod and apparatus for translating source code from one high-level computer language to another2000169
US 6,128,774 ASafe to execute verification of software2000128
US 6,178,548 B1Binary class library with debugging support200118
US 6,182,281 B1Incremental compilation of C++ programs200183
US 6,226,786 B1Minimizing debug information for global types in compiled languages200125
US 6,317,871 B1System for ensuring the accuracy of file structures in a source-to-source computer program translator200146
US 2003163801 A1Computer-based method for defining a patch in computer source code including conditional compilation cell groups—81
US 2004268244 A1Scalable storage and processing of hierarchical documents—61
US 6,954,925 B1Method of parsing commands using linear tree representation200521
US 2006225052 A1Method for handling preprocessing in source code transformation—34
US 2007006192 A1Intermediate representation for multiple exception handling models—10
US 2007022414 A1Direct execution virtual machine—42
US 7,383,529 B2Method and apparatus for designing circuits using high-level synthesis200822
US 7,818,729 B1Automated safe secure techniques for eliminating undefined behavior in computer software2010107

Non-Patent Literature (5)

  • "ctags(1)-Linux Man Page", http://linux.die.net/man/1/ctags, dated Apr. 24, 2008.
  • Garrido, et al., "Analyzing Multiple Configurations of a C Program", Proceedings of the 21st IEEE International Conference on Software Maintenance, Date: 2005, pp. 379-388, Publisher: IEEE Computer Society Washington, DC, USA.
  • Garrido, et al., "Challenges of Refactoring C Programs", Proceedings of the International Workshop on Principles of Software Evolution, Date: 2002, pp. 6-14, Publisher: ACM New York, NY, USA.
  • Title: Context-Free-Grammar based Token Tagger in Reconfigurable Devices,author: Young H. Cho et al, source: IEEE, dated: Apr. 24, 2006.
  • Title: Syntax-directed construction of Value Dependence Graphs author: Byers, D. et al., source: IEEE, dated Nov. 9, 2001.