期刊文献+

基于语法结构的源代码搜索的研究 被引量:4

Research on the Source Code Search Engine Based on Syntax Structures
下载PDF
导出
摘要 现有的源代码搜索引擎大都是基于文本的搜索,没有利用代码在语法上的特性,因此在搜索准确性方面受到极大的限制。本文从语法结构角度,提出一种源代码的过滤方法,构造基于语法结构的代码过滤器,从而抽取对搜索有用的信息。通过该方法实现了一个基于语法结构的源代码搜索引擎。实验表明本文所建立的源代码搜索在搜索准确度、搜索结果展示的友好性方面都有改进。 The existing source code search engines have been mostly based on text searching, and the characteristics of the syntax are not used. So the search accuracy is restricted. This paper proposes a source filter pattern to construct the code filter based on syntax structures from the grammatical point of view. And we extract useful information which is needed in the search. By this method, we build a source code search engine based on syntax structures. The results show that our source code search engine has better accuracy and provides more useful information for locating the needed codes.
作者 黄丽韶
机构地区 湖南科技学院
出处 《电脑与电信》 2013年第5期30-33,39,共5页 Computer & Telecommunication
基金 湖南科技学院科学研究项目 项目编号:12XKYTB004
关键词 源代码搜索 LUCENE 抽象语法树 语法分析 代码爬虫 HERITRIX source code search Lucene abstract syntax tree syntax analysis code crawler Heritrix
  • 相关文献

参考文献14

  • 1JacobsonI.等.软件复用--结构、过程和组织.韩柯,译.机械工业出版社.2008. 被引量:1
  • 2D.SpineUis, C.Szyperski.Guest editors ' introduction : How is open source affecting software development. IEEE Software, 2004, 21 : 28-33. 被引量:1
  • 3Koders[OL]. http://www, koders, com. 被引量:1
  • 4Google Code Search[OL]. http ://www.google.com/codesearch. 被引量:1
  • 5Krugle[OL]. http://opensearch.krugle.org/project/project_list_init. 被引量:1
  • 6M. R. Madhuri, S. Thummalapenta, T. Xie. Improving soft- ware quality via code searching and mining. In Proceedings of the 2009 ICSE Workshop on Search-Driven Development-Users, Infrastructure, Tools and Evaluation. 2009. pp.' 33-36. 被引量:1
  • 7Sourcerer[OL]. http://sourcerer, ics. uci. edu/sourcerer/search/in- dex. jsp. 被引量:1
  • 8S. Bajracharya, T. Ngo, Baldi, and C. Lopes. Sourcerer:a porting structure-based search. In Object- oriented Programming, 2006. pp :681-682. E. Linstead, Y. Dou, P. Rigor, P. search engine for open source code sup- Proceedings of the 21st Conference on Systems, Languages, and Application,. 被引量:1
  • 9刘石,李合,王啸吟,张路,谢冰.基于语法与语义分析的代码搜索结果优化[J].计算机科学,2009,36(8):165-168. 被引量:6
  • 10R. Hoffmann, J. Fogarty, and D. S. Weld. Assieme: finding and leveraging implicit references in a web search interface for program- mers. In proceedings of the 20th annual ACM symposium on User interface software and technology, Newport, Rhode Island, USA, 2007. pp: 13-22. 被引量:1

二级参考文献14

  • 1Jacobson I,等.软件复用:结构、过程和组织[M].韩柯,译.北京:机械工业出版社. 被引量:1
  • 2Hoffmann R, Fogarty J. DS Weld Assieme : finding and leveraging implicit references in a web search interface for programmers[C]//Proceedings of UIST'2007. 被引量:1
  • 3Sim S E,Clarke C L A, Holt R C. Archetypal source code searches:A survey of software developers and maintainers[C]//IWPC. 1998. 被引量:1
  • 4Jiang Lingxiao, Misherghi G, Su Zhendong, et al. DECKARD : Scalable and Accurate Tree-based Detection of Code Clones[C] //ICSE 2007. 被引量:1
  • 5Codase[OL]. http://www. codase. com/. 被引量:1
  • 6CSourceSe-arch[OL]. http:///csourcesearch. net/. 被引量:1
  • 7Sourcerer: A Search Engine for Open Source Code[OL]. http://sourcerer. ics. uci. edu/. 被引量:1
  • 8Koders[OL]. http: //www. koders.com/. 被引量:1
  • 9Krugle[OL]. http: //www.krugle. com. 被引量:1
  • 10Google Code Search[OL]. http: //www. google. com/eodesearch. 被引量:1

共引文献5

同被引文献29

引证文献4

二级引证文献8

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部