100 Days of Code Day 74
Today’s exercise was to build the nursery rhyme “the House that Jack Built.” Took me longer than expected. The exercise description seemed to want you to use recursion but I didn’t and neither did anyone else I saw in the community solutions. I think my solutions is more straightforward than the others even if needing state from the previous run through the loop is awkward.
I finally got my new pack of electronic doo dads. Should I switch back to that or finish the interpreter first? Well today it is interpreter work.
I refactored some of the interpreter stuff to call a runtime object instead of a stack and symbol table. For things like data and file access I am going to need more places to put things. I also added the first of many statement types. This one lets you assign variables. Suddenly this is a much cooler calculator. I want to work on IF and FOR statements next.
