Discussions

What is a Domain Specific Language (DSL) ? According to Wikipedia ( en.wikipedia.org/wiki/Domain-specific_programming_language ):

A domain-specific language (DSL) is a programming language dedicated to a particular problem domain, a particular problem representation technique, and/or a particular solution technique. The concept isn’t newbut the term has become more popular due to the rise of domain-specific modeling.

Today, you’re going to learn how to use this amazing power of Rebol to easily create your own DSL for generating PHP, Java, C# or VB.Net Code.

This is an imaginary scenario: you’re a coder who often needs to switch between these 4 languages, you’d like to just say “Create a C# class with Id, First Name, Last Name, Birth Date” and then “Save class spec”. 2 days later, you would just say “Load class spec”, “Generate PHP class”, “Add Address Line 1, Address Line 2, Zip Code, City”, “Save class spec” and at a push of a button, all the code will be generated automatically ...

reboltutorial.com/blog/create-dsl/

Reply

Add Your Comment

Login to leave a message.