arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 1111.3970cs.SEcs.FL
收藏

基于模型的语言规格说明工具

A Tool for Model-Based Language Specification

Luis Quesada, Fernando Berzal, Juan-Carlos Cubero

摘要:

形式语言让我们精确地定义数据的文本表示。形式语法,通常以BNF的形式产生,描述语言语法,然后注释语法导向的翻译,并完成语义动作。除了数据的文本表示之外,当需要相应的数据结构的显式表示时,语言设计者必须设计合适的数据模型与其适当的语言规范之间的映射,然后开发从解析树到数据模型实例的转换过程。不幸的是,无论何时必须修改文本表示的格式,更改都必须在整个语言处理器工具链中传播。这些更新非常耗时、乏味且容易出错。此外,如果不同的应用程序使用相同的语言,则必须维护相同语言规范的多个副本。在本文中,我们介绍了一个基于模型的解析器生成器,从语言处理的语言规范,从而避免了语法驱动的解析器和解析器生成器所造成的许多问题。

英文摘要:

Formal languages let us define the textual representation of data with precision. Formal grammars, typically in the form of BNF-like productions, describe the language syntax, which is then annotated for syntax-directed translation and completed with semantic actions. When, apart from the textual representation of data, an explicit representation of the corresponding data structure is required, the language designer has to devise the mapping between the suitable data model and its proper language specification, and then develop the conversion procedure from the parse tree to the data model instance. Unfortunately, whenever the format of the textual representation has to be modified, changes have to propagated throughout the entire language processor tool chain. These updates are time-consuming, tedious, and error-prone. Besides, in case different applications use the same language, several copies of the same language specification have to be maintained. In this paper, we introduce a model-based parser generator that decouples language specification from language processing, hence avoiding many of the problems caused by grammar-driven parsers and parser generators.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑