一个内部DSL在基本语言基础之上构建新的语言,并借用和样式化基本语言的语法。
An internal DSL builds new languages atop a base language, whose syntax it borrows and stylizes.
不过,确有借用语法的:比如,属于罗曼语的罗马尼亚语,其语法就受到斯拉夫语的影响。
It does happen: Romanian, a Romance language, is influenced by Slavic grammar, for example.
它借用了Velocity的基本模板语法,但添加了一些特性,为Cheetah模板提供对Python的便利构造的访问。
It borrows its basic template syntax from Velocity, but adds features that give Cheetah templates access to the convenient constructs of Python.
应用推荐