But in some cases it's warranted to have an external DSL that can be interacted with.
但是有时候,我们的确应该拥有一个外部的DSL,并可以与之交互。
Rather than building a framework on top of an existing language, mobl started with a clean slate as an external DSL.
mobl没有在已存在的语言基础之上构建框架,而是从头开始,构建了一种外部DSL。
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.
从语言设计的角度来看,外部领域特定语言能够提供最大程度的灵活性,因为内部领域特定语言语言必须遵循宿主语言的解析和语言语义。
The alternative is an "external" DSL that requires an external compiler and generator, making the integration much more difficult.
另外一种可选方式是“外部”DSL,需要一个外部的编译器和生成器,这样则会使得整合工作难度增大。
The alternative is an "external" DSL that requires an external compiler and generator, making the integration much more difficult.
另外一种可选方式是“外部”DSL,需要一个外部的编译器和生成器,这样则会使得整合工作难度增大。
应用推荐