开发者

Are there any other examples of DSL in powershell?

开发者 https://www.devze.com 2023-03-02 19:34 出处:网络
PowerBoots is a very useful example of DSL which exploits script blocks to create GUIs: Boots { StackPanel开发者_开发知识库 {

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

精彩评论

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