An internal DSL builds new languages atop a base language, whose syntax it borrows and stylizes.
一个内部DSL在基本语言基础之上构建新的语言,并借用和样式化基本语言的语法。
It is common in internal DSLs to stylize the use of the base language to make the DSL more readable.
样式化基本语言以使DSL更加可读的行为在内部DSLs中是很常见的。
Because I was creating an internal DSL, which in my case is a Ruby API, the creation of the DSL could be purely test driven.
由于我创建的是一个内部DSL,它在我这个例子里是一个Ruby API,这套dsl的创建完全可以遵循测试驱动的实践。
应用推荐