A Rewrite Framework for Language Definitions and for Generation of Efficient Interpreters

  • Authors:
  • Mark Hills;Traian Şerbănuţă;Grigore Roşu

  • Affiliations:
  • Department of Computer Science, University of Illinois at Urbana-Champaign, USA, 201 N Goodwin Ave, Urbana, IL 61801;Department of Computer Science, University of Illinois at Urbana-Champaign, USA, 201 N Goodwin Ave, Urbana, IL 61801;Department of Computer Science, University of Illinois at Urbana-Champaign, USA, 201 N Goodwin Ave, Urbana, IL 61801

  • Venue:
  • Electronic Notes in Theoretical Computer Science (ENTCS)
  • Year:
  • 2007

Quantified Score

Hi-index 0.00

Visualization

Abstract

A rewrite logic semantic definitional framework for programming languages is introduced, called K, together with partially automated translations of K language definitions into rewriting logic and into C. The framework is exemplified by defining SILF, a simple imperative language with functions. The translation of K definitions into rewriting logic enables the use of the various analysis tools developed for rewrite logic specifications, while the translation into C allows for very efficient interpreters. A suite of tests show the performance of interpreters compiled from K definitions.