...
首页> 外文期刊>Acta polytechnica >A Task-driven Grammar Refactoring Algorithm
【24h】

A Task-driven Grammar Refactoring Algorithm

机译:任务驱动的语法重构算法

获取原文

摘要

This paper presents our proposal and the implementation of an algorithm for automated refactoring of context-free grammars. Rather than operating under some domain-specific task, in our approach refactoring is perfomed on the basis of a refactoring task defined by its user. The algorithm and the corresponding refactoring system are called mARTINICA. mARTINICA is able to refactor grammars of arbitrary size and structural complexity. However, the computation time needed to perform a refactoring task with the desired outcome is highly dependent on the size of the grammar. Until now, we have successfully performed refactoring tasks on small and medium-size grammars of Pascal-like languages and parts of the Algol-60 programming language grammar. This paper also briefly introduces the reader to processes occurring in grammar refactoring, a method for describing desired properties that a refactored grammar should fulfill, and there is a discussion of the overall significance of grammar refactoring.
机译:本文介绍了我们的建议和自动重构上下文无关文法的算法的实现。在我们的方法中,重构不是在某些特定于域的任务下进行,而是基于其用户定义的重构任务进行。该算法和相应的重构系统称为mARTINICA。 mARTINICA能够重构任意大小和结构复杂性的语法。但是,执行具有所需结果的重构任务所需的计算时间高度依赖于语法的大小。到目前为止,我们已经成功地对Pascal类语言的中小型语法和部分Algol-60编程语言语法执行了重构任务。本文还向读者简要介绍了语法重构中发生的过程,一种描述重构语法应满足的所需属性的方法,并讨论了语法重构的总体意义。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号