Comparing source code using code statement structures
Abstract
A computer system identifies a plurality of source code files to be compared, parses each source code file to identify a code statement structure present in the file, and compares the plurality of source code files using corresponding code statement structures.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 28 · Forward citations: 17.
Claims (2 — 1 Independent, 1 Dependent)
- Claim 1Independent Claim
A computer-implemented method, comprising: identifying a plurality of source code files to be compared; parsing, using a processor, each of the identified source code files to generate a common code statement structure for each respective source code file, wherein each common code statement structure is generated based on a mapping between a specific structure of a programming language used in a respective source code file and a common structure that is programming language independent; comparing, using the processor, the generated code statement structures to determine a difference between th
- Claim 2Depends on #1
The method of claim 1 , further comprising: receiving an input identif
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (15 of 17 total)
References Cited — Backward Prior Art (28)
Non-Patent Literature (5)
- Chilowicz et al., "Towards a multi-scale approach for source code approximate match report", 2010 ACM, IWSC'10, May 8, 2010, Cape Town, South Africa, pp. 89-60; .
- Chilowicz et al., "Towards a multi-scale approach for source code approximate match report", 2010 ACM, IWSC'10, May 8, 2010, Cape Town, South Africa, pp. 89-60; <http://dl.acm.org/citation.cfm?id=1808919>.
- Cui et al., "Code Comparison System Based on Abstract Syntax Tree", 2011 IEEE, pp. 668-673; .
- Cui et al., "Code Comparison System Based on Abstract Syntax Tree", 2011 IEEE, pp. 668-673; <http://ieeexplore.ieee.org/stamp/stamp.jsp?tp=&arnumber=5705174>.
- Warren Toomey, "Code Similarity Comparison of Multiple Source Trees", Apr. 23, 2008, Bond University, pp. 1-12; .