Patents
US 8,312,437 B2#27317343 Most CitedActiveUnited States (USPTO)Utility

Structured search in source code

4Forward Citations (#27317343 Global)
0.3/yrCitation Velocity (#26540587 Global)
1.04Citation PageRank (#39484228 Global)
25Prior Art Cited
3Claims (2 Indep. · 1 Dep.)
0Drawings / Sheets

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).

Interactive Citation Constellation Global Citation Ranking

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

Claims (3 — 2 Independent, 1 Dependent)

  1. Claim 1Independent Claim

    A computer-implemented search system, the search system comprising: a processor; and a memory in communication with the processor, the memory comprising computer-executable instructions that, when executed by the processor, cause the processor to represent, utilizing a conversion component, a grammar of a program code as an abstract syntax tree; and search, utilizing a search component, the abstract syntax tree based on a code-related query to obtain code results, the code-related query comprising an expression in a form of a grammatical unit, the processing of which by the search component in

  2. Claim 2Depends on #1

    The system of claim 1 , wherein the abstract syntax tree is represented in extensible markup language (XML).

  3. Claim 3Independent Claim

    The system of claim

Technical Overview & Description

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

References Cited — Backward Prior Art (25)

PatentTitleYearCitations
US 5,671,416 AApparatus and a method for searching and modifying source code of a computer program199792
US 6,061,513 AAutomated methods for constructing language specific systems for reverse engineering source code into abstract syntax trees with attributes in a form that can more easily be displayed, understood and/or modified200065
US 6,256,618 B1Computer architecture using self-manipulating trees200136
US 6,314,562 B1Method and system for anticipatory optimization of computer programs200192
US 6,516,461 B1Source code translating method, recording medium containing source code translator program, and source code translator device200355
US 2003172059 A1Database system providing methodology for eager and opportunistic property enforcement—108
US 2003226132 A1Method and system for transforming legacy software applications into modern object-oriented systems—61
US 6,801,905 B2Database system providing methodology for property enforcement200486
US 2005010896 A1Universal format transformation between relational database management systems and extensible markup language using XML relational transformation—94
US 2005166193 A1Methods, systems, and computer program products for identifying computer program source code constructs—137
US 2005273772 A1Method and apparatus of streaming data transformation using code generator and translator—321
US 2006212859 A1System and method for generating XML-based language parser and writer—36
US 2006225052 A1Method for handling preprocessing in source code transformation—34
US 2006230378 A1Technique for constructing syntax-directed search and modifications in program transformation systems—24
US 2007038985 A1Syntactic program language translation—42
US 7,184,998 B2System and methodology for generating bushy trees using a left-deep tree join enumeration algorithm200740
US 7,213,024 B2Method and apparatus for accessing information within an electronic system20075
US 2007106658 A1System and method for information retrieval from object collections with complex interrelationships—107
US 2007294678 A1Partial evaluation of XML queries for program analysis—10
US 2008196016 A1Processing of Expressions—23
US 2008216060 A1System for translating diverse programming languages—124
US 2008306986 A1Migration of Legacy Applications—84
US 7,467,375 B2Method and system for transforming legacy software applications into modern object-oriented systems200841
US 7,720,869 B2Hierarchical structured abstract file system20106
US 7,975,233 B2Automatic conversion of a textual language into a graphical program representation201129

Non-Patent Literature (5)

  • "Search Implementation", retrieved at <<http://jackrabbit.apache.org/search-implementation.html>>, Oct. 3, 2008, p. 1-2.
  • "Search Implementation", retrieved at >, Oct. 3, 2008, p. 1-2.
  • "XML and Scheme ", retrieved at <<http://okmij.org/ftp/Scheme/SXML-short-paper.html>>, Mar. 4, 2001, p. 1-6.
  • "XML and Scheme ", retrieved at >, Mar. 4, 2001, p. 1-6.
  • Hughes, Kevin, "Projects:Source Code Search with Syntax-Based Heuristics", retrieved at <<http://cs343-spr0607.stanford.edu/index.php/Projects:Source-Code-Search-with-Syntax-Based-Heuristics>>, Jun. 13, 2007, p. 1-8.