PowerBoots是DSL的一種非常有用的例子利用腳本塊創建圖形用戶界面:在powershell中是否還有其他DSL示例?
Boots { StackPanel { Button "A bed of clams" Button "A coalition of cheetas" Button "A gulp of swallows" } }
我知道,如果沒有指定目標域這個問題就顯得很一般。所以我打算使它更具體:
你知道任何其他項目在PowerShell中實現一種DSL嗎?
PowerBoots是DSL的一種非常有用的例子利用腳本塊創建圖形用戶界面:在powershell中是否還有其他DSL示例?
Boots { StackPanel { Button "A bed of clams" Button "A coalition of cheetas" Button "A gulp of swallows" } }
我知道,如果沒有指定目標域這個問題就顯得很一般。所以我打算使它更具體:
你知道任何其他項目在PowerShell中實現一種DSL嗎?
你也應該看看psake:https://github.com/JamesKovacs/psake
另外,我剛剛發現糾纏,這是RSpec的豪華的答案:https://github.com/pester/Pester
我試過的PowerShell作爲DSL腳本對於C#.Net應用程序和我的經驗已發佈here.。當涉及到DSL世界時,PowerShell功能非常強大。
PowerShell包含WPK,這是另一個DSL例如PowerBoots http://archive.msdn.microsoft.com/PowerShellPack。 Boots和WPK正在合併到Show-UI中:PowerShell WPF工具包http://showui.codeplex.com/ – 2011-05-03 19:50:30