Domain-Specific Language Tools 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和自定义生成的设计器,你能够在你的工具中指定准确的、你需要的状态图概念。

猜你喜欢

转载自blog.csdn.net/bdbox/article/details/2196798
今日推荐