| Author |
Has a DSL always be a programming language?
|
Rainer Eschen
author
Ranch Hand
Joined: Jan 24, 2009
Posts: 75
|
|
|
I'm new to DSL. So, I wonder if a XML schema and its corresponding XML files fullful the criteria for a DSL.
|
ICEfaces book . ICEcube . ICEfusion . Scrum
|
 |
Lasse Koskela
author
Sheriff
Joined: Jan 23, 2002
Posts: 11962
|
|
|
The definition for what counts as a Domain Specific Language is vague enough to include pretty much anything that's not a general-purpose programming language (e.g. Java) or a modeling language (e.g. UML). For example, the configuration file syntax for Apache HTTPD server are a DSL and the "BB Code" you format these posts on JavaRanch is a DSL.
|
Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
|
 |
Burk Hufnagel
Ranch Hand
Joined: Oct 01, 2001
Posts: 609
|
|
Rainer,
Lasse's right - XML, ant, even make files have been used as examples of a DSL. In some of his talks, Neal Ford even uses StarBuck's as a DSL because the words "Venti, half-caf no foam latte with whip" tell the barista what ingredients to use and how big to make it. If you're interested, here's a link to an article of his about building DSLs - it's for C#, but you may find it worth reading anyway: http://www.code-magazine.com/Article.aspx?quickid=0902041.
Burk
|
SCJP, SCJD, SCEA 5 "The only rules that really matter are these: what a man can do and what a man can't do." Captain Jack Sparrow
|
 |
 |
|
|
subject: Has a DSL always be a programming language?
|
|
|