The moose likes IDEs, Version Control and other tools and the fly likes Has a DSL always be a programming language? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Has a DSL always be a programming language?" Watch "Has a DSL always be a programming language?" New topic

Has a DSL always be a programming language?

Rainer Eschen
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

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: 814
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.


SCJP, SCJD, SCEA 5 "Any sufficiently analyzed magic is indistinguishable from science!" Agatha Heterodyne (Girl Genius)
I agree. Here's the link: http://aspose.com/file-tools
subject: Has a DSL always be a programming language?
Similar Threads
OpenLaszlo learning curve
Domains for DSL
How Fast is Your Broadband Connection?
for when you have outgrown dominos
DSL examples?