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

抽象语法树在属性计算中的应用
引用本文:张玉州,王一宾,江克勤.抽象语法树在属性计算中的应用[J].安庆师范学院学报(自然科学版),2008,14(4).
作者姓名:张玉州  王一宾  江克勤
作者单位:安庆师范学院计算机与信息学院,安徽安庆,246133;安庆师范学院计算机与信息学院,安徽安庆,246133;安庆师范学院计算机与信息学院,安徽安庆,246133
基金项目:安徽省教育厅自然科学基金  
摘    要:属性是语义分析中非常重要的一个概念,因为它使得语法符号和结构有了意义,而这种意义最终将被计算机接收。属性计算是一个复杂的过程,原因在于属性间的依赖关系的紧密性以及存储结构的复杂性。抽象语法树是语法树的简化,是属性计算中很有效的一种存储结构。本文首先阐述抽象语法树的意义、结构及构造,然后对属性及相关问题作了介绍,最后根据属性文法的种类,给出相应语法结构的属性计算算法。

关 键 词:属性  抽象语法树  结点  综合属性  继承属性

Application of Abstract Syntax Tree in Computing Attribute
ZHANG Yu-zhou,WANG Yi-bin,JIANG Ke-qin.Application of Abstract Syntax Tree in Computing Attribute[J].Journal of Anqing Teachers College(Natural Science Edition),2008,14(4).
Authors:ZHANG Yu-zhou  WANG Yi-bin  JIANG Ke-qin
Institution:ZHANG Yu-zhou,WANG Yi-bin,JIANG Ke-qin(Computer Information College of Anqing Teachers College,Anqing 246133,China)
Abstract:Attribute is a very important conception during semantic analysis because it makes symbol and struct of grammar have meaning,which is accepted by computer finally.Computing attribute is a complex procedure because of inseparability of dependency-relationship among attributes and complexity of storing struct.Abstract syntax tree is a simplification of syntax tree,and it is a very effective storing struct during computing attribute.The article first expounds the meaning of abstract syntax tree,then introduces...
Keywords:attribute  abstract syntax tree  node  synthesized attribute  inherited attribute  
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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