期刊文献+

基于上下文无关文法的可逆变换模型

Reversible Transformation Model Based on Context-Free Grammars
下载PDF
导出
摘要 可逆变换和双向变换等数据转换问题一直是近年来的研究热点,研究人员针对该问题提出了大量相关的语言和模型。但是,这些实现往往建立在一种新的计算模型上,从而导致需要花费较大的学习成本去了解计算模型。另一方面,作为语法解析的基本工具,上下文无关文法对于绝大多数程序员来说都是不陌生的。提出了一种基于上下文无关文法的计算模型,用来构造字符串上的可逆变换,并对其性质和表达能力进行了探讨。采用Scheme语言实现了该计算模型,并通过在MIPS指令集上进行汇编和反汇编开发验证了该模型。验证结果表明,该模型具有较强的表达能力,在添加小型的公共数值变换模块后,可以完整地实现MIPS指令集上的汇编和反汇编。 Data transformation problems like reversible transformation and bidirectional transformation have been a research focus in recent years, a large number of different transformation languages and models have been proposed.But they are often based on a new computation model, which leads a non-trivial learning cost to understand the new computation model. On the other hand, as an essential tool in language parsing, context-free grammar is familiar to most programmers. This paper proposes a computation model to construct reversible transformation for string data based on context- free grammars, and discusses its properties and computability. This paper also implements the model in Scheme, and evaluates the model by developing a pair of assembler and disassembler of MIPS instruction set. The evaluation result shows that the model is expressive and can implement the assembler and disassembler of MIPS instruction set with the help of a small data transformation module.
出处 《计算机科学与探索》 CSCD 北大核心 2015年第7期793-802,共10页 Journal of Frontiers of Computer Science and Technology
基金 国家自然科学基金 国家重点基础研究发展计划(973计划) 国家高技术研究发展计划(863计划)~~
关键词 可逆变换 上下文无关文法 字符串数据 reversible transformation context-free grammar string data
  • 相关文献

参考文献16

  • 1Yokoyama T, Axelsen H B, G1/ick R. Towards a reversible functional language[C]//LNCS 7165: Proceedings of the 3rd International Conference on Reversible Computation, Gent, Belgium, Jul 4-5, 2011. Berlin, Heidelberg: Springer, 2011: 14-29.
  • 2Voigtlander J. Bidirectionalization for free! (Pearl)[C]//Pro- ceedings of the 36th Annual ACM SIGPLAN-SIGACT Sym- posium on Principles of Programming Languages, Savannah, USA, Jan 21-23, 2009. New York, NY, USA: ACM, 2009: 165-176.
  • 3Bohannon A, Foster J N, Pierce B C, et al. Boomerang: resourceful lenses for string data[J]. ACM SIGPLAN Notices, 2008, 43(1): 407-419.
  • 4Diskin Z, Xiong Yingfei, Czarnecki K, et al. From state-to delta-based bidirectional model transformations: the sym- metric case[C]//LNCS 6981: Proceedings of the 14th Inter- national Conference on Model Driven Engineering Languages and Systems, Wellington, New Zealand, Oct 16-21, 2011. Berlin, Heidelberg: Springer, 2011: 304-318.
  • 5Xiong Yingfei, Song Hui, Hu Zhenjiang, et al. Synchronizing concurrent model updates based on bidirectional transforma-tion[J]. Software and System Modeling, 2013, 12(1): 89-104.
  • 6Xiong Yingfei, Liu Dongxi, Hu Zhenjiang, et al. Towards automatic model synchronization from model transforma- tions[C]//Proceedings of the 22nd IEEE/ACM International Conference on Automated Software Engineering, Atlanta, USA, Nov 5-9, 2007. New York, NY, USA: ACM, 2007: 164-173.
  • 7Foster J N, Pilkiewicz A, Pierce B C. Quotient lenses[C]// Proceedings of the 13th ACM SIGPLAN International Con- ference on Functional Programming, Victoria, Canada, Sep 20-28, 2008. New York, NY, USA: ACM, 2008: 383-396.
  • 8Barbosa D M, Cretin J J, Foster N, et al. Matching lenses: alignment and view update[C]//Proceedings of the 2010 ACM SIGPLAN International Conference on Functional Pro- gramming, Baltimore, Maryland, 2010. New York, NY, USA: ACM, 2010.
  • 9Kawanaka S, Hosoya H. biXid: a bidirectional transformation language for XML[J]. ACM SIGPLAN Notices, 2006, 41(9): 201-214.
  • 10Brabrand C, Moiler A, Schwartzbach M I. Dual syntax for XML languages[J]. Information Systems, 2008, 33(4): 385-406.

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

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