Domain Specific Language (DSL) vs. Frameworks

妖精的绣舞 提交于 2020-01-03 08:57:50

问题


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!


回答1:


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.



来源:https://stackoverflow.com/questions/24725562/domain-specific-language-dsl-vs-frameworks

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!