DSL应用集成和Rhino 3

应用中集成DSL

Naming conventions

Ordering the execution of scripts

Performance considerations when using a DSL

Segregating the DSL from the application

clip_image002

集中集成方式的优缺点

BOO汇总和Rhino

clip_image004

DSL infrastructure should meet:

ƒ Codify common DSL idioms so you don’t have to keep rewriting them

ƒ Handle caching of DSL scripts

ƒ Abstract the compiler bootstrapping

ƒ Batch compile DSLs

ƒ Manage ordering and script discovery

ƒNot harm the DSL’s extensibility

Rhino DSL is the result of several years’ experience building DSLs and dealing withthese issues.

posted @ 2012-09-13 08:29  2012  阅读(373)  评论(0编辑  收藏  举报