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

用抽象语法链表示C程序中的表达式
引用本文:彭旭东,王成霞,樊丽珍,郭宝红,李婧.用抽象语法链表示C程序中的表达式[J].天津理工大学学报,2011,27(4):59-63.
作者姓名:彭旭东  王成霞  樊丽珍  郭宝红  李婧
作者单位:天津理工大学计算机与通信工程学院,天津,300384
基金项目:天津理工大学教学基金(YB08-17)
摘    要:因为缺少解释器,对程序进行自动分析和测试领域中有很多问题难以解决.设计解释器的一个核心问题是如何表示表达式,使其既便于人工检查也便于计算机自动生成和解释执行表达式.传统的表示方式主要针对编译器进行设计,不适合解释器.为此,综合运算符的特性和常见表示方法的优缺点,提出用抽象语法链EOE*表示表达式,给出了相应的提取和解释执行算法,并成功应用于本项目组开发的解释器中.

关 键 词:解释器  抽象语法链  表达式的表示  表达式的解释执行

Representing the express in the C program with abstract syntax link list
PENG Xu-dong,WANG Cheng-xia,FAN Li-zhen,GUO Bao-hong,LI Jing.Representing the express in the C program with abstract syntax link list[J].Journal of Tianjin University of Technology,2011,27(4):59-63.
Authors:PENG Xu-dong  WANG Cheng-xia  FAN Li-zhen  GUO Bao-hong  LI Jing
Institution:PENG Xu-dong,WANG Cheng-xia,FAN Li-zhen,GUO Bao-hong,LI Jing(School of Computer and Communications Engineering,Tianjin University of Technology,Tianjin 300384,China)
Abstract:Because of lacking interpreter,many problems are difficult to be solved in the fields of analyzing and testing program automatically.As designing interpreter,one of the core problems is representing and interpreting the express in an adequate manner.With it,we hope that the programs could be checked easily by people or by computer,and the relative algorithms of being created and interpreted could be simple.But most of the classical represent methods of intermediate code are more suitable for compiler and no...
Keywords:interpreter  abstract syntax link list  represent the express  interpret the express  
本文献已被 CNKI 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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