首页 | 本学科首页   官方微博 | 高级检索  
     

面向教学的类C编译器的设计与实现
引用本文:邹昌伟. 面向教学的类C编译器的设计与实现[J]. 福建师范大学学报(自然科学版), 2008, 24(6)
作者姓名:邹昌伟
作者单位:福建师范大学软件学院,福建,福州,350108
摘    要:设计并实现了一个面向教学的类C编译器,支持全局或局部变量的定义、函数参数传递和函数递归调用.为避免对实际硬件体系结构的依赖,采用了Java语言的设计思想,类C编译器实现了先编译后解释执行的设计方案,同时给出了比文法更为直观的类C语言的语法图.

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

Design and Implemention of a Teaching-oriented C-like Compiler
ZOU Chang-wei. Design and Implemention of a Teaching-oriented C-like Compiler[J]. Journal of Fujian Teachers University(Natural Science), 2008, 24(6)
Authors:ZOU Chang-wei
Abstract:Designing and implementing a teaching-oriented C-like compiler,which supports the definition of local and global variables,function parameters,as well as recursive 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.
Keywords:compiler  teaching-oriented  C-like language
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号