J4

• 计算机科学 • 上一篇    下一篇

通用可扩展编译器前端生成器的设计与实现

金龙飞, 刘磊   

  1. 吉林大学 计算机科学与技术学院, 长春 130012
  • 收稿日期:2004-09-16 修回日期:1900-01-01 出版日期:2005-05-26 发布日期:2005-05-26
  • 通讯作者: 刘磊

Design and Implementation of a Universaland Extensible Compiler Front-end Generator

JIN Long-fei, LIU Lei   

  1. College of Computer Science and Technology, Jilin University, Changchun 130012, China
  • Received:2004-09-16 Revised:1900-01-01 Online:2005-05-26 Published:2005-05-26
  • Contact: LIU Lei

摘要: 传统的编译器前端生成器由于结构和算法等原因, 通用 性和可扩展性较差. 为解决这一问题, 提出并实现一种通用可扩展编译器前端生成器〖CD2 〗JLUCC. JLUCC使用面向对象、 反射和设计模式等技术, 具有通用、 可扩展和易于使用等 特点. 通过使用JLUCC开发C/ATLAS语言编译器的实践, 验证了JLUCC的有效性.

关键词: 编译器前端, 文法, 编译器前端生成器, 自动生成

Abstract: Traditional compiler front-end generators are not universal and extensible for the reason of their structures and algorithms. In order to solve this problem, a universal and extensible compiler front-end generator --JLUCC is provided and has been implemented. The implementation of JLUCC involves object-orientation, reflection and design patterns technologies. JLUCC is universal, extensible and easy-used. At last, JLUCC was validated in the practical procedure of developing a C/ATLAS compiler.

Key words: compiler front-end, grammar, compiler front-end gene rator, automatic generation

中图分类号: 

  • TP301