摘要
传统的编译器设计和实现的方法论限制了编程语言的开放性与可扩展性.一般在语言彻底定型后开始制作编译器,一旦语言扩展成新的语言,就需要重新开发一个编译器.可扩展语言编译器的设计过程中,考虑语言的进一步扩展,编译器开发也会为进一步扩展预留一定的接口.开发过程中,严格遵守软件开发的基本法则,应用软件工程中的增量模型,进行迭代开发,开发过程通过利用面向对象思想使程序具有高扩展性,从而大大降低重新开发编译器的风险.
The traditional methodology on the design and implementation of compiler imposes restriction on the openness and extensibility of programming language. Compiler is usually made after the complete fix of language, so if the language is extended into a new one, a new complier is needed to develop. In the designing process of the extensible language compiler, the language extensibility is taken into consideration, and some connectors are reserved for language extensibility. In development, the basic laws on software designing are strictly followed; the incremental model in software engineering is applied for iterative development, and the design is based on the thought of object - oriented, which can make the program get high extensibility, so as to reduce the risk of compiler redevelopment to the least point.
出处
《商丘师范学院学报》
CAS
2017年第6期53-56,共4页
Journal of Shangqiu Normal University
基金
商丘师范学院校级骨干教师项目(2016GGJS14)
关键词
编译器
开放性
可扩展性
渐增式
面向对象
compiler
openness
extensibility
incremental
object- oriented