The next extension for the Interpreter challenge is now live: Statements & State .
Our graphic designer is on vacation this week, so here’s a ChatGPT-generated image that makes absolutely no sense
This extension builds on the work in the previous one and covers chapter 8 of the book.
At the end of this, your interpreter will be able to run programs like this:
var a = "global a";
var b = "global b";
{
var a = "outer a";
var b = "outer b";
{
var a = "inner a";
print a;
print b;
}
print a;
print b;
}
print a;
print b;