摘要
在程序设计训练推荐系统中或在代码搜索领域中都可能需要识别统计程序代码中的知识点。然而,手工识别代码知识点容易遗漏和识别错误,且不具有实时性。本文通过自动生成代码语法树并使用特征树匹配的方法,自动识别代码知识点。经实验表明,该方法能实时、快速、准确地统计代码中的知识点。
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