Code for my blogpost about Pratt Parsing. The C++ here contains some questionable decisions, but they've been made for the sake of simplicity and education.
This is a simple parser that parses the basic math operations using Top Down Operator Precedence, aka Pratt Parsing.