Sample Compilers Written in .NET
In my post last night, I mentioned that I had written a compiler in VB6. If the idea of writing your own compiler intrigues you, you can see some (rather simple) examples that come with the .NET Framework SDK. Look for them at
C:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\Tool Developers Guide\Samples
The samples are for mini versions of C, C++, and Lisp (remember Lisp?!). The code itself is written in C# and C++. Maybe I should write VB versions...
If you have never studied any compiler theory or read up on it, it would probably be a good idea to do a little reading before diving into the code, so that at least you know the basic concepts and vocabulary.