论文标题
客户端 - 不合时式混合模型编辑器作为服务的一般体系结构
A General Architecture for Client-Agnostic Hybrid Model Editors as a Service
论文作者
论文摘要
在本文中,我们提出了一种用于设计混合建模语言的语言服务器的一般体系结构,也就是说,建模语言包含文本表示和图形表示。该体系结构由文本语言服务器,图形语言服务器以及与两个服务器通信的客户端组成。使用语言服务器协议(LSP)和图形语言服务器协议(GLSP)实现服务器,并基于混合语言的共享抽象语法。这意味着只有静态资源需要在图形和文本语言服务器之间共有。服务器的分离允许独立开发和维护每个服务器,同时还可以与各自的依赖性相兼容。 我们以UML-RT语言的混合编辑器的形式描述了我们体系结构的原型实现。通过此原型对体系结构的评估使我们可以有用的洞察力,以实现对体系结构及其使用方式的进一步概括。然后,我们绘制架构的合适扩展,以支持多个图类型,从而支持多个图形视图。
In this paper, we propose a general architecture for designing language servers for hybrid modeling languages, that is, modeling languages that contain both textual and graphical representations. The architecture consists of a textual language server, a graphical language server, and a client that communicates with the two servers. The servers are implemented using the Language Server Protocol (LSP) and the Graphical Language Server Protocol (GLSP) and are based on a shared abstract syntax of the hybrid language. This means that only static resources need to be common between the graphical and textual language servers. The servers' separation allows each to be developed and maintained independently, while also enabling forward-compatibility with their respective dependencies. We describe a prototype implementation of our architecture in the form of a hybrid editor for the UML-RT language. The evaluation of the architecture via this prototype gives us useful insight into further generalization of the architecture and the way it is used. We then sketch a suitable extension of the architecture to enable support for multiple diagram types and, thus, multiple graphical views.