摘要
设计并实现了一个面向教学的类C编译器,支持全局或局部变量的定义、函数参数传递和函数递归调用.为避免对实际硬件体系结构的依赖,采用了Java语言的设计思想,类C编译器实现了先编译后解释执行的设计方案,同时给出了比文法更为直观的类C语言的语法图.
Designing and implementing a teaching-oriented C-like compiler, which supports the definition of local and global variables, function parameters, as well as reeursive call of functions. To avoid the dependency of hardware architecture, using the design thinking of Java language, which compiles programs into mediate language and then interprets it. C-like language's grammar diagram is shown, which is much more intuitive than pure grammar.
出处
《福建师范大学学报(自然科学版)》
CAS
CSCD
北大核心
2008年第6期29-33,共5页
Journal of Fujian Normal University:Natural Science Edition
关键词
编译器
面向教学
类C语言
compiler
teaching-oriented
C-like language