Amir Jalilifard
Amir Jalilifard

Reputation: 2059

Domain Specific Language (DSL) vs. Frameworks

What is the main difference between the main idea of DSL and Frameworks? These two issues are very confusing to me and i couldn't find a proper answer through internet!

Upvotes: 14

Views: 3596

Answers (1)

Sridhar Sarnobat
Sridhar Sarnobat

Reputation: 25296

Good question. This is the simplest explanation I see:

A DSL can have its own concrete syntax. A framework cannot have its own syntax since it is used in the same language in which it was created. Domain Specific Languages versus Frameworks

For example: HTML is a DSL, whereas directives in the AngularJS framework are written in HTML syntax so do not constitute a separate language.

Upvotes: 7

Related Questions