Today’s exercise was ETL which basically just reformatted some data. It was pretty easy. A community solution doing it in LINQ looked like an unreadable mess to me.

For the interpreter, I think my setup is inherently flawed. I need to do some serious refactoring. The IF code just doesn’t feel right. I can’t enter in parts as line numbers, and incomplete expression just throws an error. I think I need to maybe do some partial or delayed parsing and I definitely need to put in some evil-GOTO or jump commands.

For today however, I want to get a for loop working. Which …. didn’t work. I got all of the pieces in but it isn’t parsing right. Looking at the BNF I am noticing that FOR, and NEXT are two different entries. I think I need to break up not just this one but the IF clauses too. I might need a special case for a single line IF as well. Well I guess I can’t put the refactor off anymore. Should start on that tomorrow.