Programming Language Semantics using Miranda
暂无分享,去创建一个
This paper explains the use of the functional programming language Miranda as a vehicle for describing the semantics of imperative programming languages. In particular we give a Miranda denotational description of a substantial subset of a Pascal-like language, describing a number of variants of the semantics, including parameter passing by value-result, dynamic binding of values to names and a simple semantics of jumps. We also give an executable operational semantics of our basic language, as well as a compiler for this language into a simple stack machine, which is itself modelled in Miranda.
[1] Peter Lucas,et al. Formal Semantics of Programming Languages: VDL , 1981, IBM J. Res. Dev..
[2] Peter D. Mosses,et al. Denotational semantics , 1995, LICS 1995.
[3] Simon Thompson. Miranda - the craft of functional programming , 1995 .
[4] G. Winskel. The formal semantics of programming languages , 1993 .