I've written before about my attraction to Domain-Specific Languages and my curiosity about using PowerShell to handle them, but I only recently got any time to think about it more. I'm working on a DSL implementation for defining "data classes" with certain properties in C# (see
http://blogs.gotdotnet.com/ericlippert/archive/2007/11/13/immutability-in-c-part-one-kinds-of-immutability.aspx#comments for an example).
I have only 3 examples of PowerShell DSLs to work from, and I don't see any guidance in this area, so I figured I'd write about what I find.
Table of Contents- Prior art
- Why PowerShell?
- Custom invocation w/ a library
- DSL tool invocation
- Hash table input
- Script block input
- Using hashtables and scriptblocks together
No comments:
Post a Comment