Rule formats can quickly establish meta-theoretic properties of process algebras. It is then desirable to identify domain-specific languages (DSLs) that can easily express rule formats. In prior work, we have developed Lang-n-Change, a DSL that includes convenient features for browsing language definitions and retrieving information from them. In this paper, we use Lang-n-Change to write a validator for the GSOS rule format, and we augment Lang-n-Change with suitable macros on our way to do so. Our GSOS validator is concise, and amounts to a few lines of code. We have used it to validate several concurrency operators as adhering to the GSOS format. Moreover, our code expresses the restrictions of the format declaratively.
翻译:规则格式可以快速建立过程代数的元理论性质。因此,有必要确定能够轻松表达规则格式的特定领域语言(DSLs)。在之前的工作中,我们开发了Lang-n-Change(ℒ), 一种DSLs,它包括方便的浏览语言定义并从中检索信息的功能。在本论文中,我们使用Lang-n-Change(L)编写了GSOS规则格式的验证器,并在此过程中使用了适当的宏。我们的GSOS验证器很简洁,只需几行代码即可完成。我们使用它来验证多个并发运算符是否符合GSOS格式。此外,我们的代码以声明形式表达格式限制。