期刊文献+

基于GLR的Quotation的自动生成技术

AUTOMATIC GENERATION TECHNOLOGY OF QUOTATION BASED GLR
在线阅读 下载PDF
导出
摘要 代码的自动生成技术的应用范围越来越广,尤其是具有很大灵活性的解决方案。AutoQuotation就是这样一种代码生成技术,所产生的Quotation代码具有独立于平台的词法分析及语法分析程序,但是它的算法是自顶向下的,在实际引用中具有很大的局限性。算法是程序的核心,采用的GLR(generalized LR)分析法,能够处理大部分的上下文无关文法,因而具有很高的实用性。描述一个自动生成系统,该系统能够根据文法自动生成Quotation代码,并自动进行Quotation注册。经测试系统能够处理回溯及左递归。 The application scope of code auto-generation technology is expanding,especially for those solutions with great flexibility.AutoQuotation is such a technology,the Quotation-code it generates has platform-independent lexer and parser programmer.But existing generating program of it has too big limitation in practical use,for it uses top-down parsing algorithm.The algorithm is the core of the program.The GLR analysis algorithm used by us in the paper is such an algorithm that it can deal with most of context-free syntax,therefore has quite good practicality.In the thesis,an auto-generated system is laid out,which can generate Quotation-code automatically according to the grammar.And the Quotation registration is also automated as well.Proved by test,the system can handle the case of backtrack and left-recursion.
作者 于尚超 李阳
出处 《计算机应用与软件》 CSCD 北大核心 2012年第11期215-216,224,共3页 Computer Applications and Software
关键词 GLR 引文 元编程 GLR(generalized LR) Quotation Meta-programming
  • 相关文献

参考文献10

  • 1Lawrence C Paulson. ML for the Working Programmer[M]. New York: University of Cambridge, 1996.
  • 2Milner R, Torte M. The Definition of Standard ML [ M ]. MIT Press, 1990.
  • 3Xavier Leroy. The Objective Carol system release 3. 10 [ M ]. Institut National de Recherche en Information et en Automatique,2007.
  • 4Daniel de Rauglaudre. Camlp5-Reference Manual[ M ]. Institut Nation- al de Recherche en Informatique et Automatique,2008.
  • 5Michel Mauny, Daniel de Rauglaudre. A complete and realistic implememtation of quotation for ML [ EB/OL ]. 1994. http://citeseerx. ist. psu. edu/viewdoc/download? doi = 10. 1. 1. 32. 3233 &rep = repl &type = pdf.
  • 6冯锋.基于Quotation的元编程工具的研究与实现[D].南京:解放军理工大学,2010.
  • 7Emmanuel Onzon. Dypgen User' s Manual [ EB/OL]. 2010. http :// dypgen. free. fr/.
  • 8Scott McPeak. Elkhound: A fast, efficient GLR parser generator[R]. University of California, Berkeley,2002.
  • 9Masaru Tomita. An efficient augmented-content-free parsing algorithm [ J ]. Computational Linguistics, 1987,13:31 - 46.
  • 10陈火旺,钱家骅,孙永强.程序设计语言编译原理[M].北京:国防工业出版社,2005.

共引文献1

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部