STRUCTURED SEARCH IN SOURCE CODE
First Claim
1. A computer-implemented search system, comprising:
- a conversion component for representing a grammar of a program code as an abstraction; and
a search component for searching the abstraction based on a code-related query to obtain code results.
2 Assignments
0 Petitions
Accused Products
Abstract
Architecture allows a programmer to answer questions about the source code the programmer is authoring, questions that cannot be answered by other means. A searching mechanism is provided over a much more structured presentation of the source code. The architecture utilizes components that provide an intimate knowledge about the structure of the text, namely, the source code of some particular programming language. The search mechanism employs an abstract syntax tree representation of the code over which the search is conducted. The program source code (as edited by the programmer) is transformed into the abstract syntax tree to embody the structure of the program. If the syntax tree is provided in XML, for example, an XML search mechanism such as Xpath can be utilized to perform the actual searching. This tree is then queried, allowing richer searching criteria to be expressed (by virtue of the structured format of the tree).
-
Citations
20 Claims
-
1. A computer-implemented search system, comprising:
-
a conversion component for representing a grammar of a program code as an abstraction; and a search component for searching the abstraction based on a code-related query to obtain code results. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8)
-
-
9. A computer-implemented search system, comprising:
-
a conversion component for representing a syntax of a program code as an abstract syntax tree; and a search component for searching the abstract syntax tree based on a code-based query. - View Dependent Claims (10, 11, 12, 13)
-
-
14. A computer-implemented method of searching code, comprising:
-
representing a grammar of a program code as an abstraction; searching the abstraction based on a code-related query; and presenting code results. - View Dependent Claims (15, 16, 17, 18, 19, 20)
-
Specification