Fraunhofer-Gesellschaft

Publica

Hier finden Sie wissenschaftliche Publikationen aus den Fraunhofer-Instituten.

Minimally invasive interpreter construction

How to reuse a compiler to build an interpreter
 
: Schinko, Christoph; Ullrich, Torsten; Fellner, Dieter W.

:
Fulltext (PDF; )

Ullrich, Torsten (Ed.); Lorenz, Pascal (Ed.) ; International Academy, Research, and Industry Association -IARIA-:
Computation Tools 2012. Third International Conference on Computational Logics, Algebras, Programming, Tools, and Benchmarking : Nice, France, July 22 - July 27, 2012
Nice: IARIA, 2012
ISBN: 978-1-61208-222-6
pp.38-44
International Conference on Computational Logics, Algebras, Programming, Tools, and Benchmarking (Computation Tools) <3, 2012, Nice>
English
Conference Paper, Electronic Publication
Fraunhofer IGD ()
Fraunhofer Austria ()
generative modeling; procedural modeling; interpreter; scripting language; compiler construction; Forschungsgruppe Semantic Models, Immersive Systems (SMIS)

Abstract
Scripting languages are easy to use and very popular in various contexts. Their simplicity reduces a user's threshold of inhibitions to start programming - especially, if the user is not a computer science expert. As a consequence, our generative modeling framework Euclides for non-expert users is based on a JavaScript dialect. It consists of a JavaScript compiler including a front-end (lexer, parser, etc.) and back-ends for several platforms. In order to reduce our users' development times and for fast feedback, we integrated an interactive interpreter based on the already existing compiler. Instead of writing large proportions of new code, whose behavior has to be consistent with the already existing compiler, we used a minimally invasive solution, which allows us to reuse most parts of the compiler's front- and back-end.

: http://publica.fraunhofer.de/documents/N-229124.html