Domain-Specific Language Tools DSL工具

DSL工具与定制化建模
本文介绍如何利用领域特定语言(DSL)工具创建自定义建模工具和可视化设计器,适用于特定的问题领域,如描述用户界面、业务流程等,并能轻松生成代码。
 Domain-Specific Language Tools

DSL工具

You can use a domain-specific language for a specific task in a fixed-problem domain.

在一个确定的问题领域中,你可以为一个特定的任务使用DSL

This makes it different from a general-purpose language.

这使得它与通常目的语言不同。

By using Domain-Specific Language Tools, you can build customized modeling tools.

通过使用DSL工具,你能够创建自定义的建模工具。

You can define a modeling language and implement it very simply.

你能够定义一个建模语言,并能够非常简单的实现它。

For example, you can create a specialized language that describes a user interface, a business process, a database, or the flow of information.

例如,你能够创建一个用于描述一个用户接口、一个业务过程、一个数据库或信息流的特定语言。

Then you can generate code from those descriptions.

然后,你可以从这些描述中生成代码。

You can use Domain-Specific Language Tools to generate visual designers that are customized for your problem domain.

你可以为你的问题域,使用DSL语言工具生成自定义的可视化工具。

For example, you can create a tool to describe concepts that are specific to how your organization models business processes.

例如,你能够创建一个工具,用于描述你的组织如何处理模型化业务的概念。

If you are building a state chart tool, you can describe what a state is, what properties a state has, what kinds of states exist, how transitions between states are defined, and so on.

如果你正在创建一个状态图表工具,你能够描述以下被定义的信息:状态是什么、状态有什么属性、存在什么类型的状态、在状态间是怎样转变的,等等。

A state chart that describes the status of contracts in an insurance company is superficially similar to a state chart that describes user interaction among pages on a Web site.

在保险公司中,描述合约状态的状态图表与描述用户在Web站点间的交互页面的状态图很相似。

However, the underlying concepts between the two state charts will differ significantly.

然而,在两个状态图间的基本概念将有不同的值得关注的点。

By creating your own domain-specific language and custom-generated designer, you can specify exactly what state chart concepts you need in your tool.

通过创建你自己的DSL和自定义生成的设计器,你能够在你的工具中指定准确的、你需要的状态图概念。

评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值