This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
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 OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA 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
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
    
    5
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
    
    3
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 "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?