开发者

Are there any other examples of DSL in powershell?

PowerBoots is a very useful example of DSL which exploits script blocks to create GUIs:

Boots {
   StackPanel开发者_开发知识库 {
      Button "A bed of clams"
      Button "A coalition of cheetas"
      Button "A gulp of swallows"
   }
}

I know that without specifying a target Domain this question appears very general. So I'm going to make it more specific:

Do you know any other project implementing a kind of DSL in powershell?


You should also look at psake: https://github.com/JamesKovacs/psake

Also, I just found Pester, which is the PoSh answer for RSpec: https://github.com/pester/Pester


Another example: Windows PowerShell: A Better XML


Here's an example of a DSL for XML in PowerShell. Here's a blog post by Jeffrey Snover about DSLs in PowerShell (look at the comments for more links).


I tried PowerShell as DSL script for a C#.Net application and my experience has posted here. .PowerShell is really powerful when it comes to DSL world.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜