Examples Of Domain Specific Language
7 recommendations for domain specific language design based on domain driven design.
Examples of domain specific language. 20 examples various target languages generated. Examples of areas or domains of knowledge include. A dsm for specifying the procedures and recipes for batch process control. The domain specific vocabulary used by people in chemistry might include molar ratios element compound and substance.
Yacc bison and antlr are examples of executable variations of bnf dsl. Writing your first domain specific language part 1 of 2. Various desing tasks covered. Domain specific vocabulary is the language that is used primarily within one area of knowledge but not others.
Self adaptive systems see more. A domain specific modeling language to specify applications into a internet of things device. 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. While it was published some years ago i think it is still relevant.
Regular expressions are little brother of bnf as they can specify only regular languages. Examples include css regular expressions make rake ant sql hql many bits of rails expectations in jmock graphviz s dot language fit strut s configuration file. Application development archicture design testing verification and validation service creation. Musical notation is another very famous dsl.
Domain specific languages have been talked about and used for almost as long as computing has been done. These are general programming languages gpl that are used for any number of purposes to solve any number. A concise list of suggestions on designing dsls. This article has been written by johan den haan who is the cto at mendix.
Datalog could be considered a domain specific language. Programmers service. 20 examples on domain specific modeling languages 1. Chemistry mathematics literature medicine and history.
Dsls are very common in computing. Assembler c java c python c ttcn 3 simulink xml. 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. Domain specific languages dsl you ve probably heard of java visual basic c c or c.
As soon as the language gets a little more complicated for example if you introduce if statements and variables as in part ii of this article then writing a bona fide compiler will pay dividends. Batch process control isa88 see more. A dsm language language for modeling self adaptive systems.