首页> 中文期刊> 《上海师范大学学报(自然科学版) 》 >简化GNU编译器套件抽象语法树的算法研究

简化GNU编译器套件抽象语法树的算法研究

             

摘要

提出了一种消除抽象语法树文本中冗余的方法, 借助Knuth-Morris-Pratt (KMP) 算法, 设计核心算法, 对抽象语法树进行简化, 并选出几个经典的代码片段进行实验, 对算法的性能做了相应验证.实验结果表明, 算法在消除冗余方面的简化率达到90%以上.%We propose a method to eliminate the redundancy in the text of abstract syntax tree. By using the Knuth-Morris-Pratt (KMP) algorithm, we design the core algorithm, simplify the abstract syntax tree, and select several classic code fragments to be tested. The experimental results show that the reduction rate of the algorithm is more than 90%.

著录项

相似文献

  • 中文文献
  • 外文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号