期刊文献+

建模语言中的文本表面语法分析方法研究 被引量:2

Research of text concrete syntax analysis methods in modeling language
下载PDF
导出
摘要 通过分析三种常见文法的利弊,采用了扩展的BNF文法进行文本语法规则的描述,并通过准引用(qua-si-quote)和语法糖方法对该文法进行了改进和扩充,增强了文本语法的描述能力和易用性。通过准引用方法,已经被建立好的文本语法元素的抽象语法能够被重用来构造新的语法元素。通过使用语法糖,新的语法构件能被转换到存在的语法构件上。当元模型在实例上执行计算或编译时,可以通过脱糖(desugar)转换操作,建立一个新的语法类的实例。 This paper analyzed three common grammar' s advantages and disadvantages, and adopted extreme BNF as the description of the text concrete syntax regulation. Furthermore quasi-quote and syntactic sugar were used to improve and extend the grammar and also enhance the description and usability of the text concrete syntax. With the quasi-quote mechanism, the abstract syntax of text concrete syntax element which had been built by the system could be reused to construct new syntax element. New syntax element could be constructed by transform to existing element with the syntax sugar. The desugar operation performs to create an instance of a new syntax category when the metamodel was computing or compiling on the instance.
出处 《计算机应用研究》 CSCD 北大核心 2008年第3期791-794,共4页 Application Research of Computers
基金 国家科技攻关项目(2004BA907A20) 吉林省重大科技项目(20040304)
关键词 建模语言 文本表面语法 扩展的巴科斯—诺尔范式 准引用 语法糖 modeling language text concrete syntax XBNF quasi-quote syntactic sugar
  • 相关文献

参考文献10

  • 1BERK1 E, GEORG1ADOU E, HOLCOMBE M. Requrirements engineering and process modeling in software quality management-towards a generic process metamodel [J ]. Software Qulity Control,2004,12 (3) :265-283.
  • 2VOLTER M, BETT1N J. Patterns for model-driven software-development [ C ]//Proc of the 9th European Conference on Pattern Languages of Programs. Irsee: [ s. n. ] ,2004 : 18-24.
  • 3TARIQ N A, AKHTER N. Comparison of model driven architecture (MDA) based tools [ D]. Stockholm: Department of Computer and Systems Science, Royal Institute of Technology(KTH) ,2005:6-13.
  • 4SLONNEGER K, KURTZ B L. Formal syntax and semantics of programming languages :a laboratory based approch[ M ]. United States: Addison-Wesley Publishing Company, 1995 : 18-46.
  • 5GARGANTINI A, RICCOBENE E, SCANDURRA P. Deriving a textual notation from a metamodel: an experience on bridging model ware and grammarware[C ]//SINDEREN M van. European Workshop on Milestones, Models and Mappings for Model-driven Architecture: CITI Workshop Proceedings Series. Netherland : [ s. n] ,2006:41-54.
  • 6FRANKEL D S. MDA journal [ EB/OL]. (2004-10). http://www, davidfrankelconsuhing, com/MDAJournal, htm.
  • 7BATORY D, LOFASO B, SMARAGDAKIS Y. JTS : tools for implementing domain-specific languages [ C ]//Proc of the 5th International Conference on Software Reuse. Washington DC : IEEE Computer Society, 1998 : 143-153.
  • 8CLARK T, EVANS A, SAMMUT P, et al. Applied meta modelling: a foundation for language driven development [ EB/OL]. (2004-10). http ://www. xactium, com.
  • 9VISSER E. Meta-programming with concrete object syntax[ C ]//Proc of the 1 st ACM SIGPLAN/SIGSOFT Conference. 2002:299-315.
  • 10LAAN KV Der. Syntactic sugar[ C]//Proc of the 1993 Annual Meeting. Aston,VK : [ s. n. ] ,1993:310-318.

同被引文献4

引证文献2

二级引证文献4

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

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