Author Posts

November 2, 2015 at 9:55 am

A Backus–Naur Form (BNF) annotated version of the PowerShell grammar can be found in the first edition of Bruce Payette's book Windows PowerShell in Action. Appendix C containing the grammar is available in PDF form on the publisher's site.
https://www.manning.com/books/windows-powershell-in-action

The second edition of Windows PowerShell in Action does not contain a BNF.

Is there a current PowerShell BNF diagram available?

Thanks in advance.

November 2, 2015 at 10:40 am

As far as I'm aware there isn't. You may want to check the PowerShell language specification version 3.0 which is the latest version
http://www.microsoft.com/en-us/download/details.aspx?id=36389

It may have what you want.

At this moment there are no plans to add an appendix describing the PowerShell Grammar in BNF form to PowerShell in Action third edition