DSL应用集成和Rhino 3

本文概述了DSL(Domain Specific Language)集成与优化的关键实践,包括编码通用DSL模式、缓存DSL脚本、抽象编译启动、批处理DSL编译、脚本顺序管理与发现等。此外,文章分享了RhinoDSL基础设施建设的经验,旨在提高DSL的可维护性和可扩展性。

应用中集成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.

转载于:https://www.cnblogs.com/2018/archive/2012/09/13/2623625.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值