首页> 外文会议>International symposium on logic-based program synthesis and transformation >Generating Specialized Interpreters for Modular Structural Operational Semantics
【24h】

Generating Specialized Interpreters for Modular Structural Operational Semantics

机译:生成模块化结构操作语义的专业解释器

获取原文

摘要

Modular Structural Operational Semantics (MSOS) is a variant of Structural Operational Semantics (SOS). It allows language constructs to be specified independently, such that no reformulation of existing rules in an MSOS specification is required when a language is extended with new constructs and features. Introducing the Prolog MSOS Tool, we recall how to synthesize executable interpreters from small-step MSOS specifications by compiling MSOS rules into Prolog clauses. Implementing the transitive closure of compiled small-step rules gives an executable interpreter in Prolog. In the worst case, such interpreters traverse each intermediate program term in its full depth, resulting in a significant overhead in each step. We show how to transform small-step MSOS specifications into corresponding big-step specifications via a two-step specialization by internalizing the rules implementing the transitive closure in MSOS and 'refocusing' the small-step rules. Specialized specifications result in generated interpreters with significantly reduced interpretive overhead.
机译:模块化结构操作语义学(MSOS)是结构操作语义学(SOS)的一种变体。它允许独立地指定语言构造,这样,当使用新的构造和功能扩展语言时,无需重新定义MSOS规范中的现有规则。在介绍Prolog MSOS工具时,我们回顾了如何通过将MSOS规则编译为Prolog子句来从小步MSOS规范中合成可执行解释器。实现已编译的小步骤规则的传递性闭包可以在Prolog中提供可执行的解释器。在最坏的情况下,此类解释器会在其整个深度内遍历每个中间程序项,从而导致每个步骤的开销都很大。我们通过内部化实现MSOS中的传递闭包的规则并“重新关注”小步骤规则,展示了如何通过两步专业化将小步骤MSOS规范转换为相应的大步骤规范。专门的规范使生成的口译员的口译工作量大大减少。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号