Home // COMPUTATION TOOLS 2012, The Third International Conference on Computational Logics, Algebras, Programming, Tools, and Benchmarking // View article


Minimally Invasive Interpreter Construction

Authors:
Christoph Schinko
Torsten Ullrich
Dieter W. Fellner

Keywords: JavaScript, generative modeling, procedural modeling, compiler, interpreter

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.

Pages: 38 to 44

Copyright: Copyright (c) IARIA, 2012

Publication date: July 22, 2012

Published in: conference

ISSN: 2308-4170

ISBN: 978-1-61208-222-6

Location: Nice, France

Dates: from July 22, 2012 to July 27, 2012