Type-driven automatic quotation of concrete object code in meta programs

  • Authors:
  • J. J. Vinju

  • Affiliations:
  • Centrum voor Wiskunde en Informatica, Amsterdam, The Netherlands

  • Venue:
  • RISE'05 Proceedings of the Second international conference on Rapid Integration of Software Engineering Techniques
  • Year:
  • 2005

Quantified Score

Hi-index 0.00

Visualization

Abstract

Meta programming can be facilitated by the ability to represent program fragments in concrete syntax instead of abstract syntax. The resulting meta programs are more self-documenting. One caveat in concrete meta programming is the syntactic separation between the meta language and the object language. To solve this problem, many meta programming systems use quoting and anti-quoting to indicate precisely where level switches occur. These “syntactic hedges” can obfuscate the concrete program fragments. This paper describes an algorithm for inferring quotes, such that the meta programmer no longer needs to explicitly indicate transitions between the meta and object languages.