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!
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.