In this paper we introduce an intermediate language for translation of F#, a functional language polymorphically typed relying on the .Net platform, to different scripting languages, such as Python and JavaScript. This intermediate language (IL for short) is an imperative language, with constructs that make possible to move a code fragment outside its definition environment, during the translation. Definition of names (variables and functions) are done in blocks, like in Python (and JavaScript) and do not have to statically precede their use. We present a translation of a core F# (including mutable variables) into IL.
An intermediate language for compilation to scripting languages / P. Giannini, A. Shaqiri - In: Proceedings of the 8. International joint conference on software technologies (ICSOFT 2013), Reykjavík, Iceland, 29-31 July, 2013 / [a cura di] J. Cordeiro, D. Marca, M. van Sinderen. - [s.l] : SciTePress, 2013 Dec. - ISBN 9789898565686. - pp. 92-103 (( Intervento presentato al 8. convegno International Joint conference on software technologies (ICSOFT) tenutosi a Reykjavík (Iceland) nel 2013 [10.5220/0004588600920103].
An intermediate language for compilation to scripting languages
A. ShaqiriSecondo
2013
Abstract
In this paper we introduce an intermediate language for translation of F#, a functional language polymorphically typed relying on the .Net platform, to different scripting languages, such as Python and JavaScript. This intermediate language (IL for short) is an imperative language, with constructs that make possible to move a code fragment outside its definition environment, during the translation. Definition of names (variables and functions) are done in blocks, like in Python (and JavaScript) and do not have to statically precede their use. We present a translation of a core F# (including mutable variables) into IL.File | Dimensione | Formato | |
---|---|---|---|
ICSOFT-EA_2013_65.pdf
accesso riservato
Tipologia:
Publisher's version/PDF
Dimensione
221.31 kB
Formato
Adobe PDF
|
221.31 kB | Adobe PDF | Visualizza/Apri Richiedi una copia |
Pubblicazioni consigliate
I documenti in IRIS sono protetti da copyright e tutti i diritti sono riservati, salvo diversa indicazione.