Back to search

University of Victoria (Canada)

Compiling functional programming languages using class hierarchies

Abstract

dc:description.abstract

This thesis presents a technique for translating functional programming languages into C++. A translator called f2cpp that uses the technique has been developed. It is shown that f2cpp can be used to integrate functional and imperative programs. A toy functional programming language called X is used by f2cpp. The translation of X into C++ is performed in two steps. Firstly, X is translated into an intermediate representation, and secondly, the intermediate representation is translated into C++. The second step is the crucial part of the whole translation. A C++ class hierarchy is used to represent A-expressions. The f2cpp translator proposed here is intended to augment the multiparadigm pro­gramming environment provided by the TOPIC system. TOPIC allows PROLOG to be used with C++. f2cpp enhances the TOPIC system and the enhanced system allows PROLOG , C++ and X to be used together in software development. The design of a programming language interpreter is presented to illustrate the use of this enhanced pro­gramming environment.

Degree

thesis:*
Level thesis:degree_level
Master of Science M.Sc.
Department thesis:degree_department
Department of Computer Science
Year dc:date.issued
1991

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • Wang, Xiaohong

Rights

dc:rights
Statement dc:rights
  • Available to the World Wide Web

Identifiers

dc:identifier.*
Handle dc:identifier.uri
https://hdl.handle.net/1828/20046

Chain of custody

source
Harvested from
University of Victoria (Canada)
Base URL
dspace.library.uvic.ca/server/oai/request
Last updated
2026-11-19
Source record
OAI-PMH GetRecord
citation

Wang, Xiaohong. Compiling functional programming languages using class hierarchies. Master of Science M.Sc. thesis, 1991. https://hdl.handle.net/1828/20046