[Mono-list] BASIC, Compilers and Salutations

Miguel de Icaza miguel@ximian.com
11 Jul 2001 19:42:07 -0400

> b) On the subject of "a novel approach to compilers", I think it was =
> titled, am I wrong in thinking that System.CodeDom provides a rich =
> abstract syntax tree which could be the input to a common IL generator?  =
> Looking through the .NET documentation from Visual Studio.NET Beta 2, =
> Microsoft provides an ICodeCompiler implementation for C# and for =
> VB.NET, which can produce code from a CodeDom.  Is this not very close =
> to the novel approach?

The concept is good (and I even started using it for my C# compiler at
some point), but the actual implementation is useless.  CodeDOM is
just a mechanism for managing your in-memory "source code".

For real use, CodeDOM is useless.  It might be useful for quick hacks,
but not for a real compiler.