In the first basic tutorial, we figured out how to model the core mechanics of the language. Most importantly, each line in BASIC became a Racket function, and then we made a run loop that iterated over these line functions.
With the foundation now in place, we’ll use this tutorial to add some more statement types to our implementation. Then we can write more complex BASIC programs. It’ll also give us a chance to try out some new features of Racket itself, like match and continuations.
Sticking with the policy of the last tutorial, we won’t be pausing to add contracts or unit tests to our code. Instead, they are left as an exercise for motivated readers.