Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Has a DSL always be a programming language?

 
Rainer Eschen
author
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm new to DSL. So, I wonder if a XML schema and its corresponding XML files fullful the criteria for a DSL.
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Burk Hufnagel
Ranch Hand
Posts: 814
3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic