Today, I'll be covering how to implement a calculator interpreter (i.e. evaluating 1 + 2 * 3
as 7
). First we'll cover the overall concept, and then we'll dive into the details of how to implement it.
This post has interactive components demonstrating the concepts, make sure to try them out by modifying the expressions in the input boxes with the mouse pointer icons!