在 Scala 中重命名 classOf
我正在为 ScalaTest 开发客户可读的 DSL。目前我可以写, feature("Admin Login") { scenario("Correct username and password") { given("user visit…
自动委托给 Scala 方法中的 val
我正在为 Wicket 应用程序编写 ScalaTest FeatureSpec。我有一个 wicketTester 值,我必须继续调用方法,即: scenario("No username and password") …
访问与 Treetop 中的节点关联的方法
使用如下定义的语法,为什么我在尝试访问由规则 key 创建的节点的 val 方法时总是出现错误? 错误消息是 (eval):168:in `val': undefined local varia…
如何在 python 中使用运算符模块编写小型 DSL 解析器
请参阅下面的矩阵数据: A B C D E F G 1 89 92 18 7 90 35 60 2 62 60 90 91 38 30 50 3 59 91 98 81 67 88 70 4 20 28 31 9 91 6 18 5 80 27 66 1 3…
Groovy 1.8 :: 应用 LINQ
更新 2011 年 8 月 31 日 纪尧姆·拉福格 (Guillaume Laforge) 几乎已经做到了: http://gaelyk.appspot.com/tutorial/app-engine-shortcuts# query 看…
Ruby:寻找可嵌入 Ruby 的解释器或脚本语言
Closed. This question is seeking recommendations for software libraries, tutorials, tools, books, or other off-site resources. It does not …
在 C 中解析 DSL 比 lex/yacc 更好的解决方案?
我的一个程序在运行时接受命令(例如 kill foo)。将其视为一种特定于领域的语言。这里有几个例子: kill kill client exit 而且,链式命令是允许的,…
Visual Studio可以支持我们自己的DSL吗?
假设我有一种语言并且我想为其构建一个 IDE。有没有办法“转换” Visual Studio IDE 以支持我的语言? 我的意思是,我们能否利用 Visual Studio IDE …
用于学习如何在 ruby 中设计良好的 API 包装器的资源
Closed. This question is seeking recommendations for software libraries, tutorials, tools, books, or other off-site resources. It does not …
GroovyShell 和 propertyMissing() 的问题
我在使用 propertyMissing() 和 GroovyShell 时遇到问题 ,我有这些文件 /** * @file FooScript.groovy */ abstract class FooScript extends Script …
如何使用 HJScript 或 HJavaScript 创建数组文字?
在 HJavaScript 中有 Array 类型,但我看不到一种构造可以翻译为 JS 的文字的方法,例如 [1,2,3].如果不需要的话,我不想创建一个 new Array() 然后将…
DSL 工具 NameAndType 动态列表
我有关于 DSL 类形状属性的问题。 我创建了一种 DSL 工具。我想要的功能有点像类图中的功能。 我的模型中有形状。我有类形状,其中包含属性和操作的隔…
XText 不提供 ANTLR 的哪些功能?
我刚刚遇到了非常好的工具 Xtext 来创建 DSL 以及用于编辑的 IDE。我在网上查了一下,发现有人说它不提供ANTLR的所有功能。我使用 ANTLR 作为我的解析…
powershell 中还有其他 DSL 示例吗?
PowerBoots 是 DSL 的一个非常有用的示例,它利用脚本块来创建 GUI: Boots { StackPanel { Button "A bed of clams" Button "A coalition of cheetas…