领域特定语言也可以对自身进行裁剪以适应当前的问题领域,从而有助于增进业务团队和开发团队之间的沟通。
DSLs provide the option to tailor the language itself to the problem at hand, facilitating communication between the business and the development team.
这个例外就是xsl:sort指令,它的lang属性告诉处理程序应该按照和指定语言的文化传统一致的方式排序字符串。
The exception is the XSL: sort instruction, where the lang attribute tells the processor that it should sort strings in a manner consistent with the cultural conventions of the specified language.
从语言设计的角度来看,外部领域特定语言能够提供最大程度的灵活性,因为内部领域特定语言语言必须遵循宿主语言的解析和语言语义。
From the language design perspective, an external DSL provides the greatest flexibility, since internal DSLs must respect the parsing and language semantics of the host language.
我们班上还有好几位学生对定语从句的用法仍没有把握。
There are several students in our class who are still not sure about the use of attributive clauses.
在英语中,定语从句的运用极为广泛,有的从句很长而且结构复杂。
In English, attributive clauses are used extensively, some of which are very long and complicated in structure.
目标是模仿某一特定语言和文化中最值得欣赏的措辞、语序以及组织信息的方法。
The goal is to imitate the wording and turns of phrase, as well as the ways of organizing information, that are most appreciated in a particular language and culture.
领域特定语言(DomainSpecific Language,简称DSL)是一个面向语言的工具,用于解决某个特定领域的编程任务。
A domain specific language is a language-oriented tool designed to solve a specific set of programming tasks.
比如,SQL为处理与数据库打交道的问题,提供了刚刚好的编程语言功能,使之成为一个领域特定语言。
For example, SQL provides just enough of a programming language to handle the problems of working with databases, making it a domain-specific language.
一种解决这种复杂性的可能方案是“SOA编程语言”——针对SOA的领域特定语言,如Wsper或Einstein。
One of the possible solutions to this complexity are "SOA programming languages" - Domain Specific languages for SOA, for example Wsper or Einstein.
绑定是针对指定语言的特殊包,它用适合该语言的方式公开gtk +API。
Bindings are special packages for a given language that expose the GTK + API in a manner appropriate for that language.
特定语句的含义,就像是小说阅读中出现的生词,自然就可以从上下文或是简单的常识中推断其含义。
The meaning of a particular statement—much like unfamiliar words in a novel—often becomes clear either from the context or from simple common sense.
本文正是打算讨论其中一项没有得到足够重视的特性——Erlang是打造领域特定语言的极佳平台。
This article is about a property of Erlang which does not get the credit it deserves - Erlang is a fantastic workbench for Domain Specific Languages.
他最近一段时间的工作中心放在领域特定语言(DSL)上面,所交付的应用为特定业务领域专家使用DSL撰写应用业务规则提供了强大的支持。
His most recent work has been in the Domain Specific Language space where he delivered applications that empowered subject matter experts to write the business rules of the applications.
领域特定语言更多的只是一种帮助不同角色之间进行更深入和更精确沟通的工具。
DSLs are more of a tool to help a deeper and more precise conversation between different roles.
本地化是针对特定语言环境改造产品的活动,采用国际化设计可以大大简化这项工作。
Localization is the act of specializing a product for a specific locale, a task that is much easier if it follows an internationalization effort.
<fmt:setLocale>的可选属性scope用来指定语言环境的作用域。
The optional scope attribute of <fmt:setLocale> is used to specify the scope of the locale.
创建三个新的绑定语句,每个引用编辑器实例中的一个节点。
Create three new binding statements, each referring to one of the nodes in the editor instance.
句子主干是itwillpassthroughsharpmetalbars。第一个which引导的定语从句修饰的是sharp metal bars。
First it will pass through sharp metal bars which will tear open the plastic bags in which rubbish is usually packed.
MF:和其它许多事情一样,我不认为领域特定语言的代码和其它代码有多大的区别。
MF: Like so many things, I don't think there's much of a difference between these and any other kind of code.
场景可以执行的部分,就是你可以构建实际领域特定语言的地方,用普通的英语编写(或者任何其它语言),因此几乎不需要学什么特别的语法。
The executable parts of a scenario, where you can build the actual DSL, are written in plain English (or almost any other language), so there's virtually no special syntax to learn.
扫描程序读取缓冲中的单个字符并返回解析器能理解的记号(称做标记)——如关键字、操作符及针对特定语言的标点符号。
A scanner reads in the individual characters of a buffer and returns symbols (called tokens) that the parser will understand — such as keywords, operators, and language-specific punctuation.
当然,前缀和本地部分不能包含冒号,但它们还要遵循XML名称的规定语法。
Naturally, the prefix and local part cannot contain a colon, but they otherwise follow the prescribed syntax for XML names.
对底层数据库对象的访问只能通过包中的特定语句进行。
The only access to the underlying database objects is through the specific statements in the package.
本文的示例所使用的Shell语法适用于GNUBash,有关需要使用的特定语法,请参考您的Shell手册(或者可以考虑使用Bash)。
The shell syntax used in the examples here is suitable for GNU Bash; please refer to your shell's manual for the specific syntax you'll need to use (or consider switching to Bash, I suppose).
在使用完善的文件共享和锁定语义来防止冲突的同时,CIFS允许多个客户端对同一个文件进行访问和更新。
CIFS allows multiple clients to access and update the same file, while preventing conflicts with sophisticated file sharing and locking semantics.
之所以这样设计,是因为在根据生成的URL的特定语法修改当前导航状态前,必须对其进行克隆。
This design decision was made because the current navigational state must be cloned before modifying it according to the specific semantics of the generated URL.
虽然作为参考这本书组织得很好,但有许多描述仍让我无法确定语言中那些偶尔的微妙之处。
While this book is very well-organized as a reference, a good number of the descriptions left me uncertain about occasional subtleties of the language.
RJP:还有一个需要考虑的问题是,用领域特定语言编写程序所需要的编辑器。
RJP: Another consideration is an editor for scripts written in the DSL.
RJP:还有一个需要考虑的问题是,用领域特定语言编写程序所需要的编辑器。
RJP: Another consideration is an editor for scripts written in the DSL.
应用推荐