Domain Specific Language Interpreter
The problem is that the base language compilers or interpreters have no knowledge of these domain specific semantics and in particular of domain specific optimisations that might be possible.
Domain specific language interpreter. Of course we want the object with the result of the evaluation to be of the correct java type. With a minimal training now anyone can describe a sispecific interaction with a website and the expected results. We call the programming language in which the dsl is inte grated the host language. Dsl code mixed with other code.
Furthermore calls to dsls are typically mixed with other non domain specific code which might make it hard. Using such dsls often dominates and constrains the way a software system is built just as much as a programming language. In this case there is no need for a developer to define the translation of commands to a gpl because this language users domain specific commands like click which the interpreter knows how to execute. The idea is that this interpreter given an abstractelement returns a java object which represents the evaluation of that element.
Domain specific languages which are called at runtime from programs written in general purpose languages like c or perl to perform a specific function often returning the results of operation to the host programming language for further processing. Format strings a. In this paper we propose using a domain specic language dsl to specify specializing ast interpreter nodes. Generally an interpreter or virtual machine for the domain specific language is embedded into the host application e g.
We will now write an interpreter for our expressions dsl.