New extension: Statements & state

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 :stuck_out_tongue:

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;
4 Likes

Please give this a try and let us know what you think! Appreciate all the bug reports we’ve received here so far, we’re trying our best to fix these as soon as possible.