Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dsl基本知识笔记 #1

Open
acodercc opened this issue Nov 8, 2014 · 0 comments
Open

dsl基本知识笔记 #1

acodercc opened this issue Nov 8, 2014 · 0 comments
Assignees

Comments

@acodercc
Copy link
Owner

acodercc commented Nov 8, 2014

  • dsl并不具有图灵完备的表达能力,martin fowler用“有限表达力”这个概念在gppl和dsl之间划了一条线。
  • martin fowler又在dsl内部划了一条线,这条线是dsl是否基于gppl做为宿主语言,是的话,称为内部dls,不是的话,称为外部dsl。
  • 内部dsl一般都是以gppl中的一个库的形式存在,比如rails之于ruby,jquery之于javascript。
  • 外部dsl又称为独立dsl,拥有独立的解析器,解决特定的问题域。。比如sql,css-selector。
  • 业内目前正在流行起来的,非文本DSL,以图形化的形式呈现给客户,让客户以图形化的方式为领域问题建立模型。
  • dsl设计于更高的抽象层次,缩短了问题和程序之间的语义距离。
@acodercc acodercc self-assigned this Nov 8, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant