面向教学的类C编译器的设计与实现  被引量:2

Design and Implemention of a Teaching-oriented C-like Compiler

在线阅读下载全文

作  者:邹昌伟[1] 

机构地区:[1]福建师范大学软件学院,福建福州350108

出  处:《福建师范大学学报(自然科学版)》2008年第6期29-33,共5页Journal of Fujian Normal University:Natural Science Edition

摘  要:设计并实现了一个面向教学的类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.

关 键 词:编译器 面向教学 类C语言 

分 类 号:TP314[自动化与计算机技术—计算机软件与理论]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象