Abstract
In this paper we consider the problem of translating core F#, a typed functional language including mutable variables and exception handling, into scripting languages such as JavaScript or Python. In previous work, we abstracted the most significant characteristics of scripting languages in an intermediate language (IL for short). IL is a block-structured imperative language in which a definition of a name does not have to statically precede its use. We define a big-step operational semantics for core F# and for IL and formalise the translation of F# expressions into IL. The main contribution of the paper is the proof of correctness of the given translation, which is done by showing that the evaluation of a well-typed F# program converges to a primitive value if and only if the evaluation of its translation into IL converges to the same value.
| Original language | English |
|---|---|
| Pages (from-to) | 19-76 |
| Number of pages | 58 |
| Journal | Scientific Annals of Computer Science |
| Volume | 27 |
| Issue number | 1 |
| DOIs | |
| Publication status | Published - 2017 |
Keywords
- Correct translation
- Functional languages
- Intermediate language
- Scripting languages
Fingerprint
Dive into the research topics of 'A provably correct compilation of functional languages into scripting languages'. Together they form a unique fingerprint.Cite this
- APA
- Author
- BIBTEX
- Harvard
- Standard
- RIS
- Vancouver