Implementing was a bit tricky. I required some grammar debugging, and some research into how Spirit grammars work. I forgot that actions tied to rules get executed as soon as they’re matched, so I was chasing some ghost bugs for a while. I also forgot about the role of errors and having an initialized stack for expression parsing. Once I got these out of the way, I correctly had expression statements implements. Even got a print command started for debugging.

Unfortunately, there is still something fundamentally wrong with the variable linking stage. The base example is missing values, and anything more complicated coredumps. So I’ll have to have that working before getting any print commands implemented.