0

This question already has an answer here:

Does a domain specific language use other languages like c++ or java, or is it standalone?

marked as duplicate by Karl Bielefeldt, jk., Martijn Pieters, Jimmy Hoffa, Robert Harvey May 29 '13 at 23:52

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

2

Yes, DSLs are often implemented using other languages. Tcl, ruby, groovy, and many others are very good for creating DSLs. A simple DSL can be developed in a matter of just a few hours or days in many cases.

A lot depends on he "D" -- the domain. If you're writing a DSL for financial traders, you might write it in C to get high performance. If you're writing a DSL for a testing framework or to describe a GUI, building atop an existing language may make more sense.

Other factors include whether this is a DSL that will be used daily by domain experts who have a specialzed vocabulary, or if it is for novices to configure a game once every few months. Will it be a commercial product or a freebie? And so on.

There are many, many use cases for small DSLs to be written on top of scripting languages.

Not the answer you're looking for? Browse other questions tagged or ask your own question.