期刊文献+

基于语法特征树的代码知识点自动识别 被引量:1

Automatic Identification of Knowledge from Program Code based on Syntax Feature Tree
在线阅读 下载PDF
导出
摘要 在程序设计训练推荐系统中或在代码搜索领域中都可能需要识别统计程序代码中的知识点。然而,手工识别代码知识点容易遗漏和识别错误,且不具有实时性。本文通过自动生成代码语法树并使用特征树匹配的方法,自动识别代码知识点。经实验表明,该方法能实时、快速、准确地统计代码中的知识点。 Whether in the program design training recommend system or in the code searching domain may need to identify or get the statistic of knowledge in the code. However, manual identification is easy to miss and get errors, and isn't real-time. This paper will use the method that generate the syntax tree and use feature tree to match the knowledge in the syntax tree to identify code knowledge automatically. The experimental results show that the system can real-time, effectively and accurately gathers the statistic of knowledge in program code.
出处 《微计算机信息》 2010年第33期170-172,共3页 Control & Automation
关键词 语法树 特征树匹配 自动识别 Syntax tree Feature tree match Automatic identification
  • 相关文献

参考文献6

  • 1蒋立源,康慕宁.编译原理(第2版),西北工业大学出版社,2004.
  • 2D Lea, User's Guide to the GNU C ++ Library, Free Software Foundation, 1992.
  • 3D Lea,libg++, the GNU C++ library,Proceedings of the USENIX C++ Conference, 1988.
  • 4JavaCC FAQ,http://www.engr.mun.ca/-theo/JavaCC-FAQ/.
  • 5张敏,金茂忠,李虎,许福.一个高效的语法分析器生成工具[J].微计算机信息,2005,21(08X):122-124. 被引量:4
  • 6C++文法,http://www.csci.csusb.edu/dick/c++std/cd2/gram.html.

二级参考文献8

  • 1Johnson S. C.. YACC-yet another compiler-compiler. AT&T Bell Laboratories, Computing Science Technical Report: 32, 1975.
  • 2Donnelly C., Stallmen R.. Bison: the YACC-compatible parser generator.Free Software Foundation: 1992.
  • 3DeRemer F. L., Pennello T. J.. Efficient computation of LALR(1) look-ahead sets. ACM Transactions on Programming Languages and Systems,1982, 4 (4): 615-649.
  • 4Sippu S., Soisalen-Soininen E.. Parsing theory. Berlin: Springer, 1990.
  • 5Aho A.V., Sethi R., Ullman J.D.. Compilers: principles, techniques, and tools. Boston : Addison Wesley, 1986.
  • 6Kenneth C. L.. Compiler construction: principles and practice. Boston:PWS Publishing Company, 1997.
  • 7Philippe Charles. A Practical method for Constructing Efficient LALR(k)Parsers with Automatic Error Recovery[The degree of Doctor of Philosophy]. the Computer Science Department of New York University,New York, 1991.
  • 8Ford W., Topp W.Data structures with C++ using STL. Second edition.New Jersey: Prentice Hall, 2002.

共引文献3

同被引文献2

引证文献1

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

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