【24h】

An Approach Towards Merging Grammars

机译:合并语法的方法

获取原文

摘要

Introduction: Since the introduction of Island Grammars, they have been successfully used for a variety of tasks, including impact analysis, multi-lingual parsing, and source code identification. However, there has been no attempt to automate the generation of Island Grammars. Objective: This research considers the development of a method to automate the merging of Island Grammar components. The goal of this is to facilitate the development of an approach to automate the creation of Island Grammars. The result of this is the reduction in initial effort and maintenance effort required for Island Grammar engineering. Methods: We develop an automated approach to merge the components of grammars. To evaluate this approach, we conducted two experiments, each using a factorial design of five replications each. We randomly selected pairs of grammars from each of three size categories to assess the effects of the merging process on the maintenance effort and complexity of the generated grammars. Results: We found that in nearly all cases, the application of this merging approach reduces the maintenance effort and complexity of the grammars. Limitations: The primary limitation of this research is that this approach is currently limited to grammars written in the Antlr4 grammar format. Conclusions: This work presents the initial steps towards the automated construction of Island and Tolerant Grammars. We have shown that this approach to merging grammar components follows suit with the expectations of Island and Tolerant grammars (reduction in maintenance effort and complexity).
机译:简介:自引入岛文法以来,它们已成功用于各种任务,包括影响分析,多语言解析和源代码识别。但是,还没有尝试使Island Grammrs的生成自动化。目的:本研究考虑了一种自动进行岛语法组件合并的方法的开发。这样做的目的是促进开发自动创建岛屿文法的方法。其结果是减少了岛语法工程所需的初始工作量和维护工作量。方法:我们开发了一种自动化的方法来合并语法的组成部分。为了评估这种方法,我们进行了两个实验,每个实验都使用了每个重复五次的析因设计。我们从三个大小类别中的每一个中随机选择语法对,以评估合并过程对生成语法的维护工作量和复杂性的影响。结果:我们发现在几乎所有情况下,这种合并方法的应用都会减少语法的维护工作和复杂性。局限性:该研究的主要局限性在于该方法当前仅限于以Antlr4语法格式编写的语法。结论:这项工作提出了自动构建孤岛和宽容文法的初步步骤。我们已经表明,这种合并语法组件的方法符合Island和Tolerant语法的期望(减少了维护工作量和复杂性)。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号