All right, the bad news is I gave up on the .NET-powered templatizer... the good news is I moved to Java!
This was actually prompted by my switch to Linux; Mono's IDE isn't very developed at this point, whereas with Java you can use NetBeans.
Well, over the past 3 days I completely rewrote the templatizer part of the program, and gave up on the expression evaluator - because I finally found one that does exactly what I want, only it's even better than the one I wrote!
Have a look at this:
http://directory.fsf.org/science/math/calc.html
One problem I foresee is that it's called "calc" which is the name of the standard Windows calculator... well I could put in a dialog to locate the "real" calc, but for now - hey, who uses the crappy Windows calculator anyway? Just rename it!
The templatizer is almost working again, and it even has a GUI, but the thing I'm stuck on right now is trying to get the thing to not skip tech grids!

It would be much easier if I weren't trying to support an unlimited number of tech grids... the very first templatizer supported 3; would 16 do? I say this because if I have a set number of grids, I can use nested for loops, but with an unlimited number, I have to use recursion and that gets messy!
Unless SJ wants to help me out, seeing as he's solved this problem already, even though I'm trying to make something that will compete with his Tech Gridder... hey, I did give up on .NET
