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

使用Spoofax支持在线代码导航

Using Spoofax to Support Online Code Navigation

Peter D. Mosses

摘要:

Spoofax是一个语言工作台。Spoofax语言规范通常包括名称解析:定义和引用之间的绑定分析。当使用Spoofax浏览指定语言的代码时,绑定显示为超链接,支持精确的基于名称的代码导航。但是,Spoofax不能用于浏览在线存储库中的代码。这篇论文是关于一个工具链,它使用Spoofax来生成代码库的超链接双胞胎。这些生成的工件支持与Spoofax相同的精确代码导航,并且可以在线浏览。该技术已经在由PLanCompS项目开发的CBS(基于语义的语法)规约语言上原型化,但在Spoofax中指定其名称解析后,可以在任何语言上使用。

英文摘要:

Spoofax is a language workbench. A Spoofax language specification generally includes name resolution: the analysis of bindings between definitions and references. When browsing code in the specified language using Spoofax, the bindings appear as hyperlinks, supporting precise name-based code navigation. However, Spoofax cannot be used for browsing code in online repositories. This paper is about a toolchain that uses Spoofax to generate hyperlinked twins of code repositories. These generated artefacts support the same precise code navigation as Spoofax, and can be browsed online. The technique has been prototyped on the CBS (Component-Based Semantics) specification language developed by the PLanCompS project, but could be used on any language after specifying its name resolution in Spoofax.

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

↑