Domain Specific Language Javascript
Your users in general do not care how your site looks.
Domain specific language javascript. It allows a user to interact with the system on their terms not just programmer speak. A case study in domain specific language engineering. There are a wide variety of dsls ranging from widely used languages for common domains such as html for web pages down to languages used by only one or a few pieces of software such as. Creating a simpler domain specific language by restricting the javascript support in google s v8.
These languages are therefore well suited for inventing smaller special purpose domain specific languages. I co founded strumenta and we design and implement domain specific languagesfor a living. The arithmetic language is a javascript like language which supports members subscripts function calls and most other javascript operators that do not cause side effects so no. A domain specific language dsl is a computer language specialized to a particular application domain this is in contrast to a general purpose language gpl which is broadly applicable across domains.
The paper is authored by eelco visser who is very well known in the field. A domain could be a business context e g banking insurance etc or an application context e g a web application database etc in contrast a general purpose language gpl can be used for a wide range of business problems and applications. One widespread practice in templating systems is to provide a dsl for templating. All three projects are part of a wider exploration involving using javascript for domain specific languages.
Domain specific languages and parsers for js. Domain specific language a domain specific language dsl is a system which provides the user with an expressive means of solving a problem. A very detailed case study on a very practical dsl. Is it possible to create a simpler language by restricting the javascript support in google s v8.
I d like to embed the v8 engine in my own tool to run dynamic scripts and like the idea of v8 precomiling the source for speed. A domain specific language dsl is a language meant for use in the context of a particular domain.