首页> 外文OA文献 >A Model-Driven Parser Generator, from Abstract Syntax Trees to Abstract Syntax Graphs
【2h】

A Model-Driven Parser Generator, from Abstract Syntax Trees to Abstract Syntax Graphs

机译:模型驱动的分析器生成器,从抽象语法树到抽象   语法图

代理获取
本网站仅为用户提供外文OA文献查询和代理获取服务,本网站没有原文。下单后我们将采用程序或人工为您竭诚获取高质量的原文,但由于OA文献来源多样且变更频繁,仍可能出现获取不到、文献不完整或与标题不符等情况,如果获取不到我们将提供退款服务。请知悉。

摘要

Model-based parser generators decouple language specification from languageprocessing. The model-driven approach avoids the limitations that conventionalparser generators impose on the language designer. Conventional tools requirethe designed language grammar to conform to the specific kind of grammarsupported by the particular parser generator (being LL and LR parser generatorsthe most common). Model-driven parser generators, like ModelCC, do not requirea grammar specification, since that grammar can be automatically derived fromthe language model and, if needed, adapted to conform to the requirements ofthe given kind of parser, all of this without interfering with the conceptualdesign of the language and its associated applications. Moreover, model-driventools such as ModelCC are able to automatically resolve references betweenlanguage elements, hence producing abstract syntax graphs instead of abstractsyntax trees as the result of the parsing process. Such graphs are not confinedto directed acyclic graphs and they can contain cycles, since ModelCC supportsanaphoric, cataphoric, and recursive references.
机译:基于模型的解析器生成器将语言规范与语言处理分离。模型驱动的方法避免了常规解析器生成器对语言设计器施加的限制。传统工具要求设计的语言语法符合特定解析器生成器(最常见的LL和LR解析器生成器)支持的特定语法类型。由模型驱动的解析器生成器(例如ModelCC)不需要语法规范,因为该语法可以自动从语言模型中得出,并且在需要时可以适应给定解析器的要求,所有这些都不会干扰概念设计语言及其相关应用程序。而且,诸如ModelCC之类的模型驱动工具能够自动解析语言元素之间的引用,从而作为解析过程的结果,生成了抽象语法图而不是抽象语法树。这样的图不限于有向无环图,它们可以包含循环,因为ModelCC支持隐式,后照和递归引用。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号