Let’s Build An Interpreter In Python From Scratch

Part 5: Creating a Parser for Looping and Branching statement

This article is in continuation from: Part 4: Creating Parser for Variable Assignment and Printing

Till now we did the bare minimum for calculator with variable assignment. We have understood most of the basic concept in parsing let statement and printing statement. The last article should be enough to start parsing most of the statements. Addition of if and while statement is just for a quick revision to boost…