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

面向扩展文法语义分析器的自动生成
引用本文:王胜军,郭德贵,金成植. 面向扩展文法语义分析器的自动生成[J]. 吉林大学学报(理学版), 2005, 43(6): 751-756
作者姓名:王胜军  郭德贵  金成植
作者单位:吉林大学,计算机科学与技术学院,长春,130012;吉林大学,计算机科学与技术学院,长春,130012;吉林大学,计算机科学与技术学院,长春,130012
摘    要:在扩展巴克斯范式(EBNF)Earley分析的基础上, 提出一个语义分析器的自动生成算法, 给出了一个带有语义动作的扩展文法和一个输入, 即可生成其语义分析器. 通过执行语义动作, 就可以进行类型检查、 中间代码生成及优化等相关工作, 使得该算法成为完整的扩展文法分析技术, 并在实际运用中成为可能.

关 键 词:Earley分析  扩展文法  操作符状态机  语义动作  分析器
文章编号:1671-5489(2005)06-0751-06
收稿时间:2005-01-10
修稿时间:2005-01-10

Automatic Generation of Semantic Parser for Extended Grammar
WANG Sheng-jun,GUO De-gui,JIN Cheng-zhi. Automatic Generation of Semantic Parser for Extended Grammar[J]. Journal of Jilin University: Sci Ed, 2005, 43(6): 751-756
Authors:WANG Sheng-jun  GUO De-gui  JIN Cheng-zhi
Affiliation:(College of Computer Science and Technology, Jilin University, Changchun 130012, China)
Abstract:On the basis of Earley parsing extended grammars,this paper gives an automatic generation algorithm of a semantic parser for EBNF.Given an extended grammar with embedded semantic routines and an(input) string,the algorithm outputs the corresponding semantic parser.With the execution of these semantic routines,some work such as type checking,intermediate code generation and optimization can be done,which makes the parsing algorithm a full and significative parsing technique.
Keywords:Earley parsing  extended grammar  operator state machine  semantic routine  parser
本文献已被 CNKI 维普 万方数据 等数据库收录!
点击此处可从《吉林大学学报(理学版)》浏览原始摘要信息
点击此处可从《吉林大学学报(理学版)》下载全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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