Writing a Compiler in C#: Lexical Analysis

Wednesday, October 6, 2010

I’m going to write a compiler for a simple language. The compiler will be written in C#, and will have multiple back ends. The first back end will compile the source code to C, and use cl.exe (the Visual C++ compiler) to produce an executable binary. But first, a minor digression. Over my blogging years, I developed this tendency of abandoning blog post series just prior to their final installment. I abandoned the unit testing series, the primality testing series, and many other “series”. Therefore, I’m not going to call this thing a “series”. I might...