arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2510.08200cs.SE
收藏

使用空白不敏感组件构建空白敏感语言

Building Whitespace-Sensitive Languages Using Whitespace-Insensitive Components

RWTH Aachen University(亚琛工业大学)

Alexander Hellwig, Nico Jansen, Bernhard Rumpe

AI总结:

本文提出一种通过预处理语言工件,利用空白不敏感模块构建空白敏感语言的技术,并以重构简化版Python验证,旨在提高组件可重用性,减少开发时间并提升质量。

摘要:

在软件语言工程中,存在一种通过组合模块化语言组件来实现可重用性的趋势。然而,这种可重用性因空白敏感语言与空白不敏感语言之间的集成差距而受到严重阻碍。目前尚无一致的程序可在两种情况下无缝重用此类语言组件,导致库经常无法重用,空白敏感语言需从头开发。本文提出了一种技术,通过解析前预处理语言工件,利用模块化的空白不敏感语言模块来构建空白敏感语言。该方法通过重构编程语言Python的简化版本来进行评估。我们的解决方案旨在提高现有语言组件的可重用性,以减少开发时间并提高软件语言的整体质量。

英文摘要:

In Software Language Engineering, there is a trend towards reusability by composing modular language components. However, this reusability is severely inhibited by a gap in integrating whitespace-sensitive and whitespace-insensitive languages. There is currently no consistent procedure for seamlessly reusing such language components in both cases, such that libraries often cannot be reused, and whitespacesensitive languages are developed from scratch. This paper presents a technique for using modular, whitespaceinsensitive language modules to construct whitespace sensitive languages by pre-processing language artifacts before parsing. The approach is evaluated by reconstructing a simplified version of the programming language Python. Our solution aims to increase the reusability of existing language components to reduce development time and increase the overall quality of software languages.

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

↑