Integrating preprocessor behavior into parsing
Abstract
A method, computer program product, and system is described. Software code text associated with a software code editor and including one or more preprocessor statements is identified. The software code text is translated into a preprocessor output using one or more preprocessors associated with the software code text. One or more transformations of the one or more preprocessor statements is identified based upon comparing the preprocessor output with the software code text. One or more locations in the software code text associated with the one or more transformations is identified based upon comparing the preprocessor output with the software code text. The software code text is parsed, based upon lexing the software code text to generate an integrated token stream model including a first token stream representing the software code text and one or more other token streams representing the one or more transformations of the software code text.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 16 · Forward citations: 2.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A computer-implemented method comprising: identifying, by one or more computing devices, software code text, wherein the software code text includes one or more preprocessor statements; translating, by the one or more computing devices, the software code text including the one or more preprocessor statements into a preprocessor output using, at least in part, one or more preprocessors associated with the software code text, the preprocessor output including one or more transformations of the one or more preprocessor statements into a set of expressions that represent intended functionality of
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (2 of 2 total)
| Patent | Title | Year | Citations |
|---|---|---|---|
| US 9,928,156 B2 | Missing include suggestions for external files | 2018 | 1 |
| US 2015304386 A1 | Systems and methods for context management | — | 7 |
References Cited — Backward Prior Art (16)
Non-Patent Literature (1)
- Liebig et al., "Analyzing the discipline of Preprocessor Annotations in 30 Million Lines of C Code," AOSD 2011, Mar. 21-25, 2011; pp. 191-202.