[Mono-list] MCS namespaces/Driving MCS in-memory

A Rafael D Teixeira rafaelteixeirabr@hotmail.com
Tue, 18 Sep 2001 09:40:42 -0300


>From: Miguel de Icaza <miguel@ximian.com>

>
> > In truth I hope to have most of CIR namespace renamed Mono.Languages and
> > just have the CSharp's parser and tokenizer living in 
>Mono.Languages.CSharp.
>
>I can do that.  Not today, but I can try this week ;-)

Thanks, a lot.

> > ... there's another possibility: System.CodeDom.Compiler. The classes in
> > this namespace aren't in the ECMA list, but they are needed for ASP.NET
> > on-the-fly compilation of pages, and, I guess, for background 
>compilation on
> > the code editor that tags syntax errors as you type.
> >
>
>I initially implemented the CodeDom classes in Mono because I figured
>they could be useful, but CodeDom is just a set of classes for
>generating source code.
>
>So basically you populate the CodeDom, then the code *writes a file*
>with the source code, and invokes the compiler on it.  It lacks all
>sorts of useful stuff.
>
>That is why I went with my own classes.  After implementing everything
>I saw that there was very little that could be done with the CodeDom
>classes.
>

I think you've missed System.CodeDom.Compiler!!! The classes in this 
namespace do the reverse, you send then a source-file as a filename, a Dom 
or a string containing the source and it generates a executable (ICompiler 
interface), returning any errors/warnings in a collection.


Rafael Teixeira
Brazilian Developer






_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp