Abstract
A linear-time reversible self-interpreter in an r-Turing complete reversible imperative language is presented. The proposed imperative language has reversible structured control flow operators and symbolic tree-structured data (S-expressions). The latter data structures are dynamically allocated and enable reversible simulation of programs of arbitrary size and space consumption. As self-interpreters are used to show a number of fundamental properties in classic computability and complexity theory, the present study of an efficient reversible self-interpreter is intended as a basis for future work on reversible computability and complexity theory as well as programming language theory for reversible computing. Although the proposed reversible interpreter consumes superlinear space, the restriction of the number of variables in the source language leads to linear-time reversible simulation.
Original language | English |
---|---|
Journal | Computer Software |
Volume | 33 |
Issue number | 3 |
Pages (from-to) | 108-128 |
Number of pages | 21 |
ISSN | 0289-6540 |
DOIs | |
Publication status | Published - 2016 |