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

属性文法及其制导翻译
引用本文:秦振松. 属性文法及其制导翻译[J]. 东南大学学报(自然科学版), 1996, 26(5): 11-16
作者姓名:秦振松
作者单位:东南大学计算机科学与工程系
摘    要:叙述了属性文法的简明定义及其在语法分析,语义分析和翻译过程中的作用,通过实例说明如何将预测文法改造成L属性文法,怎样构造相关的替换表,具体翻译时,将分析线与属性语义栈熔为一体,称作下推栈,通过总控程序对栈中符号的处理而实现对程序语言的翻译。

关 键 词:程序语言 语法制导翻译 属性文法 编译程序

The Attribute Grammar and Syntax Directed Translation
Qin Zhensong. The Attribute Grammar and Syntax Directed Translation[J]. Journal of Southeast University(Natural Science Edition), 1996, 26(5): 11-16
Authors:Qin Zhensong
Abstract:This paper declswith the concise definition of the attributed grammar and its effect on the syntactic analysis, the semantic analysis and translating process. examples are used to explain how to transform predictive analysis grammar intoL attributed grammar and how to constructcorrelative alternative table. During concrete translating, we will melt the analytic stack and the attributed semantic stack into the push down stack. By the main control program symbols in the stack are processed to realize the translation of the program language.
Keywords:programming language  syntax directed translation  semantic subroutine / attributed grammar  attributed rule  synthesized attribute  inherited attribute  
本文献已被 CNKI 维普 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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