...
首页> 外文期刊>Electronic Communications of the EASST >Asserting the Correctness of Software Language Translations
【24h】

Asserting the Correctness of Software Language Translations

机译:断言软件语言翻译的正确性

获取原文
           

摘要

While building a new language, we assign its semantics by mapping its syntax onto a semantic domain. To do so, we can either (i) do it operationally, by means of small-step morphisms within the same semantic-domain; or (ii) by means of a translation (syntax-to-syntax transformation), onto a target language that has already an operational semantics defined.?Despite the fact that it is possible to build the set of syntactic correspondences from a given translation, it is still not clear how we can assert about the correctness of these syntactic correspondences in w.r.t. both the source and target language's underlying semantics.In this paper, we combine the above described techniques by analyzing the translation and establishing a semantic relation between the respective operational semantics, in order to assert the correctness of that translation. We demonstrate our approach with a concrete translation between two languages: State Machines and Petri Nets; and decide about its correctness by using their respective operational semantics as oracles. Finally, we discuss about the validity of our assertions in w.r.t. language translations in general.
机译:在构建新语言时,我们通过将其语法映射到语义域来分配其语义。为此,我们可以(i)通过在相同语义域内进行小步态射操作来进行操作;或(ii)通过翻译(从句法到句法的转换)到已经定义了操作语义的目标语言上。尽管有可能从给定的翻译中构建一套语法对应关系,尚不清楚我们如何断言这些句法对应在wrt中的正确性在本文中,我们通过分析翻译并在各个操作语义之间建立语义关系来结合上述技术,以便断言翻译的正确性。我们通过两种语言之间的具体翻译来展示我们的方法:状态机和Petri网;并通过使用其各自的操作语义作为预言来确定其正确性。最后,我们讨论w.r.t.中声明的有效性。一般的语言翻译。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号