arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1703.02312cs.PL
收藏

Rascal Light的形式语义

The Formal Semantics of Rascal Light

Ahmad Salim Al-Sibahi

摘要:

Rascal是一种高级转换语言,旨在简化软件语言工程任务,如定义程序语法,分析和转换程序,以及执行代码生成。该语言提供了几个功能,包括内置的集合(列表,集合,映射),代数数据类型,强大的模式匹配操作与回溯,以及支持多种策略的高级遍历。不同语言特征之间的交互可能很难理解,因为大多数特征在语义上都很丰富。该报告为Rascal的一个大子集(称为Rascal Light)提供了定义良好的形式语义,适用于开发形式化技术,例如,类型系统和静态分析。此外,该报告还陈述和证明了语义的一系列有趣属性,包括回溯的纯度,强类型,部分进展和终止子集的存在。

英文摘要:

Rascal is a high-level transformation language that aims to simplify software language engineering tasks like defining program syntax, analyzing and transforming programs, and performing code generation. The language provides several features including built-in collections (lists, sets, maps), algebraic data-types, powerful pattern matching operations with backtracking, and high-level traversals supporting multiple strategies. Interaction between different language features can be difficult to comprehend, since most features are semantically rich. The report provides a well-defined formal semantics for a large subset of Rascal, called Rascal Light, suitable for developing formal techniques, e.g., type systems and static analyses. Additionally, the report states and proofs a series of interesting properties of the semantics, including purity of backtracking, strong typing, partial progress and the existence of a terminating subset.

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

↑