Lars Wilhelmsen

Microsoft Connected Systems MVP

Skip to: Content | Sidebar | Footer

Date: March 16th, 2009

Parsing the command line with MGrammar – part 1

16 March, 2009 (20:56) | C#, Codename+Oslo, DSLs, MGrammar | By: larsw

Let’s take a look at how we can use MGrammar to create a mini-DSL for a language most developers knows quite well; command line arguments. Most applications that accepts arguments on the command line in Windows (or in Linux/Un*x for that matter) is on the form: Application.exe /a /b 123 /c “some input string goes [...]