• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Has a DSL always be a programming language?

 
author
Posts: 75
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
author
Posts: 11962
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 883
3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Live a little! The night is young! And we have umbrellas in our drinks! This umbrella has a tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic