Reading Don Box's recent post on new geek toys I was stuck by point 4.
A CodeDOM compiler for C# and VB.NET.There are dozens of C# compilers floating around the net in various stages of completion. If our CodeDOM providers for C# (and VB.NET) supported parsing in addition to generating, who knows what might happen. My guess is that at the very least less resources would be wasted on compiler projects that don't see it through to completion.
One of those early things I tried to do with .NET(in the Beta days) was to create a template based code generator to ease some common stuff. I wanted the template to be in C#/Vb.NET and use replacing of specified variables and using the CodeDom to generate the final code.
I needed to parse the templates into a CodeDom structure and I was delighted to find a parser as a part of CodeDom, only to be dissappointed with a notImplemented exception. The parser never made in to any of the versions till now. I gave up on that project as I did not have enough time to put into writing a full fledged parser.


Comments