什么是领域特定语言?有人用吗?又以什么方式? [英] What is a domain specific language? Anybody using it? And in what way?

查看:121
本文介绍了什么是领域特定语言?有人用吗?又以什么方式?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想我正在寻找某种介绍,看看是否有人使用过它。

I guess I am looking for some kind of intro and see if anybody have used it. Are there any particular advantages of using it?

Wikipedia:

Wikipedia:


域特定语言(DSL)是专用于特定问题域,特定域的编程语言或规范语言。问题表示技术和/或特定的解决方案技术。

domain-specific language (DSL) is a programming language or specification language dedicated to a particular problem domain, a particular problem representation technique, and/or a particular solution technique.

任何人都可以提供任何具体示例说明您如何实现它或如何实现它

Can anybody give any specific examples of how you have implemented it or how it can be useful in a given scenario?

推荐答案

领域特定语言是为处理特定领域或集合而编写的语言的关注。周围有很多它们,例如用于描述软件构建的make,ant和rake,或者用于语言构建的lexx和yacc。近年来,由于某些方面的结合使它们更易于构建,它们已变得越来越流行。其中最重要的是Ruby的日益流行,它具有多项功能,可以轻松地构建新的DSL。

A domain specific language is a language that's written to deal with a specific domain or set of concerns. There are a lot of them around, like make, ant, and rake for describing software builds, or lexx and yacc for language construction. In recent years, they've become popular as some things have combined to make them easier to build. Big among those things has been the increasing popularity of Ruby, which has several features that make it easy to build new DSLs.

Martin Fowler就是这个想法的主要支持者,作为此处

Martin Fowler is a big proponent of the idea, as here.

这篇关于什么是领域特定语言?有人用吗?又以什么方式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆