Method and System for presenting and analyzing software source code through intermediate representation
First Claim
1. A method for producing a source code intermediate representation of source code listings of a source code package, the source code intermediate representation comprising a plurality of intermediate representation data sets, the method comprising:
- analyzing a first source code listing of the source code listings using a first source code processor for a first syntax;
gathering source code information for composing an intermediate representation data set for a first construct recognized by said first source code processor, wherein the intermediate representation data set captures data fields comprising a first location of the first construct, a processor identification of said first source code processor, a category for the intermediate representation data set, and an attribute describing the first construct; and
saving the intermediate representation data set into a data storage using a predetermined data format.
0 Assignments
0 Petitions
Accused Products
Abstract
The present invention provides a method and system for producing intermediate representation of source code listings with possibly mixed syntaxes to assist software development applications in presenting and analyzing the source code listings through reading the intermediate representation. A source code processor calls Application Programming Interfaces (APIs) to preserve source code information, which includes intermediate representation data sets and is preferably stored in a file-based repository. The source code processor is of a compiler, a preprocessor, a parser, or a comment document processor. The data sets capture lexical, syntax and semantic information of source code construct elements, and comprise of location, processor identification, construct category, and attribute data. A software development environment through a source code search engine is able to present source code construct elements, outlines, and symbol references from software packages over a plurality of distributed servers in a network such as the Internet.
-
Citations
25 Claims
-
1. A method for producing a source code intermediate representation of source code listings of a source code package, the source code intermediate representation comprising a plurality of intermediate representation data sets, the method comprising:
-
analyzing a first source code listing of the source code listings using a first source code processor for a first syntax; gathering source code information for composing an intermediate representation data set for a first construct recognized by said first source code processor, wherein the intermediate representation data set captures data fields comprising a first location of the first construct, a processor identification of said first source code processor, a category for the intermediate representation data set, and an attribute describing the first construct; and saving the intermediate representation data set into a data storage using a predetermined data format. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12)
-
-
13. A method for maintaining a source code package through reading a source code intermediate representation of the source code package, wherein the source code intermediate representation is stored in a first data storage using a predetermined data format and comprises a plurality of intermediate representation data sets for a source code listing, each of the intermediate representation data sets capturing data fields comprising a location of a construct, a processor identification of a source code processor for a syntax, a category for an intermediate representation data set, and an attribute describing the construct, the method comprising:
-
loading the intermediate representation data sets from the first data storage into a computer system memory; and obtaining a source code syntax information of the source code listing from the intermediate representation data sets. - View Dependent Claims (14, 15)
-
-
16. A method for presenting a source code listing of a source code package through a computer user interface application, the method comprising:
-
downloading a source code syntax information of the source code listing from a server hosting the source code package; deriving a first display element for the source code listing using the source code syntax information; and presenting said first display element through said computer user interface application. - View Dependent Claims (17, 18, 19, 20, 21, 22)
-
-
23. A system for maintaining a source code package through reading a source code intermediate representation of the source code package, wherein the source code intermediate representation is stored in a data storage using a predetermined data format and comprises a plurality of intermediate representation data sets for a source code listing, each of the intermediate representation data sets capturing data fields comprising a location of a construct, a processor identification of a source code processor for a syntax, a category for an intermediate representation data set, and an attribute describing the construct, the system comprising:
-
means for loading the intermediate representation data sets from the data storage into a computer system memory; and means for obtaining a source code syntax information of the source code listing from the intermediate representation data sets. - View Dependent Claims (24, 25)
-
Specification