Lex/Yacc for C#?
<p>Actually, maybe not full-blown Lex/Yacc. I'm implementing a command-interpreter front-end to administer a webapp. I'm looking for something that'll take a grammar definition and turn it into a parser that directly invokes methods on my object. Similar to how ASP.NET MVC can figure out which controller method to invoke, and how to pony up the arguments.</p>

<p>So, if the user types "create foo" at my command-prompt, it should transparently call a method:</p>

<pre><code>private void Create(string id) { /* ... */ }
</code></pre>

<p>Oh, and if it could generate help text from (e.g.) attributes on those controller methods, that'd be awesome, too.</p>
