Exercise 35. Interpreters
This final exercise in parsing should be both challenging and fun. You finally get to see your Puny Python script run and do something. It is quite alright to be struggling with this section and the concept of parsing. If you find that you’ve reached this point and you don’t quite understand what’s going on, take a step back and consider doing the exercises in this part again. Repeating this section a couple times before you continue will help you in the last two exercises of Part V where you make your own little languages.
I am purposefully not including any code in this exercise so that you have to attempt it based on the description of how an interpreter works. You already have Python as a reference for how these ...
Get Learn More Python 3 the Hard Way: The Next Step for New Python Programmers now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.