3531 articles – 5253 references  [version française]

inria-00000700, version 1

A generator of efficient strongly typed abstract syntax trees in Java

Mark Van Den Brand () 1, Pierre-Etienne Moreau 2, Jurgen Vinju () 1

IEE Proceedings - Software Engineering 152, 2 (2005) 70--87

Abstract: Abstract syntax trees are a very common data-structure in language related tools. For example compilers, interpreters, documentation generators, and syntax-directed editors use them extensively to extract, transform, store and produce information that is key to their functionality. We present a Java back-end for ApiGen, a tool that generates implementations of abstract syntax trees. The generated code is characterized by strong typing combined with a generic interface and maximal sub-term sharing for memory efficiency and fast equality checking. The goal of this tool is to obtain safe and more efficient programming interfaces for abstract syntax trees. The contribution of this work is the combination of generating a strongly typed data-structure with maximal sub-term sharing in Java. Practical experience shows that this approach is beneficial for extremely large as well as smaller data types.

  • 1:  Centrum voor Wiskunde en Informatica (CWI)
  • Netherlands Organisation for Scientific Research – CWI
  • 2:  PROTHEO (INRIA Lorraine - LORIA)
  • INRIA – CNRS : UMR7503 – Université Henri Poincaré - Nancy I – Université Nancy II – Institut National Polytechnique de Lorraine (INPL)
  • Domain : Computer Science/Programming Languages
 
  • inria-00000700, version 1
  • oai:hal.inria.fr:inria-00000700
  • From: 
  • Submitted on: Tuesday, 15 November 2005 09:47:58
  • Updated on: Monday, 3 July 2006 15:18:18